Skip to content
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

Cannot build json native extension #436

Closed
dmp1ce opened this issue Jan 27, 2013 · 2 comments
Closed

Cannot build json native extension #436

dmp1ce opened this issue Jan 27, 2013 · 2 comments

Comments

@dmp1ce
Copy link

dmp1ce commented Jan 27, 2013

I installed rubygems 2.0 with these instructions. I then tried to install vagrant and got the following output:

~> gem install vagrant

Building native extensions.  This could take a while...
ERROR:  Error installing vagrant:
    ERROR: Failed to build gem native extension.

    /home/david/.rvm/rubies/ruby-2.0.0-rc1/bin/ruby extconf.rb
/home/david/.rvm/gems/ruby-2.0.0-rc1/gems/json-1.5.4/Gemfile:5:in `load': undefined method `gemspec' for #<Gem::RequestSet::GemDepedencyAPI:0x00000002909870> (NoMethodError)
    from /home/david/.rvm/rubies/ruby-2.0.0-rc1/lib/ruby/site_ruby/2.0.0/rubygems/request_set.rb:155:in `instance_eval'
    from /home/david/.rvm/rubies/ruby-2.0.0-rc1/lib/ruby/site_ruby/2.0.0/rubygems/request_set.rb:155:in `load'
    from /home/david/.rvm/rubies/ruby-2.0.0-rc1/lib/ruby/site_ruby/2.0.0/rubygems/request_set.rb:54:in `load_gemdeps'
    from /home/david/.rvm/rubies/ruby-2.0.0-rc1/lib/ruby/site_ruby/2.0.0/rubygems.rb:232:in `detect_gemdeps'
    from /home/david/.rvm/rubies/ruby-2.0.0-rc1/lib/ruby/site_ruby/2.0.0/rubygems.rb:1110:in `<top (required)>'
    from <internal:gem_prelude>:1:in `require'
    from <internal:gem_prelude>:1:in `<compiled>'


Gem files will remain installed in /home/david/.rvm/gems/ruby-2.0.0-rc1/gems/json-1.5.4 for inspection.
Results logged to /home/david/.rvm/gems/ruby-2.0.0-rc1/gems/json-1.5.4/ext/json/ext/parser/gem_make.out
@drbrain
Copy link
Member

drbrain commented Jan 27, 2013

@evanphx do you have any clues about this?

@evanphx
Copy link
Member

evanphx commented Jan 27, 2013

Hm, yep. While installing json, it picked up the Gemfile that is packaged INSIDE the json gem (something I consider very odd). That Gemfile is using features that only bundler supports, thus the error.

I guess we need automatically disable autoloading Gemdep files when building extensions.

--Evan Phoenix // evan@fallingsnow.net

On Sunday, January 27, 2013 at 9:45 AM, Eric Hodel wrote:

@evanphx (https://github.com/evanphx) do you have any clues about this?


Reply to this email directly or view it on GitHub (#436 (comment)).

@drbrain drbrain closed this as completed in 1ca11d0 Feb 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants