How to install libv8 using a specific version of g++?

Posted by Catfish on Server Fault See other posts from Server Fault or by Catfish
Published on 2012-12-10T02:10:02Z Indexed on 2012/12/10 5:07 UTC
Read the original article Hit count: 656

Filed under:
|
|
|
|

I'm trying to install therubyracer gem for a rails project - http://stackoverflow.com/questions/13793533/unable-to-install-therubyracer-on-centos-errors-with-v8-and-gcc and i'm thinking that now that i installed g++44, that all i need to do is get gem install libv8 to use g++44 instead of g++.

Is there a way to run gem install libv8 and to have it look at my updated g++ version?

Or is there a way to set the default g++ to the g++44 location?

some helpful output

[root@allthingswebdesign current]# which g++
/usr/bin/g++
[root@allthingswebdesign current]# which g++44
/usr/bin/g++44
[root@allthingswebdesign current]# 

[root@allthingswebdesign current]# cd /usr/bin/
[root@allthingswebdesign bin]# ls -al g++*
-rwxr-xr-x 4 root root 218432 May 10  2012 g++
-rwxr-xr-x 2 root root 263704 Feb 21  2012 g++44
lrwxrwxrwx 1 root root     12 Dec  9 17:21 g++-4.4 -> /usr/bin/g++

© Server Fault or respective owner

Related posts about centos

Related posts about ruby-on-rails