2013-05-16 3 views
0

Получение ошибки ниже при попытке установить драгоценный камень therubyracer.не удалось установить ручку therubyracer chromebook

Не уверен, почему он жалуется на v8, когда у меня уже загружен gem.

У меня были оригинальные проблемы с установкой libv8, но затем удалось установить с помощью флагов --system-v8, но теперь его рубинер жаловался.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

    /home/glenn/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb 
checking for main() in -lpthread... yes 
checking for v8.h... no 
*** 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=/home/glenn/.rvm/rubies/ruby-1.9.3-p392/bin/ruby 
    --with-pthreadlib 
    --without-pthreadlib 
    --enable-debug 
    --disable-debug 
    --with-v8-dir 
    --without-v8-dir 
    --with-v8-include 
    --without-v8-include=${v8-dir}/include 
    --with-v8-lib 
    --without-v8-lib=${v8-dir}/ 
/home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/libv8-3.11.8.17/ext/libv8/location.rb:50:in `configure': You have chosen to use the version of V8 found on your system (Libv8::Location::System::NotFoundError) 
and *not* the one that is bundle with the libv8 rubygem. However, 
it could not be located. please make sure you have a version of 
v8 that is compatible with 3.11.8.17 installed. You may 
need to special --with-v8-dir options if it is in a non-standard 
location 

thanks, 
The Mgmt 

    from /home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/libv8-3.11.8.17/lib/libv8.rb:7:in `configure_makefile' 
    from extconf.rb:32:in `<main>' 


Gem files will remain installed in /home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/therubyracer-0.11.4 for inspection. 
Results logged to /home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/therubyracer-0.11.4/ext/v8/gem_make.out 
+0

Я считаю, что в настоящее время он недоступен в Chrome OS, поскольку он даже не доступен для окон (хотя некоторые gems доступны на git для предоставления v8.dll и другой поддержки) – swapnesh

+0

gem "therubyracer",: require = > 'v8' добавить это в gemfile и проверить – Bijendra

ответ

0

Я предполагаю, что вы используете дистрибутив Linux на вашем Chromebook (либо непосредственно, либо через chroot). Это верно?

Он ищет v8.h, поэтому вам необходимо установить пакет разработки v8, а также: это libv8-dev на Debian/Ubuntu (и что-то -devel на RedHat и подобные).

+0

ах, а что-то вроде apt-get install libv8-dev? – user901790

+0

Точно так! – threedaymonk

Смежные вопросы