2015-01-08 69 views
7

我剛剛嘗試使用RVM添加Ruby 2.2並收到以下錯誤。我運行rvm得到穩定,並嘗試重新安裝,但得到相同的錯誤。錯誤正在運行'__rvm_make安裝'

$ rvm reinstall ruby-2.2.0 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.10/x86_64/ruby-2.2.0. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
Checking requirements for osx. 
Installing requirements for osx. 
Updating system..... 
Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libksba, openssl........ 
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date. 
Requirements installation successful. 
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.2.0, this may take a while depending on your cpu(s)... 
ruby-2.2.0 - #downloading ruby-2.2.0, 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 892k  0 0:00:14 0:00:14 --:--:-- 1518k 
ruby-2.2.0 - #extracting ruby-2.2.0 to /usr/local/rvm/src/ruby-2.2.0.... 
ruby-2.2.0 - #applying patch /usr/local/rvm/patches/ruby/2.2.0/fix_installing_bundled_gems.patch. 
ruby-2.2.0 - #configuring.......................................................... 
ruby-2.2.0 - #post-configuration. 
ruby-2.2.0 - #compiling............................................................. 
ruby-2.2.0 - #installing.......... 
Error running '__rvm_make install', 
showing last 15 lines of /usr/local/rvm/log/1420687911_ruby-2.2.0/install.log 
           psych 2.0.8 
           rake 10.4.2 
           rdoc 4.2.0 
installing bundle gems:  /usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0 (build_info, cache, doc, extensions, gems, specifications) 
           minitest-5.4.3.gem 
           power_assert-0.2.2.gem 
           test-unit-3.0.8.gem 
./tool/rbinstall.rb:723:in `chmod': Operation not permitted @ chmod_internal - /usr/local/rvm/gems/ruby-1.9.3-p392/ (Errno::EPERM) 
    from ./tool/rbinstall.rb:723:in `block in <main>' 
    from ./tool/rbinstall.rb:749:in `call' 
    from ./tool/rbinstall.rb:749:in `block in <main>' 
    from ./tool/rbinstall.rb:746:in `each' 
    from ./tool/rbinstall.rb:746:in `<main>' 
make: *** [do-install-nodoc] Error 1 
++ return 2 
There has been an error while running make install. Halting the installation. 
+0

我也嘗試過,仍然是相同的問題 –

+0

爲什麼你的寶石文件夾中有ruby版本?刪除這個'/ usr/local/rvm/gems/ruby​​-1.9.3 -p392 /' – Anthony

+0

謝謝Anthony!寶石文件夾中實際上有4個紅寶石版本。我刪除了所有這些,安裝完成。 –

回答

10

嘗試使用命令

RVM GET頭

然後再次嘗試更新您的RVM。希望它能工作。

+0

謝謝,它對我有用! –

+0

工作!我猜你會發現在使用rvm安裝ruby時出現錯誤,值得嘗試'rvm get head' – venkatareddy

相關問題