在使用RVM的Macbook Pro(Mountain Lion)上安装Ruby时,如何解决此错误?

时间:2016-07-09 19:19:43

标签: ruby macos command-line rvm osx-mountain-lion

当我尝试使用

进行安装时
rvm install ruby-2.2.4

rvm use 2.2

当我输入rvm use 2.2.4ruby-2.2.4 is not installed. Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-2.2.4. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx_brew. Installing requirements for osx_brew. Updating system..... Installing required packages: openssl....... Error running 'requirements_osx_brew_libs_install openssl', showing last 15 lines of /Users/mikejschorah/.rvm/log/1468093589_ruby-2.2.4/package_install_openssl.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 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 github.com/Homebrew/homebrew/wiki/Installation ++ case "$_system_version" in ++ return 1 Requirements installation failed with status: 1.` 时,我收到以下错误:

id

1 个答案:

答案 0 :(得分:0)

从未格式化的错误输出中可以看出rvm无法安装openssl,这是ruby的要求。

运行此命令以使用brew安装它。

brew install openssl