在那里,我认为设置构建RoR应用程序很容易。我所要做的就是下载Ruby,RubyGems和Rails。这是48小时的麻烦(rbenv似乎无法安装当前版本的Ruby,所以我不得不用RVM重复这个过程。)
我无法通过运行安装文件或通过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
常见的错误似乎是它不是一个目录,但我遵循了两套不同的指令。我不明白为什么错误不断出现。
答案 0 :(得分:0)
Rbenv simple无法安装Ruby 2.0.0。我相信这是因为没有正确指定gem路径,但是我没有找到明确说明正确设置它。我建议完全卸载rbenv(必要时进行系统还原),然后使用RVM和Homebrew执行全新安装。按照RVM网站上的说明操作。