问题描述
我使用rvm install 1.9.3
安装红宝石,但是出现以下错误。
Xcode version older than 4.6.2 installed,download and install newer version from:
http://connect.apple.com
After installation open Xcode,go to Downloads and install Command Line Tools.
Error running 'requirements_osx_brew_update_system ruby-1.9.3-p551',please read /Users/.rvm/log/1605112932_ruby-1.9.3-p551/update_system.log Requirements installation Failed with status: 1.
我的Xcode版本是
/usr/bin/xcodebuild -version
Xcode 12.1
Build version 12A7403
所以,我找到了this并尝试了
rvm install 1.9.3 --with-gcc=clang
但是有同样的错误。然后我尝试了
rvm pkg install openssl
CC=/usr/local/bin/gcc-4.2 CPP=/usr/local/bin/cpp-4.2 CXX=/usr/local/bin/g++-4.2 rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
但是当我使用 rvm pkg安装openssl 时
Error running '__rvm_make install',please read /Users/.rvm/log/1605114992/openssl_make.install.log
这个文件确实很大,但是开始是
[2020-11-11 20:18:55] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /Users/.rvm/src/openssl-1.0.1i
GEM_HOME=/Users/.rvm/gems/ruby-2.0.0-p648
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/.rvm/gems/ruby-2.0.0-p648/bin:/Users/.rvm/gems/ruby-2.0.0-p648@global/bin:/Users/.rvm/rubies/ruby-2.0.0-p648/bin:/usr/local/bin:/bin:/usr/sbin:/sbin:/Users/.rvm/bin:/usr/bin
GEM_PATH=/Users/.rvm/gems/ruby-2.0.0-p648:/Users/.rvm/gems/ruby-2.0.0-p648@global
command(2): __rvm_make install
+ make install
making all in crypto...
making all in crypto/objects...
make[2]: nothing to be done for `all'.
making all in crypto/md4...
make[2]: nothing to be done for `all'.
文件的结尾是
installing man3/err.3
installing man3/evp.3
installing man3/hmac.3
/bin/sh: /Users/.rvm/usr/ssl/man/man3/hmac.3: Too many levels of symbolic links
make: *** [install_docs] Error 1
+ return 2
以及如何解决我找不到的问题。有人可以帮我吗?
解决方法
对Ruby 1.9.3的支持已于五年半前的2015年2月结束,于9年前的2011年发布。 Ruby 1.9系列于13年前于2007年发布。 Ruby 1.9.3不支持使用Clang进行编译,并且可能也无法使用现代版本的GCC进行编译。也不能将其与当前版本的OpenSSL链接。
通过搜索不变的数十个错误中的每一个来使Ruby 1.9.3在当前平台上进行编译可能非常繁琐。
如果要编译 较旧的软件,最简单的方法是在实际经过测试的OS版本上进行操作。 。在您的情况下,可能是MacOS X 10.7“ Lion”。