-
-
Notifications
You must be signed in to change notification settings - Fork 905
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 Install Fails on Mac OS X with xz installed from Homebrew #1483
Nokogiri 1.6.8 Install Fails on Mac OS X with xz installed from Homebrew #1483
Comments
I had the same build failure. |
Although the |
summoning @aramprice |
tl;dr => Here's the info I've been able to dig up when running into this issue; resolved with the similar Looking in the
It turns out that that
Uninstalling allows the libxml compile to succeed. The unfortunate thing is that
Configuration:
|
This sounds like you want to nudge people to
|
@DomT4 installing with I also tried |
That's a bit odd. Anything in |
No problems reported by The actual culprit is probably further back in the |
If it helps anyone, I was able to get it build properly after a |
Duplicated with on the following configuration:
Output from
Contents of
|
This worked for me: gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries |
This worked for me when attempting to install github/pages-gem. Thanks @md5. |
|
Related or dupe to #1486? Given that (subjectively) the symptoms and solution were similar for me. |
I had the same nokogiri install problem. My repo folder was in a box.com sync folder. I moved it to another folder and it installed without any problems. So make sure that you are not using a box.com folder. Thanks |
xcode-select --install worked for me. |
1 similar comment
xcode-select --install worked for me. |
|
@njia Yes. You will need to relink it before you do almost anything else with brew, and |
before bundle install , you should run this command
or add config in project project_path/.bundle/config and add the content into it
gem install for system env, just |
As per @wenweih, following worked instead of doing
My gemfile for github-pages based website:
|
same issue ,use jekyll on mac... uninstalled xz,it works for me...but i do not really know what is xz... |
I tried all of the above to no avail. For me, the solution was to use rvm to manage my version of ruby. I could then install nokogiri fine!
|
Worked for me! Thanks y'all! |
It's not particularly brew but related. I use macports and had the same issue. I could solve it by re-installing
Also you need to use system libs:
|
I had the similiar nokogiri install problem A little bit different : gem install nokogiri -v '1.6.8' or gem install nokogiri -v 1.6.8 -- --with-iconv-dir= Here is the whole error log: Building native extensions. This could take a while...
Using pkg-config version 1.1.7 Provided configuration options: extconf failed, exit code 1 Gem files will remain installed in /Users/nywlsb/.rvm/gems/ruby-1.9.3-p392@aiview_dashboard_ror/gems/nokogiri-1.6.8 for inspection. any ideas guys |
removing macports bin from $PATH resolves this issue for me on macOS sierra (10.11) |
I'm on:
|
If someone can boil down the advice here into a PR for the installation tutorial, I'd be very grateful. |
did the trick for me. |
If someone can boil down the advice here into a PR for the installation tutorial, I'd be very grateful. |
I don't think uninstalling packages should be the proper solution. What is wrong with updating the Command Line Tools ( |
@esambo Because IMO, @flavorjones, this should not be closed until there is a PR as you have requested, although I would agree that this thread should probably be locked because of the mixed information in the thread. The real problem is that Homebrew (without |
Update: Correction, after updating to the latest brew I seem to be good to go. Weird. |
@halostatue I'd greatly appreciate if someone who cares deeply about OSX support would submit a PR to the documentation. You clearly know more than I do about OSX binaries and support, and I have no way to either reproduce this error nor verify that what you're suggesting is correct, as I'm a Linux user. So I'd like to gently suggest that you're in a better position than I am to craft clear instructions for future OSX users of Nokogiri. |
brew uinstall -force xz worked for me, so far, I think... |
xcode-select --install worked for me. |
Seemed to work for me too, thanks! On Oct 7, 2016 9:54 PM, "Caio César" [email protected] wrote:
|
As per @dyndna and @wenweih, the following worked for me for a related problem.
See here for complete discussion: http://stackoverflow.com/questions/39937394/gem-install-nokogiri-v-1-6-8-1-fails/
MacOSX Sierra, Ruby 2.3.1 |
@MtnBiker, can you please retry without the homebrew libxml2 and using the |
@halostatue The key word in my response was "related." I'm not (knowingly anyway) using xz. Someone posted a link to this thread in response to a problem I was having with nokigiri. So trying what you suggest probably doesn't make sense in my case. And in any case since things are working now I'm not going to mess with it. |
@MtnBiker; if you’re using homebrew, you’re probably using xz whether you realize it or not. If you ran |
@halostatue I was going to ask earlier how to determine dependencies, but you answered it. Hence followed through on your original request. |
It seems that it would have, thanks for checking that out, @MtnBiker. |
|
had the same error (unsigned short) when trying to install nokogiri. |
Documentation is now online for |
- needed info from - sparklemotion/nokogiri#1483 (comment)
Same problem here, had to: |
xcode-select --install worked for me |
I also need to do : |
All of this is in the installation tutorial! http://www.nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x Locking this issue. |
Action:
Expected:
Nokogiri 1.6.8 installs correctly.
Actual:
When I do:
Nokogiri 1.6.8 installs correctly.
The text was updated successfully, but these errors were encountered: