在OSX 10.10.5上安装ruby-1.9.3-p551时出错

时间:2015-11-25 19:25:59

标签: ruby-on-rails ruby macos rvm ruby-1.9.3

我的Mac上安装了新的OS 10.10.5,它有一个默认的ruby-2.0.0p481。但是,由于我们系统的特定原因,我需要ruby-1.9.3-p551。当我尝试使用RVM 1.26.11安装ruby-1.9.3-p551时,我收到以下错误。 Error for rvm install 1.9.3

我也试过运行“rvm install 1.9.3 --with-gcc = clang”,但这也给了我一个错误。 Error for rvm install 1.9.3 --with-gcc=clang

我试图在镜像二进制文件和其他地方搜索ruby-1.9.3-p551.tar.bz2二进制文件,但即便这样也不适用于我。任何帮助或指示都会很棒。

谢谢你:)

我试过“rvm get master”,输出结果如下。

aparmar-mbpr:~ aparmar$ rvm get master
Downloading https://get.rvm.io
No GPG software exists to validate rvm-installer, skipping.
Downloading https://github.com/rvm/rvm/archive/master.tar.gz

Upgrading the RVM installation in /Users/aparmar/.rvm/
    RVM PATH line found in /Users/aparmar/.mkshrc /Users/aparmar/.profile /Users/aparmar/.bashrc /Users/aparmar/.zshrc.
    RVM sourcing line found in /Users/aparmar/.profile /Users/aparmar/.bash_profile /Users/aparmar/.zlogin.
Upgrade of RVM in /Users/aparmar/.rvm/ is complete.

# Ashish.Parmar,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

Upgrade Notes:

  * No new notes to display.

RVM reloaded!
aparmar-mbpr:~

在此之后我做了rvm重新安装1.9.3并且我得到了相同的错误

aparmar-mbpr:~ aparmar$ rvm reinstall 1.9.3
ruby-1.9.3-p551 - #removing src/ruby-1.9.3-p551..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/aparmar/.rvm/rubies/ruby-1.9.3-p551, this may take a while depending on your cpu(s)...
ruby-1.9.3-p551 - #downloading ruby-1.9.3-p551, this may take a while depending on your connection...
ruby-1.9.3-p551 - #extracting ruby-1.9.3-p551 to /Users/aparmar/.rvm/src/ruby-1.9.3-p551....
ruby-1.9.3-p551 - #applying patch /Users/aparmar/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.3-p551 - #applying patch /Users/aparmar/.rvm/patches/ruby/1.9.3/CVE-2015-1855-p484.patch.
ruby-1.9.3-p551 - #configuring...............................................
ruby-1.9.3-p551 - #post-configuration.
ruby-1.9.3-p551 - #compiling...........................................................................................................................................|
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/aparmar/.rvm/log/1448483473_ruby-1.9.3-p551/make.log
     ossl_str_adjust(str, p);
     ^
ruby_missing.h:32:14: error: 'struct RString' has no member named 'len'
  RSTRING(str)->len = (length);  \
              ^
ossl.h:137:5: note: in expansion of macro 'rb_str_set_len'
     rb_str_set_len((str), newlen);\
     ^
ossl_asn1.c:1336:5: note: in expansion of macro 'ossl_str_adjust'
     ossl_str_adjust(str, p);
     ^
make[2]: *** [ossl_asn1.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make: *** [build-ext] Error 2
++ return 2
There has been an error while running make. Halting the installation.
aparmar-mbpr:~ aparmar$ 

我也尝试过rvm get head,但是在安装1.9.3之后我又得到了同样的错误

0 个答案:

没有答案