簡體   English   中英

使用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.

我為此做了很多搜索,但似乎沒有一種解決方案適合我。 這是我目前的設定

我正在運行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/]

你經歷過這個話題了嗎?

您可能需要安裝此補丁程序才能跳過SSLv3 檢查此評論

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

如果您使用的是rvm,則可以使用(基於此評論

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

然后執行以下命令

rvm install 1.9.3 --patch ./no_sslv3.patch

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM