0
我在那裏想要建立一個RoR應用程序很容易。我所要做的只是下載Ruby,RubyGems和Rails。已經有48個小時的麻煩了(rbenv似乎無法安裝當前版本的Ruby,所以我不得不用RVM重複這個過程)。安裝Rubygems 2.0.3的問題(Ruby 2.0.0-p195) - 沒有目錄?
我無法通過運行安裝文件或通過RVM來安裝Rubygems。下面是結果:
"unknown:rubygems-2.0.3 aok617$ ruby setup.rb /Users/aok617/rubygems-2.0.3/lib/rubygems/config_file.rb:318:in `read': Is a directory - /Users/aok617/.gemrc (Errno::EISDIR) from /Users/aok617/rubygems-2.0.3/lib/rubygems/config_file.rb:318:in `load_file' from /Users/aok617/rubygems-2.0.3/lib/rubygems/config_file.rb:191:in `initialize' from /Users/aok617/rubygems-2.0.3/lib/rubygems/gem_runner.rb:66:in `new' from /Users/aok617/rubygems-2.0.3/lib/rubygems/gem_runner.rb:66:in `do_configuration' from /Users/aok617/rubygems-2.0.3/lib/rubygems/gem_runner.rb:46:in `run' from setup.rb:45:in `' unknown:rubygems-2.0.3 aok617$ "
當我嘗試使用RVM:
unknown:rubygems-2.0.3 aok617$ rvm install rubygems 2.0.3 Retrieving rubygems-2.0.3 Extracting rubygems-2.0.3 ... Removing old Rubygems files... Installing rubygems-2.0.3 for . Error running 'env GEM_PATH=:@global GEM_HOME= /Users/aok617/.rvm/rubies//bin/ruby -d /Users/aok617/.rvm/src/rubygems-2.0.3/setup.rb', please read /Users/aok617/.rvm/log/1372015627_rubygems.install.log Installation of rubygems did not complete successfully. mkdir: : No such file or directory mkdir: : No such file or directory unknown:rubygems-2.0.3 aok617$
安裝日誌只是指出:
[2013-06-23 20:13:14] /Users/aok617/.rvm/rubies//bin/ruby env: /Users/aok617/.rvm/rubies//bin/ruby: No such file or directory
常見的錯誤似乎是,它不是一個目錄,但我遵循了兩套不同的說明。我不明白爲什麼錯誤不斷出現。
你爲什麼要手動安裝Rubygems?安裝Ruby時沒有安裝它(通過RVM,我想)? –
如果你輸入'ls/Users/aok617/.rvm/gems',你會得到什麼嗎? – lurker
謝謝,我已經完全讓Rbenv失望了。我無法分辨什麼是原生的,什麼是安裝的,因此必須恢復整個系統。然後我用RVM和Homebrew重複了這個過程,現在它工作的很好。 – user2514224