我试图在我的机器上安装 rvm 并选择一个版本,但是我收到了这个可怕的错误,有人可以帮忙吗?我需要安装蒲公英部署但由于这个问题无法安装。
Error running 'requirements_osx_port_install_port',
please read /Users/mariovassiliades/.rvm/log/ruby-2.0.0-p0/1368093119_port_install.log
最佳答案
我通过先安装“Homebrew”解决了这个问题:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
之后我运行:$ brew doctor
,然后它告诉我:
警告:未安装开发者工具。
您应该安装命令行工具。
运行 xcode-select --install
来安装它们。
所以我运行“xcode-select --install”,然后运行“rvm requirements”,它起作用了!
附注:如果您遇到Error: No available formula for gcc46/,请尝试brew tap --repair homebrew/dupes,然后尝试重新安装。对了,我用的是brew install gcc46,半个多小时没提示。
最后,请原谅我的英语不好。
关于ruby - rvm 安装错误运行 'requirements_osx_port_install_port',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16459028/