rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 193 forks source link

[Solved, could be close] Unable to install on FreeBSD 10.3 with ruby 2.3.0p0 #409

Closed papilip closed 8 years ago

papilip commented 8 years ago

FreeBSD 10.3-RELEASE #0 r297264 ruby 2.3.0p0 (2015-12-25 revision 53290)

sudo pkg install libv8
gem install libv8 -- -v '3.16.14.13' -- --with-system-v8
gem install therubyracer -- --with-v8-include=/usr/local/include
checking for main() in -lpthread... yes
checking for v8.h... yes
checking for main() in -lv8... no

Same message after installing gnu make Thanks in advance

papilip commented 8 years ago

Hello, for ruby install in user space. The solution is :

sudo pkg install gmake v8
gem install libv8 -v '3.16.14.13'
gem install therubyracer -- --with-v8-dir=~/.gem/ruby/2.3.0/gems/libv8-3.16.14.13/vendor/v8

For install with bundler

bundle config build.therubyracer --with-v8-dir=~/.gem/ruby/2.3.0/gems/libv8-3.16.14.13/vendor/v8

You can close this issue ;-)

ignisf commented 8 years ago

A new binary version of libv8 has been released, maybe you could try it now without using any additional flags.