Я работаю над проектом, который нуждается в техническом обслуживании. Когда я устанавливаю пакет, я получаю следующее сообщение об ошибке, когда поставщик пытается установить therubyracer.Установка TheRubyRacer gem на fedora 20 Ошибка
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for main() in -lpthread... yes
checking for v8.h... yes
creating Makefile
make "DESTDIR="
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -Wall -g -rdynamic -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=i686 -mtune=atom -fasynchronous-unwind-tables -m32 -o init.o -c init.cc
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -Wall -g -rdynamic -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=i686 -mtune=atom -fasynchronous-unwind-tables -m32 -o signature.o -c signature.cc
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -Wall -g -rdynamic -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=i686 -mtune=atom -fasynchronous-unwind-tables -m32 -o exception.o -c exception.cc
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -Wall -g -rdynamic -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=i686 -mtune=atom -fasynchronous-unwind-tables -m32 -o primitive.o -c primitive.cc
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -Wall -g -rdynamic -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=i686 -mtune=atom -fasynchronous-unwind-tables -m32 -o context.o -c context.cc
In file included from context.cc:1:0:
context.cc: In static member function ‘static VALUE rr::Context::SetEmbedderData(VALUE, VALUE, VALUE)’:
context.cc:81:23: error: ‘class v8::Context’ has no member named ‘SetEmbedderData’
Void(Context(self)->SetEmbedderData(NUM2INT(index), Value(data)));
^
rr.h:33:20: note: in definition of macro ‘Void’
#define Void(expr) expr; return Qnil;
^
context.cc: In static member function ‘static VALUE rr::Context::GetEmbedderData(VALUE, VALUE)’:
context.cc:85:23: error: ‘class v8::Context’ has no member named ‘GetEmbedderData’
Void(Context(self)->GetEmbedderData(NUM2INT(index)));
^
rr.h:33:20: note: in definition of macro ‘Void’
#define Void(expr) expr; return Qnil;
^
make: *** [context.o] Error 1
Gem files will remain installed in /home/anupam/.gem/ruby/gems/therubyracer-0.12.1 for inspection.
Results logged to /home/anupam/.gem/ruby/gems/therubyracer-0.12.1/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.12.1), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.12.1'` succeeds before bundling.
Когда я бегу камень установить therubyracer -v «0.12.1» или без версии, она до сих пор не удается.
Я новичок в рубине, поэтому я действительно не понимаю, что происходит или почему он терпит неудачу.
Любая помощь по этому поводу очень ценится.
Попробуйте следующее: 'камень установить therubyracer -v '0.12.1' - --with-системы-v8 ' – MrYoshiji
Не было отладочных сообщений. Простое сообщение об ошибке без каких-либо намеков. [Anupam @ localhost therubyracer-0.12.1] $ gem install therubyracer -v '0.12.1' - --with-system-v8 Построение собственных расширений с помощью: '--with -system-v8 ' Это может занять некоторое время ... ОШИБКА: Ошибка при установке therubyracer: \t ОШИБКА: Не удалось создать самородное расширение gem. Файлы Gem будут сохранены в /home/anupam/.gem/ruby/gems/therubyracer-0.12.1 для проверки. – anu