使用rvm安装另一个ruby版本时出错

时间:2016-02-23 10:02:34

标签: ruby rvm linuxmint

我正在尝试安装ruby 1.9.3但是我收到了这个错误。

✘ sushant@sushant-Vostro-3900   rvm install ruby-1.9.3-p125
Warning! PATH is not properly set up, '/home/sushant/.rvm/gems/ruby-2.3.0/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-2.3.0'.
Searching for binary rubies, this might take some time.
No binary rubies available for: mint/17/i386/ruby-1.9.3-p125.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for mint.
Requirements installation successful.
Installing Ruby from source to: /home/sushant/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 9505k  100 9505k    0     0   103k      0  0:01:31  0:01:31 --:--:--  164k
ruby-1.9.3-p125 - #extracting ruby-1.9.3-p125 to /home/sushant/.rvm/src/ruby-1.9.3-p125 - please wait
ruby-1.9.3-p125 - #applying patch /home/sushant/.rvm/patches/ruby/GH-488.patch - please wait
ruby-1.9.3-p125 - #configuring - please wait
ruby-1.9.3-p125 - #post-configuration - please wait
ruby-1.9.3-p125 - #compiling - please wait
Error running '__rvm_make -j4',
showing last 15 lines of /home/sushant/.rvm/log/1456220961_ruby-1.9.3-p125/make.log
     OSSL_SSL_METHOD_ENTRY(SSLv3_client),
                           ^
ossl_ssl.c:106:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
 #define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
                                                                     ^
make[2]: *** [ossl_ssl.o] Error 1
make[2]: Leaving directory `/home/sushant/.rvm/src/ruby-1.9.3-p125/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling callback-8.c
linking shared-object dl/callback.so
make[2]: Leaving directory `/home/sushant/.rvm/src/ruby-1.9.3-p125/ext/dl/callback'
make[1]: Leaving directory `/home/sushant/.rvm/src/ruby-1.9.3-p125'
make: *** [build-ext] Error 2
+__rvm_make:0> return 2
There has been an error while running make. Halting the installation.

我为此搜索过很多内容,但解决方案似乎都不适用于我。这是我目前的设置

我正在运行linux mint 17 32位。我的ruby和rvm版本为ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

1 个答案:

答案 0 :(得分:2)

你经历过this thread吗?

您可能需要安装此patch,才能跳过SSLv3。 查看this comment

curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | rbenv install --patch <RUBY_VERSION>

如果您使用的是rvm,则可以使用(基于此comment

curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt > no_sslv3.patch 

然后执行以下命令

rvm install 1.9.3 --patch ./no_sslv3.patch
相关问题