0

そのため、xubuntu 13.10 に BeEF ( http://beefproject.com/ ) をインストールしようとしていますが、バンドル インストールしようとしているときに、rubyracer でエラーが発生し続けます。

ここに私が従っている方向があります。(BeEFのgithubページより)

sudo apt-get update 
sudo apt-get install curl git ruby build-essential libsqlite3-ruby libsqlite3-dev libssl-dev
sudo curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
source /etc/profile.d/rvm.sh
rvm pkg install zlib --verify-downloads 1
rvm install ruby-1.9.3-p484
rvm use 1.9.3
gem install bundler
git clone git://github.com/beefproject/beef.git
cd beef
bundle install <---- error here
ruby beef

bundle install を実行したときのエラー コードは次のとおりです。

Installing therubyracer (0.12.1) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

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

make
compiling heap.cc
compiling date.cc
compiling object.cc
compiling init.cc
compiling constraints.cc
compiling external.cc
compiling constants.cc
compiling signature.cc
compiling locker.cc
compiling rr.cc
compiling handles.cc
compiling value.cc
compiling string.cc
compiling accessor.cc
compiling context.cc
compiling message.cc
compiling gc.cc
compiling array.cc
compiling template.cc
compiling function.cc
compiling backref.cc
compiling trycatch.cc
compiling script.cc
compiling v8.cc
compiling invocation.cc
compiling stack.cc
compiling primitive.cc
compiling exception.cc
linking shared-object v8/init.so
/usr/bin/ld: /var/lib/gems/1.9.1/gems/libv8-     3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a(api.o): relocation      R_ARM_THM_MOVW_ABS_NC against `_ZN2v88internal7Isolate12isolate_key_E' can not be used when     making a shared object; recompile with -fPIC
/var/lib/gems/1.9.1/gems/libv8-    3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a: error adding symbols:     Bad value
collect2: error: ld returned 1 exit status
make: *** [init.so] Error 1


Gem files will remain installed in /var/lib/gems/1.9.1/gems/therubyracer-0.12.1 for     inspection.
Results logged to /var/lib/gems/1.9.1/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.

ruby 1.9.3-p484 と ruby​​ gems バージョン 2.2.2 を使用しています。誰かが素晴らしい解決策を持っているなら!

4

0 に答える 0