-
Notifications
You must be signed in to change notification settings - Fork 133
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
Update extconf.rb so Mac OS X always uses clang (if correct version is available) and stops looking for GCC #591
Comments
If you're on Mac you should clang not gcc. #584 |
@v0dro We should probably fix this. The weird stuff in extconf is a workaround for when clang wasn't able to compile NMatrix and we had to use GCC. Now the reverse is true, and GCC won't work, but clang does. |
Yes you have a point. I don't have access to a Mac though so I can't work on this as of now. I think it should be a small change in See this: http://stackoverflow.com/questions/4554837/how-to-specify-compiler-for-gem-install Or maybe use use |
We don't need to rewrite extconf totally. It's already overriding the system default to use GCC on Mac. We just need to remove the override. |
how exactly? don't assume i have any idea what i'm doing. if someone's at least willing to help me understand the problem, i'd be happy to try and work out a solution. |
worked around by temporarily symlinking to clang.
|
I am having this issue, too. Or one that is closely related. The error is:
This occurred both before and after I followed the instructions for OS X here: https://github.com/SciRuby/nmatrix/wiki/Installation I also tried setting up a symbolic ink for g++-4.8, to match the one for gcc. When I did that, I got a different error, as shown in the mkmf.log file
This is a big problem. mikecmpbll's fix didn't work for me, either, as I am now on OS X 10.10.5. I should also note: this is a local problem. I did manage to get nmatrix installed on our Linux server. But once I did, every time we run a script we get the following message, repeated 8 times, whenever a script starts up (even scripts that do not use nmatrix):
That is on Ruby 2.3.3p222, Rails 5.0.0.1. |
@MohawkJohn Only if I can successfully upgrade to High Sierra. So far, it has been no go. |
@lonny You should still be able to compile with clang/clang++. What happens if you open irb and do the thing I suggested above? |
|
I am going to continue my efforts to upgrade to High Sierra. But I have to do that on my "off time", as it were. |
What about if you do |
|
Just as a followup: I checked the config for my ruby as in the description here:
and it is already set to use clang and clang++. When I type "which gcc" I get usr/bin/gcc/. When I type |
I'm having this issue while trying to install a gem. Anybody could help me? Appreciate it a lot!
This is my ruby version : ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin16]
The text was updated successfully, but these errors were encountered: