Error starting rails app incompatible version of rgeo proj4 library

When I run foreman start, I get this error:

 ~/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require': incompatible library version - ~/.rvm/gems/ruby-2.2.3/gems/rgeo-0.4.0/lib/rgeo/coord_sys/proj4_c_impl.bundle (fatal)
        from ~/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
        from ~/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
        from ~/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
        from ~/.rvm/gems/ruby-2.2.3/gems/rgeo-0.4.0/lib/rgeo/coord_sys.rb:39:in `<top (required)>'

I tried rvm gemset empty && bundle install, gem uninstall rgeo && gem install rgeoand other people working on the same project, do not have this problem.

Ruby 2.2.3p173 Rails 4.2.4 Gem 2.4.8

What am I doing wrong?

+4
source share
1 answer

I also came across this problem. I will need to learn more about your environment, but this may be due to this problem that I reported to the RGeo project today: https://github.com/rgeo/rgeo/issues/114

Ruby Homebrew, RVM. , , .

, . , Ruby Manager, RGeo . : https://github.com/eddietejeda/rgeo/tree/prioritize_ruby_manager_lib

Gemfile, :

gem 'rgeo', :git => 'git@github.com:eddietejeda/rgeo.git', :branch => 'prioritize_ruby_manager_lib'

, !

+2

Source: https://habr.com/ru/post/1611332/


All Articles