-4

我对 Linux 系统和运行 Kali lite 还很陌生,但我正在尝试安装 Hashview,按照说明,我已经下载了 RVM 并安装了默认版本 2.4.0p0,但我需要 2.2.2 才能与 GEM 文件匹配。当我尝试安装 Ruby 2.2.2 时,我收到以下错误,我已经在这台机器和完整的 Kali 机器上尝试过:

root@kali:~# rvm install ruby-2.2.2
Searching for binary rubies, this might take some time.
No binary rubies available for: debian/Kali_Linux_Rolling/x86_64/ruby-2.2.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for debian.
Installing requirements for debian.
Updating system.
Installing required packages: libreadline6-dev..
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.2.2, this may take a while depending on your cpu(s)...
ruby-2.2.2 - #downloading ruby-2.2.2, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.6M  100 12.6M    0     0   138k      0  0:01:33  0:01:33 --:--:-- 1314k
ruby-2.2.2 - #extracting ruby-2.2.2 to /usr/local/rvm/src/ruby-2.2.2....
ruby-2.2.2 - #applying patch /usr/local/rvm/patches/ruby/2.2.2/fix_installing_bundled_gems.patch.
ruby-2.2.2 - #applying patch /usr/local/rvm/patches/ruby/2.2.2/openssl3.patch.
ruby-2.2.2 - #configuring......................................................|
ruby-2.2.2 - #post-configuration..
ruby-2.2.2 - #compiling........................................................-
Error running '__rvm_make -j4',
showing last 15 lines of /usr/local/rvm/log/1493066920_ruby-2.2.2/make.log
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
installing default pathname libraries
compiling objspace_dump.c
installing default nkf libraries
linking shared-object objspace.so
make[2]: Leaving directory '/usr/local/rvm/src/ruby-2.2.2/ext/objspace'
linking shared-object pathname.so
make[2]: Leaving directory '/usr/local/rvm/src/ruby-2.2.2/ext/pathname'
linking shared-object nkf.so
make[2]: Leaving directory '/usr/local/rvm/src/ruby-2.2.2/ext/nkf'
make[1]: Leaving directory '/usr/local/rvm/src/ruby-2.2.2'
uncommon.mk:189: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
++ return 2
There has been an error while running make. Halting the installation.
4

1 回答 1

0

尝试这个

rvm get head
rvm reload
rvm cleanup archives
于 2017-04-25T01:13:38.287 回答