-
-
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
Cannot install nokogiri 1.6.3 on Ruby 2.1.2 (rbenv) and OS X 10.9.4 #1130
Comments
i had same problem, for a temporary fix you can downgrade to 1.6.2.1 that works. |
Having the same problem, even when providing the proper path to iconv, log looks like the one pasted above. |
Same problem here, not related to ruby 2.1.2 it seems. Probably related to OSX in general? https://gist.github.com/tigris/83a608b978b5f18c094b is my setup and logs. Have tried without the |
same issue ( mavericks , rbenv w ruby 2.1.2) cannot get nokogiri-1.6.3 installed , ( no problem w 1.6.1 and 1.6.2.1) so it's definitly an issue w 1.6.3 !!! |
Same issue on Mac OS X Lion with rvm on Ruby 1.9.3 and on Ruby 2.1.2. |
Have you all installed XCode on your machine? How about XCode command line On Mon, Jul 21, 2014 at 10:54 AM, vanderhoorn [email protected]
|
OK, I've pinged @zenspider ... For the record, I'd just like to note that this code has been available as a release candidate for over a month. I'd love if people participating on this thread would commit to testing release candidates on Macs going forward. |
@tigris correct me if I'm misinterpreting this data... You're showing that you have xcode-select version 2333, but then you're compiling with gcc-4.2 and you're getting a failure on the very first compiler sanity check. Does that sound right? Any reason why you're using gcc-4.2? @flavorjones I'm on it. Knu is prolly right in that we need to check GCC vs clang, tho I'm not entirely sure HOW at this point. |
@flavorjones @vanderhoorn installing xcode doesn't matter if you don't use it. Check to see if your homebrew has gcc-4.2 installed. If you look at your mkmf.log file, you'll prolly see that you're using gcc-4.2 to compile the gem. I don't know if this is an rvm thing, or just holdover from the between-phase when there were bugs between ruby/clang. |
@vanderhoorn or @tigris can you please test against #1131 ? |
Hi, I'm also stuck on this issue. My environment is Xcode 5.1.1 + Homebrew + ruby (built with ruby-build).
I think ruby (at least 2.1.2) selects by default gcc-4.2 (if it is installed by Homebrew) prior to gcc provided by Xcode, so this is not problem of Xcode, Homebrew or ruby-build.
|
I've tested #1131 on my env |
@comutt thanks! @flavorjones can you merge #1131? And then we'll go from there. |
Will do within the hour.
|
Building now ... |
@zenspider, i'm not entirely sure the reason for @flavorjones the |
Hi @tigris, Thanks for the comments. Again, we're building a bugfix release that you can try right now. As far as installing xcode commandline tools ... I'm sorry, it's possible there's some nuance I'm missing, but I've personally seen more than 5 developers use that command on Mavericks. I'm a Linux user, so I'm possibly just lost, but I'd love if Apple Macintosh users would commit to trying out RC versions of Nokogiri. Just as an example, the commit in question here was in 1.6.3.rc2 on June 17th, and nobody raised any issues about it. @tigris, can I count on you for testing RC versions in the future? |
@flavorjones i can try, but i don't actually use nokogiri directly. Unfortunately, much like @zenspider I have confirmed that once the Having said that, the apple-gcc42 package seems to come by default with homebrew. Every developer I've asked so far has that homebrew package installed and they didn't install it manually. Which in turn means everyone's ruby will have compiled with gcc4-2 instead of gcc. |
1.6.3.1 is out, please reopen this if it doesn't solve your |
@flavorjones thanks very much. Successfully installed. |
@keithpitty thanks for verifying! And thanks for using Nokogiri! |
@flavorjones Thank you for rapid release! 1.6.3.1 installation has succeeded. |
works fine on mavs. That said, 1.6.3.1 should address this with either compiler. |
Thanks everyone. |
Thanks @zenspider. As per the S/O link I provided, it doesn't work in all cases. I think it's dependant on fresh mavs install vs upgrade, or perhaps other things. A dialog appears and you click on INSTALL but it dies saying not available from update server. In any case, thanks for the fix, it now compiles with the gcc-4.2 provided by homebrew's apple-gcc42 package. I have also found that you can install many newer versions of gcc via homebrew that would also fix the problem, it's just that apple-gcc42 is installed by default for anyone that has installed homebrew but not bothered to install any other gcc packages. |
I thought it might be better to actually test if C compiler accepts the flag than to guess from the value of CC, so I added a commit (3c3d34f) that does that. Let me know if it has any problem. |
1.6.3.1 installs perfectly. Thanks very much for addressing this issue so quickly. |
Can anybody who had this original problem tell me what their value of That is, how can I tell if the compiler being used is |
RbConfig::MAKEFILE_CONFIG['CC']
=> "gcc-4.2" |
Here "gcc-4.2" as well. |
@tigris I have the same issue and my system info like yours, |
I've spent several hours trying various suggested solutions to this problem, to no avail.
Here's the output:
And here's my mkmf.log:
I've tried the configuration options suggested at http://nokogiri.org/tutorials/installing_nokogiri.html#homebrew_09 but it doesn't change the result.
Any suggestions would be appreciated.
The text was updated successfully, but these errors were encountered: