Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Gem build error under 1.9.2-p180, can't find rake #15

Closed
stevehodgkiss opened this issue Apr 14, 2011 · 8 comments
Closed

Gem build error under 1.9.2-p180, can't find rake #15

stevehodgkiss opened this issue Apr 14, 2011 · 8 comments

Comments

@stevehodgkiss
Copy link

I can install the gem under 1.8.7 ok, but 1.9.2 throws this error:

% gem install capybara-webkit
Building native extensions.  This could take a while...
ERROR:  Error installing capybara-webkit:
    ERROR: Failed to build gem native extension.

        /Users/steve/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
/Users/steve/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:408:in `bin_path': can't find gem rake ([">= 0"]) with executable rake (Gem::GemNotFoundException)
    from /Users/steve/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `<main>'


Gem files will remain installed in /Users/steve/.rvm/gems/ruby-1.9.2-p180/gems/capybara-webkit-0.1.6 for inspection.
Results logged to /Users/steve/.rvm/gems/ruby-1.9.2-p180/gems/capybara-webkit-0.1.6/./gem_make.out

A reinstall of rake didn't help.

I can run rake build BUILD=true and it builds ok.

Thanks
Steve

@joshuaclayton
Copy link
Contributor

I can confirm this; I'm going to look into using https://github.com/luislavena/rake-compiler this weekend and see if that solves this issue.

@technomage
Copy link

I can also confirm it fails under 1.9.2. Any success please post.

@aurels
Copy link

aurels commented Apr 15, 2011

Same here.

@ryanb
Copy link

ryanb commented Apr 15, 2011

Does capybara-webkit 0.1.4 install for you? That worked for me under 1.9.2.

gem install capybara-webkit --version=0.1.4

@aurels
Copy link

aurels commented Apr 15, 2011

Thanks Ryan,

No, I've got the same error with this version.

I installed Qt with the package from Nokia because I get an error with homebrew, do you think it can change anything ?

==> Downloading http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.1.tar.gz
File already downloaded and cached to /Users/aurels/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
==> Patching
/usr/bin/patch: **** Only garbage was found in the patch input.
Error: Failure while executing: /usr/bin/patch -f -p1 -i 001-homebrew.diff

@aurels
Copy link

aurels commented Apr 15, 2011

( I'm also trying on 1.9.2 btw )

@ryanb
Copy link

ryanb commented Apr 15, 2011

I'm not sure what the issue could be. Installation through Homebrew worked fine for me but took about an hour to complete. Here are the versions I'm using.

  • OS X 10.6.5
  • Qt 4.7.2
  • Ruby 1.9.2-p136
  • capybara-webkit 0.1.4

I've tried installing 0.1.6 on my setup and get the same error as above.

@aurels
Copy link

aurels commented Apr 15, 2011

I've got the same versions except ruby which is 1.9.2p180.

I just compiled 1.9.2-p136 through RVM and tested : same error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants