Coder Social home page Coder Social logo

Comments (4)

guillaumealgis avatar guillaumealgis commented on June 16, 2024

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.
I'm using a default Ruby install on 10.11, and when running rake bootstrap I'm getting:

--------------------------------------------------------------------------------
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 gem 'json', :git => 'https://github.com/segiddins/json.git', :branch => 'seg-1.7.7-ruby-2.2' by gem 'json', '1.7.7' in all Gemfiles I could find fixed the issue and rake bootstrap finished nicely.

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]

from rainforest.

dlo avatar dlo commented on June 16, 2024

I'm getting this error as well.

from rainforest.

tejasmanohar avatar tejasmanohar commented on June 16, 2024

Same :\

from rainforest.

icecrystal23 avatar icecrystal23 commented on June 16, 2024

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 gem install bundler)

from rainforest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.