Jump to content

[Solved] Request For Ruby Gem: Therubyracer


Bill Tj

Recommended Posts

Hi,

 

I am asking the Ruby gem "therubyracer" to be installed. (It is to be used as a JavaScript runtime as indicated by PhusionPassenger.)

 

When I tried to install therubyracer myself (via cron), I got the "libv8" is not found:

 

ERROR: Error installing therubyracer:

ERROR: Failed to build gem native extension.

 

/usr/bin/ruby extconf.rb

*** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of

necessary libraries and/or headers. Check the mkmf.log file for more

details. You may need configuration options.

 

Provided configuration options:

--with-opt-dir

--without-opt-dir

--with-opt-include

--without-opt-include=${opt-dir}/include

--with-opt-lib

--without-opt-lib=${opt-dir}/lib

--with-make-prog

--without-make-prog

--srcdir=.

--curdir

--ruby=/usr/bin/ruby

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- libv8 (LoadError)

from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'

from extconf.rb:8

 

Regards,

 

Bill

 

EDIT:

 


Building native extensions.  This could take a while...
Successfully installed libv8-3.3.10.4-x86_64-linux
Successfully installed therubyracer-0.10.2
2 gems installed
Installing ri documentation for libv8-3.3.10.4-x86_64-linux...
Installing ri documentation for therubyracer-0.10.2...
Installing RDoc documentation for libv8-3.3.10.4-x86_64-linux...
Installing RDoc documentation for therubyracer-0.10.2...
Done.

Link to comment
Share on other sites


Building native extensions.  This could take a while...
Successfully installed libv8-3.3.10.4-x86_64-linux
Successfully installed therubyracer-0.10.2
2 gems installed
Installing ri documentation for libv8-3.3.10.4-x86_64-linux...
Installing ri documentation for therubyracer-0.10.2...
Installing RDoc documentation for libv8-3.3.10.4-x86_64-linux...
Installing RDoc documentation for therubyracer-0.10.2...
Done.

 

Hi,

 

Thanks a lot for installing therubyracer; I think it is working fine. I still have one more error:

 

No such file or directory - git ls-files

 

According to http://ficial.wordpr...y-git-ls-files/, the solution for PhusionPassenger is to put

 

ln -nfs /usr/local/bin/git /usr/bin/git

 

Is it possible to add this link? Thanks.

 

Regards,

 

Bill

 

EDIT:

 


root@johnny [~]# ls -l /usr/local/bin/git
-rwxr-xr-x 1 root root 3746139 Mar 17  2011 /usr/local/bin/git*
root@johnny [~]# ls -l /usr/bin/git
/bin/ls: /usr/bin/git: No such file or directory

root@johnny [~]# ln -ns /usr/local/bin/git /usr/bin/git

root@johnny [~]# ls -l /usr/local/bin/git
-rwxr-xr-x 1 root root 3746139 Mar 17  2011 /usr/local/bin/git*
root@johnny [~]# ls -l /usr/bin/git
lrwxrwxrwx 1 root root 18 Aug 21 08:56 /usr/bin/git -> /usr/local/bin/git*

Link to comment
Share on other sites

Hi,

 

Thanks a lot for helping to solve the problem. I am so sorry that I just became aware from http://www.ruby-foru...pic/4306127#new that

 

"Rails hosts, for instance Heroku, are strongly advising against therubyracer because of memory usage. I removed therubyracer from my gems and just did $sudo apt-get install nodejs."

 

I don't know whether here we have memory usage problem or not. (Removing therubyracer is easy, just "gem uninstall therubyracer"; but I am not sure about installing node.js.)

 

Regards,

 

Bill

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...