ruby - Kali Linux Rolling : Trying to install Ruby 2.2.2 but getting “__rvm_make -j4” error

标签 ruby compiler-errors rvm kali-linux

我对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.

最佳答案

尝试这个

rvm get head
rvm reload
rvm cleanup archives

关于ruby - Kali Linux Rolling : Trying to install Ruby 2.2.2 but getting “__rvm_make -j4” error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43597934/

相关文章:

ruby - 使用 ruby​​ 2.3.3 和 rails 4.2.5.2 在 Windows 7 上的 ruby​​ on rails 项目中迁移数据库时出错

ruby - 打开终端时正确的 Ruby 版本

java - android.view.InflateException : Binary XML file line #0: Error inflating class <unknown> in recyclerview for below API 21

R 集群导出错误 "object not found"

c++ - 警告: 'LPEVENT CItem::m_pkExpireEvent' and warning:format '%d' expects type 'int' , but argument 3 has type 'double'

ruby-on-rails - Vim ctags 当前目录和 gemset

ruby-on-rails - 无法生成应用程序

mysql - 我应该在 ubuntu Natty Narwhal 中安装哪个版本的 percona db 包?

ruby 可枚举 : first truthy value of a block

ruby-on-rails - 运行时出现段错误 'bundle exec rake'