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
nokogiri 1.6.8.rc3 fails to build in a fresh install of ruby 2.3 on OS X #1445
Comments
Does 1.6.7.2 install on this same system? It would be useful to know if it's a behavior change. If so, please include the output from 'nokogiri -v' in your reply. |
1.6.7.2 successfully installs:
Version info:
|
I think this is an issue with And other users reporting issues: |
I was hit by the same problem, see some comments in #1423. I filed this upstream bug report. I wonder if nokogiri shouldn't perhaps disable some functionality, for example by passing
|
I had this same issue today with installing 1.6.8.rc3 on OS X 10.11.4 and spent a lot of time trying different non-bundled libxml2/libxslt combinations, and what did the trick for me in the end was a simple I have no idea why, as I already had Xcode installed, and all other gems with native extensions installed fine before I ran
Before I ran Anyway, hope it helps someone. |
@nnc what's your |
|
@nnc Please note that How can we make that documentation more visible to developers? Any ideas? |
@flavorjones that is where I saw it, but only after spending some time to try and work around the issues myself. I would have loved to see a reminder like
but I guess thats not really possible, so no I don't really see what else you could do. And on top of that, it didn't cross my mind to mess around with xcode earlier because all other gems with native extensions installed just fine with whatever xcode setup I had previously. |
Hi! So, I opened this issue, not @nnc, and while it's great that their problems are fixed, mine aren't. Can you reopen this? |
Welp! That worked for me. I'll be damned. I find this solution really, really weird: I have Xcode 7.3.1 installed (I'm an iOS developer and used to do iOS builds at Apple, so I know this dumb toolchain inside and out). I'm not really sure what the best way is to point people to the install notes, though. I was installing Maybe adding it to a repo issue template here on GitHub, now that they support that? https://github.com/blog/2111-issue-and-pull-request-templates |
@nnc this solved my issue as well (identical to the issue in the original post) |
Did you run an (automatic) OSX update recently? This happened to somehow uninstall/break xcode CLI tools for me in the past. |
Running |
Same here (10.11.5, upgraded OS X - everything running, upgraded gem - same error, xcode-select --install - error gone). TNX |
Same solution solved it for me: run |
This might be useful: This command install a set of additional command line tools that Apple, damn it! doesn't include in the 3.8Gb bundle (!!!) which comes with the installation of XCode from the App Store. In other words, many build files won't see Xcode until you issue this command too, after App Store installation. |
Running El Capitan 10.11.6 and |
# YOU ARE ALL WRONG. |
In my case, the following fixed the Nokogiri build. This is on Sierra with Xcode 8, and installing Nokogiri through
This is hinted at in the output from Nokogiri before the build starts, and it also includes an example command line to build Nokogiri directly. (And note that I did have |
@RobinDaugherty thanks but I dont have the |
@binarykitchen - no bundler
should do the same (http://www.nokogiri.org/tutorials/installing_nokogiri.html) |
If running OS X just run |
gem install nokogiri brew install xz xcode-select --install brew install libxml2 gem install nokogiri -- --with-xml2-dir=/usr/local/Cellar/libxml2/2.9.4 --with-xslt-dir=/usr/local/opt/libxslt brew uninstall xz |
Have you tried After that, is your xcode up to date? If the |
Sorry for not enough informations. I updated my last comment. |
OSX Sierra |
@flavorjones In my case, I didn't try |
A simple |
Thank you @cabo ! |
I had the same error with attempts to install multiple versions of nokogiri. |
$ brew unlink xz did it for me. Apparently building the native components is seeing the xz installed with homebrew. |
Future readers: please note that the installation tutorial provides instructions for working around this issue. |
ruby 2.3
installed withruby-install
to~/.rubies
, and activated withchruby
1.6.8.rc3
Build error:
Full log is attached at gem_make.out.txt
More configuration info:
I just cloned the repo which calls for
nokogiri
about an hour ago, and installedruby 2.3
withruby-install
. I then installed bundler (gem install bundler
), then installed my repo's gems, likenokogiri
, withbundle install
:I get the same error when I try
gem install nokogiri -v '1.6.8.rc3'
.Let me know what other information I can get you!
The text was updated successfully, but these errors were encountered: