我正在尝试在 Mavericks OS X 9 上安装 RVM。它不起作用,并让我放弃了对日志的用户名/.rmv 文件的追踪。我在哪里可以找到该文件?我转到 Finder,但我的用户名 (Christopherd) 文件中没有 .rmv。
详细来说, 我跑了:
$ \curl -L https://get.rvm.io | bash -s stable --ruby
后来得到了这个:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing macports..............................................................................................................................................................................................................................................................................................................................christopherd password required for 'make install': .......
......................................................................................................................................................................................................................................
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Users/christopherd/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
Installing requirements for osx.
Updating system.
Error running 'requirements_osx_port_update_system ruby-2.0.0-p247',
please read /Users/christopherd/.rvm/log/1385052252_ruby-2.0.0-p247/update_system.log
Requirements installation failed with status: 1.
然后我这样做了,但我仍然找不到任何帮助:/
Christophers-Mac:~ christopherd$ chflags nohidden ~/Library
Christophers-Mac:~ christopherd$ .rvm/log/1385052252_ruby-2.0.0-p247/update_system.log
-bash: .rvm/log/1385052252_ruby-2.0.0-p247/update_system.log: Permission denied
Christophers-Mac:~ christopherd$ cd .rvm/log/1385052252_ruby-2.0.0-p247/update_system.log
-bash: cd: .rvm/log/1385052252_ruby-2.0.0-p247/update_system.log: Not a directory
Christophers-Mac:~ christopherd$
#
更新:
这是我在查看日志时发现的内容:
[2013-11-21 08:57:40] requirements_osx_port_update_system
requirements_osx_port_update_system ()
{
__rvm_try_sudo port -dv selfupdate || return $?
}
current path: /Users/christopherd/.rvm/src/rvm
command(2): requirements_osx_port_update_system ruby-2.0.0-p247
sudo: port: command not found
感谢您的帮助让我走到这一步!一关下来,还有更多。我正在尝试一些解决方法,只是回到解决方案。
最佳答案
我自己也遇到了这个问题。它正在尝试查找刚刚安装的 Macports 二进制文件,但它不在您的 shell 路径中。如果您查看日志输出,它实际上成功安装了二进制文件,但我认为它没有使用新的路径定义正确地重新加载 shell。
最简单的方法是关闭 shell 窗口并打开一个新窗口。然后运行此命令重试:
rvm install 2.0.0-p247
如果仍然不起作用,go here and manually install Macports again 。安装后关闭并重新打开 shell,它应该可以工作。
关于ruby-on-rails - Rails 和 RVM : Where to find . rvm 文件夹访问 update_system.log?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20127999/