thoughtbot/capybara-webkit — Issue #224: cannot install .. error compiling from source
Author: erwin
Created: 2011-12-02 13:08:12+00:00
State: open

Rails 3.1.1 / Ruby 1.9.2-p290 / OS X 10.7.2 x86_64-darwin11.0.0 / rvm 1.9.2

brew install qt --build-from-source
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/yves/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
/usr/local/bin/qmake
/usr/bin/make
....

cd src/ && make -f Makefile.webkit_server
...
...
g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o webkit_server main.o WebPage.o Server.o Connection.o Command.o Visit.o Find.o Reset.o Node.o JavascriptInvocation.o Url.o Source.o Evaluate.o Execute.o FrameFocus.o Response.o NetworkAccessManager.o NetworkCookieJar.o Header.o Render.o body.o Status.o Headers.o UnsupportedContentHandler.o SetCookie.o ClearCookies.o GetCookies.o moc_WebPage.o moc_Server.o moc_Connection.o moc_Command.o moc_Visit.o moc_Find.o moc_Reset.o moc_Node.o moc_JavascriptInvocation.o moc_Url.o moc_Source.o moc_Evaluate.o moc_Execute.o moc_FrameFocus.o moc_NetworkAccessManager.o moc_NetworkCookieJar.o moc_Header.o moc_Render.o moc_body.o moc_Status.o moc_Headers.o moc_UnsupportedContentHandler.o moc_SetCookie.o moc_ClearCookies.o moc_GetCookies.o qrc_webkit_server.o -F/usr/local/Cellar/qt/4.7.4/lib -L/usr/local/Cellar/qt/4.7.4/lib -framework QtWebKit -framework QtGui -L/usr/X11/lib -L/usr/local/Cellar/qt/4.7.4/lib -F/usr/local/Cellar/qt/4.7.4/lib -framework QtCore -framework QtNetwork