Skip to content
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

An error occurred while installing nokogiri (1.6.6.2) #1271

Closed
negash opened this issue Apr 1, 2015 · 7 comments
Closed

An error occurred while installing nokogiri (1.6.6.2) #1271

negash opened this issue Apr 1, 2015 · 7 comments

Comments

@negash
Copy link

negash commented Apr 1, 2015

I am trying to run bundle package on Mac os x, and I am getting an error
" An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.6.6.2' succeeds before bundling. "

I try gem install nokogiri also gem install nokogiri -v 1.6.6.2

nokogiri not installing

@fran-worley
Copy link

Have you tried some of the suggestions in this issue? #1231

@andrasio
Copy link

@negash Do me a favor. Download the latest version of Tokaido here.

After installation. Click 'Open In Terminal' and run:

gem uninstall nokogiri

Try installing it now on that same session you opened from Tokaido. If it works on your machine, then there is a high probability that most build failures people face when installing Nokogiri on OS X is not libxml nor libxslt, but missing the iconv header files #1214 (which Tokaido adds them for you)

@kenichi
Copy link

kenichi commented Jun 17, 2015

i have a perfectly valid libiconv installed on my mac in /usr/local, but this line makes it impossible for me to install the gem without monkeying around:

https://github.com/sparklemotion/nokogiri/blob/master/ext/nokogiri/extconf.rb#L453

--with-iconv-dir is no help in this case. 😢

on purpose? something else i can try? happy to help if there's anything i can do.

@zulhfreelancer
Copy link

@flavorjones
Copy link
Member

We made updates in 1.6.7 that should address libiconv issues. If you're still having a problem, please comment here and I'll reopen.

@toopher503
Copy link

I am using Mojave (10.14.5) , and had to do a clean install which broke things.
I ran this:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

and it worked.

@flavorjones
Copy link
Member

@toopher503 you're commenting on an unrelated issue that was closed over three years ago.

It sounds like your issue might be related to #1801 fixed with #1851 and released in v1.10.1 on 2019-01-13. Please upgrade to at least that version and if it doesn't work for you, open a new issue. Thanks.

@sparklemotion sparklemotion locked as resolved and limited conversation to collaborators Jun 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants