I wanted to enable previews on PDFs in Active Storage:
https://api.rubyonrails.org/classes/ActiveStorage/Preview.html
In order to do this I installed Poppler on my Mac using brew install poppler. I also installed the Poppler gem in my gemfile. The preview functionality works as I want on my local machine.
When I go to deploy to Heroku the build fails and I get the following error:
An error occurred while installing gobject-introspection (4.0.5), and Bundler
cannot continue.
In Gemfile:
poppler was resolved to 4.0.5, which depends on
gio2 was resolved to 4.0.5, which depends on
gobject-introspection
I've attempted using the following buildpack, but with no luck:
https://github.com/amitree/heroku-buildpack-poppler.git
Has anyone had any success installing Poppler on Heroku? Ideally on more recent Heroku stacks, and not an older stack.
Related
I'm trying to deploy my Ruby 2.6.2 with Rails 6.0.3.4 and I'm getting GemNotFoundException with Bundler:
Running bundle check
`find_spec_for_exe': Could not find 'bundler' (2.1.4) required by your /home/site/wwwroot>/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.1.4`
Running 'gem list bundler' on my local machine returns, I remove the defualt version.
bundler (2.1.4)
I've tried updating gem and it's 3.1.4.
I'm pretty sure I'm correctly pushing it to Azure, as I made a new app service and pushed my Rails app with bundler 2.1.4 and I've tried restarting the VM.
Quite new to Azure, so am pretty stuck on this.
I am trying to deploy our app to Heroku. It is a Rails 6/Ruby 2.6.5 app running against PostgreSQL.
For some reason Heroku installs the MySQL gem, and also it is failing trying install the Poppler gem dependencies (specifically gobject-introspection 3.4.1), even though we have removed Poppler from our Gemfile. The words Poppler and Mysql don't appear anywhere in our code.
I have done a bundle clean and saw those gems go.
Why is it doing this?
I am working application of ruby-1.8.7 for client.
I got error when tried to deploy on staging using cap staging deploy command.
Right now, installed capistrano-3.2.1 version. Now, i want to remove it and install capistrano-2.5.19 version.
How to change version of capistrano or uninstall it and install new.
How to install capistrano for ruby-1.8.7 compatible verions.
I got every time ERROR: error installing capistrano. highline required ruby version >= 1.9.3
Thanks
/.rvm/gems/ruby-1.8.7-p374/gems/capistrano-3.2.1
$ gem uninstall capistrano
Select gem to uninstall:
1. capistrano-2.12.0
2. capistrano-3.5.0
3. All versions
> 2
Successfully uninstalled capistrano-3.5.0
So I had a rails app up and working on my hostmonster account just fine. I then updated a few things in my dev environment / pushed them up to github / pulled them back down on my production environment. Now its giving me the error Could not find pg-0.17.1 in any of the sources (Bundler::GemNotFound).
This is a new gem i installed in my dev because i was attempting to move to postgresql for dev and live....for now im using postgresql in dev and mysql2 in production. I know this isn't optimal but im working on it.
I tried running bundle install to get the pg gem installed and it fails with the error
Gem::Exception: Cannot load gem at [/usr/lib64/ruby/gems/1.9.3/cache/rake-10.2.2.gem] in /home4/muscorei/workspace/vollapp
An error occurred while installing rake (10.2.2), and Bundler cannot continue.
Make sure that gem install rake -v '10.2.2' succeeds before bundling.
I try installing rake and it works fine...try again..same error. I have found one question on here that seems to fix this for others but it requires running of gem update --system which you cannot do for hostmonster. Any ideas?
So here is another "related" issue. When i type in gem list --local I see that rails is installed at version 4.1.0....however when i do rails -v it shows the systemwide version of 3.2.13. I don't EVER have any of these annoying issues on my dev environment.
I installed Ruby on Rails in my Windows 8 machine and created a project. When I tried to run the application, it gives this error:
Could not find gem 'sass-rails (~> 4.0.2) x64-mingw32' in the gems available on
this machine.
Run bundle install to install missing gems.
I reinstalled the gem files and ran bundle install but received the same result.
How can I fix this?