-
Notifications
You must be signed in to change notification settings - Fork 121
3.3.10.2 installs on FreeBSD, but 3.3.10.4 does not #27
Comments
Trying to compile from source also breaks. My first attempt resulted in this error: The text leading up to this was:|--- SConstruct |+++ SConstructPatching file SConstruct using Plan A... Stop in /tmp/libv8/lib/libv8. Notice that GCC_VERSION was not parsed/determined correctly and the arch flag passed to ../scons/install/bin/scons is missing. If I make the following changes to the Makefile and manually specify GCC_VERSION and ARCH, I get a littler further. ncr-vm# head Makefile SCONS=build/scons/install/bin/scons ncr-vm# make Stop in /tmp/libv8/lib/libv8. |
If you manually build the gem from the master branch, you can get around this issue. We are preparing a new gem release but for now some user intervention is required. Sorry about the trouble, -Logan On Jan 23, 2012, at 1:23 PM, Nick Rogers wrote:
|
Thanks for the response. I did try to build the gem from the master branch and it seems to break. See my second post on this issue. Maybe I am missing something? |
Hrm I don't know but I built a FreeBSD 8.2 image last night. I'll try to check it out during some spare cycles. |
the main problem is that extconf.rb calls make where it should call gmake :-) (which is gnu make's name on FreeBSD) |
hum, also, I noticed a small thing, the error actually is : adding require 'rubygems' at the top of the file fixes it. |
Also, hum, on amd64, you need -fPIC, so adding the same than is done by the fpic-on-linux-amd64.patch to the freebsd section of the SConstruct file would be nice :-) |
this should be fixed on master and with the switch to the GYP build |
Something seems to have broken between the .2 point release and .4 that breaks installing the gem under FreeBSD.
FreeBSD ncr-vm.local 8.2-STABLE FreeBSD 8.2-STABLE #1: Fri May 6 19:11:52 UTC 2011 root@:/usr/obj/usr/src/sys/RGNETS amd64
ncr-vm# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [amd64-freebsd8]
ncr-vm#
ncr-vm# gem install libv8 -v 3.3.10.2
Building native extensions. This could take a while...
Successfully installed libv8-3.3.10.2
1 gem installed
Installing ri documentation for libv8-3.3.10.2...
Installing RDoc documentation for libv8-3.3.10.2...
ncr-vm#
ncr-vm# gem install libv8 -v 3.3.10.4
Building native extensions. This could take a while...
ERROR: Error installing libv8:
ERROR: Failed to build gem native extension.
*** 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/local/bin/ruby18
extconf.rb:13: uninitialized constant Gem (NameError)
Checking for Python...
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/libv8-3.3.10.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/libv8-3.3.10.4/ext/libv8/gem_make.out
ncr-vm#
The text was updated successfully, but these errors were encountered: