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

Failed to build on Windows 7 32bit #320

Closed
Sprachprofi opened this issue Apr 13, 2012 · 12 comments
Closed

Failed to build on Windows 7 32bit #320

Sprachprofi opened this issue Apr 13, 2012 · 12 comments

Comments

@Sprachprofi
Copy link

I have installed the Ruby DevKit and Qt 4.8.1 and added the Qt bin path to my PATH variable as per the instructions, still "gem install capybara-webkit" results in the "Failed to build gem native extension" error. I'm using Windows 7 32bit. On researching the issue online, the only advice I've found is to do bundle install without test, but that isn't a solution as it means skipping the installation of capybara-webkit. I need this for local testing.

Thank you for your help!

@morenocarullo
Copy link
Contributor

We're waiting for the #300 pull to be merged in. In the while, you can use my fork.
And also, you should downgrade to QT 4.7.x.

@jferris
Copy link
Contributor

jferris commented Apr 13, 2012

I'm going to close this, since it's a duplicate of #300.

@Sprachprofi
Copy link
Author

I downloaded your fork and the build gives "fatal: Not a git repository (or any of the parent directories): .git", twice. Further down it claims to have successfully built the gem but it doesn't install.

@magee
Copy link

magee commented Jun 12, 2012

I have the same problem on Win7 (64 bit) with Ruby 1.8.7 using QT 4.7.4 (including path change). These are the sole contents of the Results logged to the gem_make.out file: "C:/railsinstaller/Ruby1.8.7/bin/ruby.exe extconf.rb."

When I manually run "gem install capybara-webkit -v '0.12.1' I get the same "ERROR: Failed to build gem native extension."

@morenocarullo
Copy link
Contributor

@magee, I didn't try with Ruby 1.8.7, sorry. By the way, did you install the devkit?

@magee
Copy link

magee commented Aug 8, 2012

I upgraded to 1.9.3 and that didn't help.

Just installed the RubyInstaller DevKit and that appears to have solved it. (http://rubyinstaller.org/downloads/)

@morenocarullo
Copy link
Contributor

Yes, of course, you need the DevKit because capybara-webkit needs to compile the native QT components.

@morenocarullo
Copy link
Contributor

I have updated this: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit, so this issue can be closed.

@jferris
Copy link
Contributor

jferris commented Aug 9, 2012

Thanks, @morenocarullo.

@jferris jferris closed this as completed Aug 9, 2012
@magee
Copy link

magee commented Aug 13, 2012

It seems you missed the point. The problem is (in case anyone else has the same problem and finds themselves at this page), the QT DevKit WAS installed and didn't resolve the problem. All the guidance says to install that particular DevKit. It doesn't always (ever?) work.

However, the RubyInstaller DevKIt that I added a link to above did work for my Win7 (64 bit) system.

Thanks for your attention to this.

@morenocarullo
Copy link
Contributor

@magee
Copy link

magee commented Aug 13, 2012

Wonderful!!

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

4 participants