Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update extconf.rb so Mac OS X always uses clang (if correct version is available) and stops looking for GCC #591
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]
changed the title from
Error installing gem bindex on rails
Update extconf.rb so Mac OS X always uses clang (if correct version is available) and stops looking for GCC
May 8, 2017
This was referenced
May 9, 2017
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
Or maybe use use
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 220.127.116.11.
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