运行 make install 时出现 RVM 错误.安装 power_assert gem 时出现错误 [英] RVM error while running make install. Error comes while installing power_assert gem

查看:43
本文介绍了运行 make install 时出现 RVM 错误.安装 power_assert gem 时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Arch 机器中安装 ruby​​ 2.2.2.当我运行 rvm install 时,出现以下错误.试了几次.甚至删除了 rvm 并重新安装.还是一样的问题.

Im trying to install ruby 2.2.2 in my arch machine. When I run rvm install, I get the following error. Tried several times. Even removed rvm and re-installed. Still the same issue.

○  rvm install 2.2.2
Searching for binary rubies, this might take some time.
No binary rubies available for: arch/libc-2.21/x86_64/ruby-2.2.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for arch.
Requirements installation successful.
Installing Ruby from source to: /home/pubudu/.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   323k      0  0:00:40  0:00:40 --:--:--  340k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.2.2 - #extracting ruby-2.2.2 to /home/pubudu/.rvm/src/ruby-2.2.2 - please wait
ruby-2.2.2 - #configuring - please wait
ruby-2.2.2 - #post-configuration - please wait
ruby-2.2.2 - #compiling - please wait
ruby-2.2.2 - #installing - please wait
Error running '__rvm_make install',
showing last 15 lines of /home/pubudu/.rvm/log/1429407987_ruby-2.2.2/install.log
                          rake 10.4.2
                          rdoc 4.2.0
installing bundle gems:       /home/pubudu/.rvm/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0 (build_info, cache, doc, extensions, gems, specifications)
                          test-unit-3.0.8.gem
                          minitest-5.4.3.gem
                          power_assert-0.2.2.gem
./tool/rbinstall.rb:728:in `chmod': Operation not permitted @ chmod_internal - / (Errno::EPERM)
    from ./tool/rbinstall.rb:728:in `block in <main>'
    from ./tool/rbinstall.rb:757:in `call'
    from ./tool/rbinstall.rb:757:in `block in <main>'
    from ./tool/rbinstall.rb:754:in `each'
    from ./tool/rbinstall.rb:754:in `<main>'
uncommon.mk:253: recipe for target 'do-install-nodoc' failed
make: *** [do-install-nodoc] Error 1
+__rvm_make:0> return 2
There has been an error while running make install. Halting the installation.

推荐答案

同样的问题.这对我有用:

Same issue. This worked for me:

rvm get master
rvm reinstall 2.2.2

我之前用过rvm的head版...

I used the head version of rvm before...

这篇关于运行 make install 时出现 RVM 错误.安装 power_assert gem 时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆