rubyjs / therubyracer

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

Fails to build when gem path has spaces in it #292

Closed jethrogb closed 9 years ago

jethrogb commented 10 years ago
/tmp $mkdir a\ b
/tmp $cd a\ b/
/tmp/a b $GEM_PATH="$(pwd)/vendor/bundle" gem install libv8 ref therubyracer --install-dir vendor/bundle/
Fetching: libv8-3.16.14.3-x86_64-linux.gem (100%)
Successfully installed libv8-3.16.14.3-x86_64-linux
Fetching: ref-1.0.5.gem (100%)
Successfully installed ref-1.0.5
Fetching: therubyracer-0.12.1.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for main() in -lpthread... yes
creating Makefile

make
Makefile:170: warning: overriding commands for target `/tmp/a'
Makefile:161: warning: ignoring old commands for target `/tmp/a'
compiling value.cc
g++: error: b/vendor/bundle/gems/libv8-3.16.14.3-x86_64-linux/vendor/v8/include: No such file or directory
make: *** [value.o] Error 1

Gem files will remain installed in /tmp/a b/vendor/bundle/gems/therubyracer-0.12.1 for inspection.
Results logged to /tmp/a b/vendor/bundle/gems/therubyracer-0.12.1/ext/v8/gem_make.out
2 gems installed
Installing ri documentation for libv8-3.16.14.3-x86_64-linux...
Installing ri documentation for ref-1.0.5...
Installing RDoc documentation for libv8-3.16.14.3-x86_64-linux...
Installing RDoc documentation for ref-1.0.5...
/tmp/a b $
asymmetric commented 9 years ago

I was also bitten by this today, as one of my jenkins projects had a space in its name.

cowboyd commented 9 years ago

This is a problem with libv8 https://github.com/cowboyd/libv8/issues/164