New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Failures: capybara -- `require': cannot load such file -- nokogiri (LoadError) #1919
Comments
Does the Gemfile also include nokogiri? Or is nokogiri installed as part of the bundle install? |
Could you please link us to the build where you are seeing this? It looks like nokogiri is not being installed, which is odd since it's a dependency of Capybara. I wonder if the |
That's quite odd, the |
Not from what I see on the build. Rather curious. |
Could you add nokogiri directly to your Gemfile and see if that helps? |
I did what you suggested, and the build still failed. |
I even did a |
Very curious. I don't see nokogiri getting installed. Did I miss it? |
https://travis-ci.org/huangsam/ciscochef/builds/17989501#L100 Perhaps dependency resolution is failing somehow. |
Yeah. That's exactly why I did the |
Truths experiment: create a small project locally with just nokogiri in Gemfile and see if installs nokogiri and its dependencies. If it works, try building it on Travis. We'll understand where the problem is. |
BYW if bundler does not activate nokogiri, installing it beforehand doesn't do any good. |
Try this experiment... |
I see the problem now. You are bundling the Windows version of nokogiri in your See http://stackoverflow.com/questions/3642085/make-bundler-use-different-gems-for-different-platforms for a possible workaround. |
One thing I did one want to mention is that when I do the approach of hiding the Gemfile.lock using a .gitignore on my Windows machine, Travis-CI works. However, when pushing to Heroku I get this nasty request: It's like StackOverflow is telling Windows users one thing, while Heroku is telling them another thing. |
Not owning a Windows machine, I don't know what the best practice is. However, you can try creating a second Gemfile, identical to |
I'm using ruby 2.3.3 on my project and nokogiri 1.6.8.rc2.The build failed on Gitlab ci.The error message is: `require': cannot load such file -- nokogiri (LoadError). |
@hypolyte You'll need to ask Gitlab for support. |
That's what I'm doing! |
@hypolyte Sorry, but this is GitHub. |
I'm not sure how to resolve this one. I've been trying to update my Gemfile to use different versions of capybara and so far nothing has been working to resolve this issue for my Travis-CI builds. Any ideas?
The text was updated successfully, but these errors were encountered: