Created
August 26, 2015 16:07
-
-
Save sacarlson/834de549cf0058c1572c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
problem seen when useing rbenv and bundler and moving between apps running ruby -v 1.9.3-p484 and ruby -v 2.2.1 with these apps | |
note: my solution shown here is now working for the moment using gem pristine with both versions now working at the same time | |
last problem app seen after bellow app bundler install: | |
https://github.com/sacarlson/stellar_utility commit d3150c5581cd88f08bc57e74b50265eea38e3c44 runs with ruby -v 1.9.3-p484 | |
error seen: | |
sacarlson@sacarlson-asrock ~/github/stellar/stellar_utility $ rr create_account_save.rb | |
/home/sacarlson/.rbenv/versions/1.9.3-p484/bin/ruby: symbol lookup error: /home/sacarlson/.bundle/gems/json-1.8.3/lib/json/ext/parser.so: undefined symbol: rb_str_new_static | |
method to fix: | |
bundle exec gem pristine json | |
note: rr = bundle exec ruby | |
so: rr create_account_save.rb; is equivalent to: bundle exec ruby create_account_save.rb ; | |
the supposed conflicting app: | |
https://github.com/stellar/horizon commit a55b846d6a18a80f83b10785eac088ee209dbee4 run with ruby -v 2.2.1 | |
error seen after above app bundler install to fix json problem: | |
sacarlson@sacarlson-asrock ~/github/stellar/horizon $ bundle exec gem pristine --all | |
Restoring gems to pristine condition... | |
Skipped rake-10.4.2, it is a default gem | |
Restored aasm-4.0.8 | |
Restored i18n-0.7.0 | |
Building native extensions. This could take a while... | |
ERROR: While executing gem ... (Gem::Ext::BuildError) | |
ERROR: Failed to build gem native extension. | |
/home/sacarlson/.rbenv/versions/2.2.0/bin/ruby -r ./siteconf20150826-6695-1qh0300.rb extconf.rb | |
/home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find json-1.8.3 in any of the sources (Bundler::GemNotFound) | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:85:in `map!' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:85:in `materialize' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/definition.rb:140:in `specs' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/definition.rb:185:in `specs_for' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/definition.rb:174:in `requested_specs' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/environment.rb:18:in `requested_specs' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:13:in `setup' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler.rb:127:in `setup' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/setup.rb:18:in `<top (required)>' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /home/sacarlson/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
extconf failed, exit code 1 | |
Gem files will remain installed in /home/sacarlson/.bundle/gems/json-1.8.3 for inspection. | |
Results logged to /home/sacarlson/.bundle/extensions/x86_64-linux/2.2.0-static/json-1.8.3/gem_make.out | |
similar but not the same problem seen by others in my research: | |
http://stackoverflow.com/questions/27879119/rails-s-could-not-find-rake-10-4-2-in-any-of-the-sources-bundlergemnotfound |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment