Closed zykadelic closed 9 years ago
Looks like there is something wrong in your GCC installation:
sh: line 1: 47984 Segmentation fault: 11 /usr/local/opt/gcc46/bin/gcc-4.6 -v 2>&1
Can't you work it around by running the gem command with: CC=/usr/bin/gcc gem install ...
?
The output is the same. I should note that it installs just fine on my system when I use Ruby 2.x instead of 1.9.3.
i faced similar issue. When I tried gcc -v , it was complaining xcode path is not available.
$gcc -v
xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select
)
Then I tried to switch the path. $ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Check the path after changing path. $xcode-select -p /Applications/Xcode.app/Contents/Developer
Did it work for you after changing that? My Xcode install (now updated to 6.2 (6C131e)) seems fine:
$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Still running into the same error when trying to install the gem.
Have you resolved issue? I've faced with same and resolve it by execution export GREP_OPTIONS='--color=never' and run gem install after that. In my case problem was caused by grep. It added special symbols for color matched pattern and passed files for father processing. Disabling --color option for grep resolved problem.
Thanks for the tip @sergderevyanko, but I’m running into the same error after running export GREP_OPTIONS='--color=never'
Now installs just fine...
My guess is that xcode 6.3 fixed it.
brew install gpgme
fixes it too
gem install gpgme -- --use-system-libraries
<-- fixed it for me
@WtfJoke this worked for me also last time I saw it (on a colleague's computer).
Install is complaining about "You have to install development tools first.", but development tools is already installed and up to date.