Closed ciembor closed 9 years ago
Same problem here
Same here
I'm looking for a fix as well.
Same problem here. Anybody found a solution yet?
Taking the following steps, this was how I compiled therubyracer on OSX 10.10
sudo xcode-select --install
gem install therubyracer
~ ❯❯❯ sw_vers -productVersion
10.10
~ ❯❯❯ gcc --version ⏎
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.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
~ ❯❯❯ ruby --version
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
~ ❯❯❯ gem install therubyracer
Fetching: therubyracer-0.12.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed therubyracer-0.12.1
Parsing documentation for therubyracer-0.12.1
Installing ri documentation for therubyracer-0.12.1
Done installing documentation for therubyracer after 0 seconds
1 gem installed
Same here ->
$ gem install therubyracer
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/Users/carlosveucv/.rbenv/versions/2.1.5/bin/ruby extconf.rb
checking for main() in -lpthread... yes
checking for main() in -lobjc... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling accessor.cc
g++-5: error: unrecognized command line option '-rdynamic'
make: *** [accessor.o] Error 1
$ gcc --version
gcc (Homebrew gcc 5.2.0) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
My gcc: