{"action":"closed","issue":{"url":"https://api.github.com/repos/rgeo/rgeo/issues/114","labels_url":"https://api.github.com/repos/rgeo/rgeo/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/rgeo/rgeo/issues/114/comments","events_url":"https://api.github.com/repos/rgeo/rgeo/issues/114/events","html_url":"https://github.com/rgeo/rgeo/issues/114","id":111262918,"number":114,"title":"incompatible library version - proj4_c_impl.bundle (fatal)","user":{"login":"eddietejeda","id":669988,"avatar_url":"https://avatars.githubusercontent.com/u/669988?v=3","gravatar_id":"","url":"https://api.github.com/users/eddietejeda","html_url":"https://github.com/eddietejeda","followers_url":"https://api.github.com/users/eddietejeda/followers","following_url":"https://api.github.com/users/eddietejeda/following{/other_user}","gists_url":"https://api.github.com/users/eddietejeda/gists{/gist_id}","starred_url":"https://api.github.com/users/eddietejeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddietejeda/subscriptions","organizations_url":"https://api.github.com/users/eddietejeda/orgs","repos_url":"https://api.github.com/users/eddietejeda/repos","events_url":"https://api.github.com/users/eddietejeda/events{/privacy}","received_events_url":"https://api.github.com/users/eddietejeda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T20:22:39Z","updated_at":"2015-10-13T21:23:49Z","closed_at":"2015-10-13T21:23:49Z","body":"I was getting the error `proj4_c_impl.bundle: [BUG] Segmentation fault at 0x00000000000440` but when I upgraded to ruby 2.2.3 and ran `gem pristine rgeo` as described in Issue #105  but when I ran the suggested fix,  I got the following error:\r\n\r\n`~/.rvm/gems/ruby-2.2.3@civicinsightedge/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in 'require': incompatible library version - ~/.rvm/gems/ruby-2.2.3@civicinsightedge/gems/rgeo-0.3.20/lib/rgeo/coord_sys/proj4_c_impl.bundle (fatal)`\r\n\r\nThere was a StackOverflow post on this issue yesterday, which you can see [here](http://stackoverflow.com/questions/33089209/error-when-running-rails-app-incompatible-library-version-rgeo-proj4).\r\n\r\nAfter some digging around, I figured it out what was wrong.\r\n\r\nI opened up proj4_c_impl.bundle file in a hex editor and saw that the binary was being linked to  `/usr/local/lib/libruby.2.2.0.dylib`, which was strange because I was using RVM to manage my rubies. `libruby.2.2.0.dylib` was a symlink to `/usr/local/Cellar/ruby/2.2.3/lib/libruby.2.2.0.dylib` so that told me it was using a Ruby version installed with Homebrew. I am not sure why I installed the Homebrew version of Ruby, but I did.\r\n\r\nI removed the Homebrew packges `ruby` and `ruby-build`, ran `gem pristine rgeo`, opened up `proj4_c_impl.bundle` and saw that was linking to `~/.rvm/rubies/ruby-2.2.3/lib/libruby.2.2.0.dylib` and the app loaded fine.\r\n\r\nThis leads to two other questions. First, do we want to support Homebrew's ruby? If so, we need to debug this further.\r\n\r\nThe second question is: Do we assume that Ruby Managers are common? I would say so, and whenever I use a Ruby manager I am assuming that the current Ruby environment takes precedent over any other Ruby versions I have installed.\r\n\r\nSo I prioritized the order of libraries, and gave the Ruby manager environment precedent, committed to a branch, tested within my application and it works fine. Here is the fix:\r\n\r\nhttps://github.com/eddietejeda/rgeo/commit/975984b950f5ed9a3c1d726e8b06db700523828d\r\n\r\nIf there are no objections, I would like to make a pull request for this, but please feel free to discuss if there is a reason why we would not want to give precedence to Ruby Managers that I am not aware of."}}