-
-
Notifications
You must be signed in to change notification settings - Fork 901
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.8.5, macOS High Sierra and brew's binutils #1812
Comments
/cc @zenspider Would anyone care to summarize the above and submit a PR to https://github.com/sparklemotion/nokogiri.org-tutorials/blob/master/content/installing_nokogiri.md ? |
Or submit a PR to Nokogiri? @gpakosz I see you have a fork with a commit on it for this. |
@flavorjones I don't believe this should be solved by entries in the documentation. I submitted PR #1813 as you noticed and I just edited the description to explain why I'm suggesting the change. |
Wow, this saved my day! Nearly all my homebrew packages failed to compile due to this, e.g [email protected]. Confirms that |
On Darwin, ignore anything but system's ranlib. Fixes #1812
I've merged #1813 which will be in the next release, hopefully in the next few days. |
Thanks @flavorjones 🙏 |
Hello, I'm using brew's Ruby:
And I tried to install Nokogiri with
gem install nokogiri
which gave me:Here is the content of
/usr/local/lib/ruby/gems/2.5.0/gems/nokogiri-1.8.5/ext/nokogiri/tmp/x86_64-apple-darwin17.7.0/ports/libxml2/2.9.8/compile.log
:After some troubleshooting, I realized I had
binutils
installed with Homebrew and also linked for some reason. Which replaces sytem'sar
by GNUar
.Nowadays when you try to
$ brew link binutils
,brew
bails out but maybe it was previously allowed:So the solution is really to
brew unlink binutils
and make sure you don't have/usr/local/opt/binutils/bin
in yourPATH
before doinggem install nokogiri
.A solution I found is to pass
RANLIB=/usr/bin/ranlib
toconfigure
, when building for Darwin.The text was updated successfully, but these errors were encountered: