|Error while building native extensions||Ajedi32||10/29/12 6:20 AM|
I'm trying to install the webkit driver for capybara on Windows, and I'm getting the following error:
$ gem install capybara-webkit-0.12.1.gem
And here's what's in the log file:
I've been trying for some time now to figure out what the problem is. The log file isn't very helpful, and the solutions to similar problems that I found were either specific to Unix or and didn't work for me. I'd appreciate any help you can give me.
Note: This question was cross-posted from StackOverflow. (http://stackoverflow.com/q/12936623/1157054)
|Re: Error while building native extensions||Joe Ferris||10/29/12 6:31 AM|
I need to look at the build process and see why errors aren't being written to the log. In the mean time, I'd try cloning the project and trying to build from there:
git clone git://github.com/thoughtbot/capybara-webkit.git
bundle exec rake build
|Re: Error while building native extensions||Ajedi32||10/29/12 7:25 AM|
Okay, I tried it that way and it seems to have gotten a lot further than when I simply tried to install the gem with `gem install`. It still didn't work though, here's the error its giving me:
cd src/ && c:/Qt/4.8.3/bin/qmake.exe "c:/Documents and Settings/user/My Documents/Workspace/thoughtbot-capybara-webkit-7289a8e/src/webkit_server.pro" -spec c:/Qt/4.8.3/mkspecs/win32-g++ -o Makefile.webkit_server
Other potentially relevant information:
Could the location of rcc be causing problems?
|Re: Error while building native extensions||Joe Ferris||10/29/12 7:32 AM|
Is c:\Qt\4.8.3\bin on your PATH?
|Re: Error while building native extensions||Ajedi32||10/29/12 7:45 AM|
Yes, it is:
Also, it looks like there's more than one 'make' in my PATH:
C:\>which make --allC:\Qt\4.8.3\bin\make.BAT
Should I be using the one in "C:\Qt\4.8.3\bin\" rather than the one in "C:\RailsInstaller\DevKit\bin\"? Or does that not matter?
|Re: Error while building native extensions||Joe Ferris||10/29/12 7:48 AM|
I'm not sure; I'm not a Windows user. There are some Windows instructions in the Wiki (https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit), but it seems like you've followed them. You may get a better answer if you paste the full output from the build to Stackoverflow.
|Re: Error while building native extensions||Ajedi32||10/29/12 7:53 AM|
Okay, I'll give that a shot; thanks.
|Re: Error while building native extensions||Ajedi32||10/31/12 2:17 PM|
|Re: Error while building native extensions||Joe Ferris||10/31/12 2:21 PM|
Thanks. Do you mind updating the Wiki?
|Re: Error while building native extensions||Ajedi32||11/2/12 6:33 AM|
Sure. I'll investigate this a bit further and update the wiki once I'm sure of what's causing it. If the problem is specific to QT version 4.8.3 it would probably be better to just note that on the wiki instead of posting a complicated work-around.
|Re: Error while building native extensions||Igor Poltorak||11/6/12 6:41 AM|
I have the same problem. But I use QT 4.7.4 and Windiws 7 x64. I'd like yo use capybara-webkit for my hedless test.
After i do bundle install - it said me that all correctly install. After bundle exec rake build it show me this message "Command 'qmake -spec win32-g++' not available". Do you have some sollution?
понедельник, 29 октября 2012 г., 15:20:55 UTC+2 пользователь Ajedi32 написал: