我最近將iMac OS升級到了最新的OSX Mavericks(10.9.3),並且無法安裝ruby 1.9.3。我在書中遇到了提議的解決方案。我已經安裝了xCode,命令行工具,使用brew doctor
修復了每個警告和錯誤,直到我得到「您的系統已準備好醞釀」消息以及其他幾種在線提議的方法。任何建議都會有很大幫助。以下是我在使用命令ruby install 1.9.3
以及此命令的其他變體時遇到的錯誤。 (每個Ruby版本都會發生這種情況,不僅僅是1.9.3)。無論我做什麼,對之後發生的確切同樣的錯誤爲「OpenSSL ...........」在OSX Mavericks上安裝Ruby
Installing required packages: readline, openssl...........
Error running 'requirements_osx_brew_libs_install readline openssl',
showing last 15 lines of /Users/julian/.rvm/log/1403049978_ruby-2.1.2/package_install_readline_openssl.log
++ /scripts/functions/logging : rvm_pretty_print() 81 > case "$1" in
++ /scripts/functions/logging : rvm_pretty_print() 82 > [[ -t 1 ]]
++ /scripts/functions/logging : rvm_pretty_print() 82 > return 1
++ /scripts/functions/logging : rvm_warn() 139 > 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
++ /scripts/functions/requirements/osx_brew : requirements_osx_brew_libs_install() 63 > case "$_system_version" in
++ /scripts/functions/requirements/osx_brew : requirements_osx_brew_libs_install() 70 > return 1
Requirements installation failed with status: 1.
使用RVM。你將會有更好的體驗。 – Max