2013-12-17 74 views
-1

我目前正在運行Ubuntu 13.10,rvm 1.24.8和rails 4.0.2。我目前有一個紅寶石1.9.3-P448的工作版本。我正在嘗試安裝當前版本的ruby 2.0.0-p353,但我目前正在安裝gem時出錯。在ubuntu上安裝rails 2.0.0-p353錯誤13.10


Searching for binary rubies, this might take some time. 
    No binary rubies available for: ubuntu/13.10/x86_64/ruby-2.0.0-p353. 
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
    Checking requirements for rvm_pkg. 

    Warning, you are using 'rvm autolibs rvm_pkg', this is rarely used and can produce errors, 
    make sure to report any problems to https://github.com/wayneeseguin/rvm/issues 

    Requirements installation successful. 
    Installing Ruby from source to: /home/brian/.rvm/rubies/ruby-2.0.0-p353, this may take a while depending on your cpu(s)... 
    ruby-2.0.0-p353 - #downloading ruby-2.0.0-p353, this may take a while depending on your connection... 
    ruby-2.0.0-p353 - #extracting ruby-2.0.0-p353 to /home/brian/.rvm/src/ruby-2.0.0-p353. 
    ruby-2.0.0-p353 - #extracted to /home/brian/.rvm/src/ruby-2.0.0-p353 
    ruby-2.0.0-p353 - #configuring................................................. 
    ruby-2.0.0-p353 - #post-configuration. 
    ruby-2.0.0-p353 - #compiling............................................................................. 
    ruby-2.0.0-p353 - #installing............................. 
    Retrieving rubygems-2.1.11 
    Extracting rubygems-2.1.11 .... 
    Removing old Rubygems files... 
    Installing rubygems-2.1.11 for ruby-2.0.0-p353.. 
    Error running 'env GEM_PATH=/home/brian/.rvm/gems/ruby-2.0.0-p353:/home/brian  /.rvm/gems/[email protected]:/home/brian/.rvm/gems/ruby-2.0.0-p353:/home/brian/.rvm/gems/[email protected] GEM_HOME=/home/brian/.rvm/gems/ruby-2.0.0-p353 /home/brian/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -d /home/brian/.rvm/src/rubygems-2.1.11/setup.rb', 
    showing last 15 lines of /home/brian/.rvm/log/1387299251_ruby-2.0.0-p353/rubygems.install.log 
    [2013-12-17 11:56:44] /home/brian/.rvm/rubies/ruby-2.0.0-p353/bin/ruby 
    current path: /home/brian/.rvm/src/rubygems-2.1.11 
    command(6): env GEM_PATH=/home/brian/.rvm/gems/ruby-2.0.0-p353:/home/brian/.rvm/gems/[email protected]:/home/brian/.rvm/gems/ruby-2.0.0-p353:/home/brian/.rvm/gems/[email protected] GEM_HOME=/home/brian/.rvm/gems/ruby-2.0.0-p353 /home/brian/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -d /home/brian/.rvm/src/rubygems-2.1.11/setup.rb 
    Exception `LoadError' at /home/brian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems.rb:1087 - cannot load such file -- rubygems/defaults/operating_system 
    Exception `LoadError' at /home/brian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/rubygems.rb:1096 - cannot load such file -- rubygems/defaults/ruby 
    /home/brian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 8 column 1 (Psych::SyntaxError) 
from /home/brian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/psych.rb:205:in `parse_stream' 
from /home/brian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/psych.rb:153:in `parse' 
from /home/brian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/psych.rb:129:in `load' 
from /home/brian/.rvm/src/rubygems-2.1.11/lib/rubygems/config_file.rb:332:in `load_file' 
from /home/brian/.rvm/src/rubygems-2.1.11/lib/rubygems/config_file.rb:197:in `initialize' 
from /home/brian/.rvm/src/rubygems-2.1.11/lib/rubygems/gem_runner.rb:74:in `new' 
from /home/brian/.rvm/src/rubygems-2.1.11/lib/rubygems/gem_runner.rb:74:in `do_configuration' 
from /home/brian/.rvm/src/rubygems-2.1.11/lib/rubygems/gem_runner.rb:39:in `run' 
from setup.rb:45:in `<main>' 
    Installation of rubygems did not complete successfully. 
    Saving wrappers to '/home/brian/.rvm/wrappers/ruby-2.0.0-p353'... 
    . 
    ruby-2.0.0-p353 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). 
    ruby-2.0.0-p353 - #importing default gemsets, this may take time....... 
    Install of ruby-2.0.0-p353 - #complete 
    Ruby was built without documentation, to build it run: rvm docs generate-ri 

所以任何人有任何想法是怎麼回事?並感謝您的幫助!

+0

你什麼命令的錯誤嗎? – screenmutt

+0

rvm install ruby​​-2.0.0-p353 – user3095959

+3

首先'rvm get stable'然後'rvm install ruby​​-2.0.0-p353'。 –

回答

0

它是在任何~/.gemrc/etc/gemrc檢查line 8 column 1