ruby on rails - Trouble installing therubyracer gem due to compiler issue on mac? -


i've been trying install gem, therubyracer on mac os x el capitan rails app, keep getting error associated -rdynamic flag, results in failure build native extensions.

amory:coursequestionbank masonscott$ gem install therubyracer building native extensions.  take while... error:  error installing therubyracer: error: failed build gem native extension.  /users/masonscott/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20160301-14168-1g6b007.rb extconf.rb checking main() in -lpthread... yes checking main() in -lobjc... yes creating makefile  make "destdir=" clean  make "destdir=" compiling accessor.cc g++: error: unrecognized command line option '-rdynamic' make: *** [accessor.o] error 1  make failed, exit code 2  gem files remain installed in /users/masonscott/.rvm/gems/ruby-2.2.1/gems/therubyracer-0.12.2 inspection. results logged /users/masonscott/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/therubyracer-0.12.2/gem_make.out 

i've tried searching everywhere , seems compiler should ignore rdynamic flag, reason mine doesn't. tried updating gcc to gcc5, still did not resolve issue. can solve issue?

i had problems installing therubyracer (because of problems libv8). think can try this.

$ gem uninstall libv8 $ gem install therubyracer -v '0.12.0' 

another way follows

gem uninstall libv8 brew install v8 gem install therubyracer gem install libv8 -v '3.16.14.3' -- --with-system-v8 

and bundle install. think solve problems.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -