error installing capybara-webkit. Can not compile -
i can not handle situation install capybara-webkit on yosemity idea welcome.
installing capybara-webkit (1.3.1) gem::installer::extensionbuilderror: error: failed build gem native extension. /users/boti/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb cd src/ && /usr/local/bin/qmake /users/boti/.rvm/gems/ruby-2.0.0-p353@myaidin/gems/capybara-webkit-1.3.1/src/webkit_server.pro -spec /usr/local/cellar/qt/4.8.7/mkspecs/macx-g++ -o makefile.webkit_server cd src/ && /applications/xcode.app/contents/developer/usr/bin/make -f makefile.webkit_server g++ -pipe -o2 -arch x86_64 -xarch_x86_64 -mmacosx-version-min=10.5 -wall -w -dqt_no_debug -dqt_webkit_lib -dqt_gui_lib -dqt_network_lib -dqt_core_lib -dqt_shared -i/usr/local/cellar/qt/4.8.7/mkspecs/macx-g++ -i. -i/usr/local/cellar/qt/4.8.7/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/include -ibuild -f/usr/local/cellar/qt/4.8.7/lib -x c++-header -c stable.h -o build/webkit_server.gch/c++ gcc -pipe -o2 -arch x86_64 -xarch_x86_64 -mmacosx-version-min=10.5 -wall -w -dqt_no_debug -dqt_webkit_lib -dqt_gui_lib -dqt_network_lib -dqt_core_lib -dqt_shared -i/usr/local/cellar/qt/4.8.7/mkspecs/macx-g++ -i. -i/usr/local/cellar/qt/4.8.7/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/include -ibuild -f/usr/local/cellar/qt/4.8.7/lib -x objective-c++-header -c stable.h -o build/webkit_server.gch/objective-c++ in file included /system/library/frameworks/coreservices.framework/headers/coreservices.h:55, /system/library/frameworks/foundation.framework/headers/nsurlerror.h:12, /system/library/frameworks/foundation.framework/headers/foundation.h:80, /system/library/frameworks/cocoa.framework/headers/cocoa.h:12, /usr/local/cellar/qt/4.8.7/include/qtgui/qmacdefines_mac.h:113, /usr/local/cellar/qt/4.8.7/include/qtgui/qwindowdefs.h:99, /usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers/qapplication.h:46, /usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers/qapplication:1, stable.h:1: /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:262: error: expected `}' before ‘__attribute__’ /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:262: error: expected unqualified-id before ‘=’ token /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:414: error: expected `}' before ‘__attribute__’ /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:414: error: expected unqualified-id before ‘=’ token /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:493: error: expected declaration before ‘}’ token make[1]: *** [build/webkit_server.gch/objective-c++] error 1 make: *** [sub-src-webkit_server-pro-make_default-ordered] error 2 command 'make' failed make "destdir=" cd src/ && /applications/xcode.app/contents/developer/usr/bin/make -f makefile.webkit_server gcc -pipe -o2 -arch x86_64 -xarch_x86_64 -mmacosx-version-min=10.5 -wall -w -dqt_no_debug -dqt_webkit_lib -dqt_gui_lib -dqt_network_lib -dqt_core_lib -dqt_shared -i/usr/local/cellar/qt/4.8.7/mkspecs/macx-g++ -i. -i/usr/local/cellar/qt/4.8.7/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.7/include -ibuild -f/usr/local/cellar/qt/4.8.7/lib -x objective-c++-header -c stable.h -o build/webkit_server.gch/objective-c++ in file included /system/library/frameworks/coreservices.framework/headers/coreservices.h:55, /system/library/frameworks/foundation.framework/headers/nsurlerror.h:12, /system/library/frameworks/foundation.framework/headers/foundation.h:80, /system/library/frameworks/cocoa.framework/headers/cocoa.h:12, /usr/local/cellar/qt/4.8.7/include/qtgui/qmacdefines_mac.h:113, /usr/local/cellar/qt/4.8.7/include/qtgui/qwindowdefs.h:99, /usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers/qapplication.h:46, /usr/local/cellar/qt/4.8.7/lib/qtgui.framework/versions/4/headers/qapplication:1, stable.h:1: /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:262: error: expected `}' before ‘__attribute__’ /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:262: error: expected unqualified-id before ‘=’ token /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:414: error: expected `}' before ‘__attribute__’ /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:414: error: expected unqualified-id before ‘=’ token /system/library/frameworks/coreservices.framework/frameworks/fsevents.framework/headers/fsevents.h:493: error: expected declaration before ‘}’ token make[1]: *** [build/webkit_server.gch/objective-c++] error 1 make: *** [sub-src-webkit_server-pro-make_default-ordered] error 2 gem files remain installed in /users/boti/.rvm/gems/ruby-2.0.0-p353@myaidin/gems/capybara-webkit-1.3.1 inspection. results logged /users/boti/.rvm/gems/ruby-2.0.0-p353@myaidin/gems/capybara-webkit-1.3.1/./gem_make.out error occurred while installing capybara-webkit (1.3.1), , bundler cannot continue. make sure `gem install capybara-webkit -v '1.3.1'` succeeds before bundling.
it looks you're using gcc, has trouble compiling of apple's newer frameworks.
if cc
or cxx
environment variables set, make sure they're set cc
, c++
, not gcc
, g++
.
Comments
Post a Comment