【问题标题】:Error when installing another ruby version using rvm使用 rvm 安装另一个 ruby​​ 版本时出错
【发布时间】:2016-06-05 02:27:03
【问题描述】:

我正在尝试安装 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/]

【问题讨论】:

  • 您可能缺少一个或其他共享库 - 在这种情况下可能是 openssl。
  • 更多信息可能在/home/sushant/.rvm/log/1456220961_ruby-1.9.3-p125/make.log
  • @froderik,openssl 已经是最新版本了。我查看了 make.log 文件,没有发现任何有用的东西。

标签: ruby rvm linux-mint


【解决方案1】:

你有没有通过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

【讨论】:

  • 我正在使用 rvm,所以我想这不会有帮助
  • rvm install 1.9.3 --patch ./no_sslv3.patch 我错了There has been an error applying the specified patches. Halting the installation.
  • 我应该在我的工作目录中还是在它之外运行它?
  • 我在我的工作目录内外运行它,但都没有工作。
  • 好的,我搞定了。谢谢你的帮助。这就是我所做的,虽然curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt &gt; no_sslv3.patch 然后rvm install 1.9.3 --patch ./no_sslv3.patch
猜你喜欢
  • 2013-03-20
  • 2013-09-27
  • 2016-07-29
  • 2012-07-23
  • 2015-03-31
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多