-
-
Notifications
You must be signed in to change notification settings - Fork 904
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
Issues installing Nokogiri 1.6.5 on OS X Yosemite (10.10.1) #1210
Comments
I had a lot of trouble with this installation, but it solved for me: gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2- lib=/usr/lib/ |
No luck with that unfortunately, similar error:
|
That "-2" is highly suspect. I don't have any idea how that'd come about. But, look at the first line:
That space in |
There's also an issue with latest OS X / Xcode and a check introduced in version 1.6.5 of Nokogiri, see #1218 |
I found that this problem was fixed by running |
@neonichu I know of no known issue with the latest OSX/xcode if my requirements/install instructions are followed. If you have details that reproduce an error within those parameters, please let us know. |
I believe this ticket can be closed. I believe it was resolved on IRC. If I'm misremembering, then @adamdullenty needs to respond. |
@zenspider Apologies for delay replying - no that wasn't me on IRC. I fixed the rogue space and had the same error:
I've since seen the same issue with other gems when gem updating - picked json randomly but it seems to be happening for loads of stuff: Cheers. |
Seems this is due to Xcode 5.1, see the accepted answer on this thread: Easiest fix for now is to set this flag before installing, but in general it looks like this option won't be there forever and gems will need updating to not use any unrecognised command line switches:
|
@adamdullenty IIRC, this flag being required was a combination of an issue in the Ruby that shipped with 10.9 and Xcode 5.1 - it doesn't happen on 10.10 anymore. |
I don't believe this is mac-specific, there's a post on nokogiri-talk reporting of the same issue on Ubuntu:
The post suggests this may be an issue with |
Might be right, and my previous post about Xcode 5.1 and the flag might have been a red herring as at the time I had switched from chruby to rvm. |
I am unable to reproduce this, running a fresh Vagrant image of Ubuntu 14.04 x64, within which is installed
Can anyone suggest further research I can do into this problem to reproduce it? |
Another thing to rule out is whether RUBYOPT has been set by mistake as in I can't remember setting this myself but on checking it it looks like it Others having issues: try checking your RUBYOPT with "echo $RUBYOPT". If On Mon, Jan 12, 2015 at 2:19 PM, Mike Dalessio [email protected]
|
Closing. If you can help me reproduce this somehow, I'm happy to reopen and investigate. Thanks for using Nokogiri! |
This worked for me!!! Thank you!! |
Hey,
I recently followed this guide to get my brand new MacBook set up in the same way as my Ubuntu box, but switching to chruby instead of rvm:
http://andycroll.com/mac/ruby/the-simplest-possible-serious-ruby-on-rails-setup-on-mavericks/
So my environment should be pretty clean.
However when trying to 'bundle install' I'm getting the following error for Nokogiri:
Since then I have tried all of the relevant code snippets on here http://www.nokogiri.org/tutorials/installing_nokogiri.html with again no luck (and the error message I am seeing is different to the one highlighted on that page anyway)
Fairly new to OS X and Macs in general so not overly sure how to proceed.
Any ideas would be gratefully received.
The text was updated successfully, but these errors were encountered: