Reputation: 3434
I have used the following gems,
capybara-webkit (1.1.1 b7d6be1)
capybara (2.1.0)
Using Qt version 4.8.6
OSX 10.8.5
The code I have used is,
Capybara.app_host = "https://www.google.co.in"
Capybara.current_driver = :webkit
Capybara.run_server = false
visit "/"
When i try and :visit a path, it get this following error,
dyld: Library not loaded: @@HOMEBREW_PREFIX@@/lib/QtWebKit.framework/Versions/4/QtWebKit
Referenced from: /Users/sunilkumar/personal/capybara-scraper/vendor/bundle/ruby/2.1.0/bundler/gems/capybara-webkit-b7d6be163c3f/bin/webkit_server
Reason: image not found
/Users/sunilkumar/personal/capybara-scraper/vendor/bundle/ruby/2.1.0/bundler/gems/capybara-webkit-b7d6be163c3f/lib/capybara/webkit/connection.rb:107:in `initialize': Can't assign requested address - connect(2) for "127.0.0.1" port 0 (Errno::EADDRNOTAVAIL)
Being stuck on this for quite some time now. Any help would be much appreciated.
Upvotes: 2
Views: 585
Reputation: 71
I had the same problem:
dyld: Library not loaded: @@HOMEBREW_PREFIX@@/lib/QtWebKit.framework/Versions/4/QtWebKit
Referenced from: /Users/erma/.rvm/gems/ruby-2.1.2@huddle/gems/capybara-webkit-1.2.0/bin/webkit_server
Reason: image not found
(see @@HOMEBREW_PREFIX@@/lib/QtWebKit.framework/Versions/4/QtWebKit)
All I did was gem uninstall capybara-webkit and then did a bundle install to reinstall. And then everything worked.
Upvotes: 2