使用 rvm 安装另一个 ruby 版本时出错
Error when installing another ruby version using rvm
我正在尝试安装 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.
我为此在谷歌上搜索了很多,none 的解决方案似乎对我有用。这是我当前的设置
我是 运行 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/]
你经历过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
我正在尝试安装 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.
我为此在谷歌上搜索了很多,none 的解决方案似乎对我有用。这是我当前的设置
我是 运行 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/]
你经历过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