-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rake bootstrap fails with Ruby 2.2 due to json gem #63
Comments
Disclaimer: I'm a huge Ruby noob. Please bear with me :/ I think the patch applied to the Gemfiles broke the install when using Ruby 2.0.0. --------------------------------------------------------------------------------
Installing gems
--------------------------------------------------------------------------------
bundle install
Rubygems 2.0.14.1 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
Resolving dependencies...
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.7.7 from https://github.com/segiddins/json.git (at seg-1.7.7-ruby-2.2@a9588bc)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile
make "DESTDIR="
linking shared-object json/ext/generator.bundle
make "DESTDIR=" install
/usr/bin/install -c -m 0755 generator.bundle ./.gem.20160831-7164-whwbxw/json/ext
install: ./.gem.20160831-7164-whwbxw/json/ext: No such file or directory
make: *** [install-so] Error 71
Gem files will remain installed in /Users/guillaume/.bundle/ruby/2.0.0/json-a9588bc4334c for inspection.
Results logged to /Users/guillaume/.bundle/ruby/2.0.0/json-a9588bc4334c/ext/json/ext/generator/gem_make.out
... SNIP ...
An error occurred while installing json (1.7.7), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.7'` succeeds before bundling.
rake aborted!
Command failed with status (5): [bundle install...]
/Users/guillaume/Projects/Rainforest/cocoapods-trunk/Rakefile:9:in `block in <top (required)>'
/Users/guillaume/.gem/ruby/2.0.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => bootstrap
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake --no-search bootstrap...]
/Users/guillaume/Projects/Rainforest/Rakefile:115:in `block (3 levels) in <top (required)>'
/Users/guillaume/Projects/Rainforest/Rakefile:113:in `chdir'
/Users/guillaume/Projects/Rainforest/Rakefile:113:in `block (2 levels) in <top (required)>'
/Users/guillaume/Projects/Rainforest/Rakefile:112:in `each'
/Users/guillaume/Projects/Rainforest/Rakefile:112:in `block in <top (required)>'
/Users/guillaume/Projects/Rainforest/Rakefile:54:in `block in <top (required)>'
/Users/guillaume/.gem/ruby/2.0.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => bootstrap_repos
(See full trace by running task with --trace) Reverting the patch by replacing Bundle complete! 12 Gemfile dependencies, 35 gems now installed. System info $ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G31
$ type -a ruby
ruby is /usr/bin/ruby
$ ruby --version
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15] |
I'm getting this error as well. |
Same :\ |
I worked around this particular issue by explicitly installing bundler v1.3 (instead of 2.0.x which was installed by default when I ran |
I noticed this when attempting to test my fix for this issue: CocoaPods/CocoaPods#5291
It can be fixed by modifying cocoapods-trunk's Gemfile to point to this gem:
The text was updated successfully, but these errors were encountered: