在YMM(2010年中)和Air(2010年末)更新到优胜美地。我的开发人员环境[rvm 1.25.33,ruby 2.1.2,homebrew]在iMac上没有问题,但当我尝试运行rvm要求时出现Air错误:
Checking requirements for osx.
Installing requirements for osx.
Updating system.....
Installing required packages: gcc46, libyaml, readline, libksba....
Error running 'requirements_osx_brew_libs_install gcc46 libyaml readline libksba',
showing last 15 lines of
/Users/michael/.rvm/log/1413996850/package_install_gcc46_libyaml_readline_libksba.log
+ case "$1" in
+ [[ -t 1 ]]
+ return 1
+ printf %b 'There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
+ case "$_system_version" in
+ return 1
Requirements installation failed with status: 1.
我可以手动安装除gcc46之外的所有文件,每次都会出错。是的,我安装了CLT 6.1(好几次),但自制软件似乎忽略了这一点,并坚持将gcc46作为依赖安装。
Brew更新和酿造医生说一切都很好。日志声明:
Installing gcc46 from homebrew/homebrew-versions
Error: An unsatisfied requirement failed this build.
gcc46: OS X Mavericks or older is required for stable.
Use `brew install devel or --HEAD` for newer."
当gcc49已经可用时,酿造安装--HEAD gcc46似乎不合逻辑,但经过两天的空研究和摔跤之后,我试着得到了:
No head is defined for gcc46
我重新安装了Homebrew和rvm四次,每次都遇到同样的错误。如果不是因为我的iMac没有更新问题,我可能只是将其简单化为简单的不兼容性。我的开发人员环境在两个系统上都相同。任何帮助将不胜感激!
答案 0 :(得分:3)
你需要更新rvm:
rvm get head
我即将推动下一个稳定,所以明天它就足以保持稳定:
rvm get stable
答案 1 :(得分:0)
我在2013 MBP上遇到了完全相同的问题。最终似乎做的诀窍是完全卸载xCode和CLT,然后重新安装两个(使用那个很好的长xCode下载)。在那之后,我终于能够成功运行rvm requirements
并继续我的一天。
另外需要注意的是,我确实在所有这些之前运行rvm get head
以确保我拥有最新的rvm版本。从长远来看,不确定这是否会产生影响,但我相信完全重新安装xCode是最终的诀窍。
祝你好运!