rvm安装1.8.7错误

编程入门 行业动态 更新时间:2024-10-24 16:23:34
本文介绍了rvm安装1.8.7错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图安装ruby 1.8.7

搜索二进制红宝石,这可能需要一些时间。 没有二进制红宝石可用于:ubuntu / 12.04 / x86_64 / ruby​​-1.8.7-p371。 继续编译。请阅读'rvm mount'以获取关于二进制红宝石的更多信息。 将Ruby从源代码安装到:〜/ .rvm / rubies / ruby​​-1.8.7-p371,这可能需要一段时间,具体取决于您的cpu(s)... ruby​​-1.8.7- p371 - #下载ruby-1.8.7-p371,这可能需要一段时间,具体取决于您的连接... ruby​​-1.8.7-p371 - #extracted to〜/ .rvm / src / ruby​​-1.8。 7-p371(已提取)补丁stdout-rouge-fix已经应用。 修补程序no_sslv2已被应用。 ruby​​-1.8.7-p371 - #configuring ruby​​-1.8.7 -p371 - #compiling 运行'make'时出错,请阅读〜/ .rvm / log / ruby​​-1.8 .7-p371 / make.log 运行make时出错。停止安装。 请注意,您刚刚安装了一个需要2个补丁的ruby,以便在最新的linux系统上进行编译。 这可能已知和不明的安全漏洞。 请考虑升级到ruby-1.9.3-p385,它将包含所有最新的安全补丁。

cat〜/ .rvm / log / ruby​​-1.8.7-p371 / make.log p>

gcc -g -O2 -fPIC -DRUBY_EXPORT -D_GNU_SOURCE = 1 -L。 -rdynamic -Wl,-export-dynamic main.o libruby-static.a -lrt -ldl -lcrypt -lm -o miniruby ./lib/fileutils.rb:1410:不是类/模块(TypeError )$ .bm从./mkconfig.rb:11:in`require'从./mkconfig.rb:11 make:*** [.rbconfig.time]错误1

gcc -v

COLLECT_GCC = gcc COLLECT_LTO_WRAPPER = / usr / lib / gcc / x86_64-linux-gnu / 4.6 / lto-wrapper :x86_64-linux-gnu :../src/ configure -v --with-pkgversion ='Ubuntu / Linaro 4.6.3-1ubuntu5'--with-bugurl = file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages = c ,c ++,fortran,objc,obj-c ++ --prefix = / usr --program-suffix = -4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir = / usr / lib --without-included-gettext --enable-threads = posix --with-gxx-include-dir = / usr / include / c ++ / 4.6 --libdir = / usr / lib --enable-nls - with-sysroot = / --enable-clocale = gnu --enable-libstdcxx-debug --enable-libstdcxx -time = yes --enable-gnu-unique-ob ject --enable-plugin --enable-objc-gc --disable-werror --with-arch-32 = i686 --with-tune = generic --enable-checking = release --build = x86_64-linux-gnu --host = x86_64-linux-gnu --target = x86_64-linux-gnu :posix gcc版本4.6.3(Ubuntu / Linaro 4.6.3-1ubuntu5)

rvm 1.18.6(stable)

有什么想法吗?我刚刚安装了RVM的新版本(1.20.5),并且我能够将ruby版本1.8.7

/ p>

我从ubuntu repos安装rvm -v

rvm 1.6.9

然后重试

rvm install 1.8.7-p371

它适用于我

安装ruby-1.8.7-p371 - #完成

I'm trying to install ruby 1.8.7

Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.8.7-p371. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing Ruby from source to: ~/.rvm/rubies/ruby-1.8.7-p371, this may take a while depending on your cpu(s)... ruby-1.8.7-p371 - #downloading ruby-1.8.7-p371, this may take a while depending on your connection... ruby-1.8.7-p371 - #extracted to ~/.rvm/src/ruby-1.8.7-p371 (already extracted) Patch stdout-rouge-fix was already applied. Patch no_sslv2 was already applied. ruby-1.8.7-p371 - #configuring ruby-1.8.7-p371 - #compiling Error running 'make', please read ~/.rvm/log/ruby-1.8.7-p371/make.log There has been an error while running make. Halting the installation. Please be aware that you just installed a ruby that requires 2 patches just to be compiled on up to date linux system. This may have known and unaccounted for security vulnerabilities. Please consider upgrading to ruby-1.9.3-p385 which will have all of the latest security patches.

cat ~/.rvm/log/ruby-1.8.7-p371/make.log

gcc -g -O2 -fPIC -DRUBY_EXPORT -D_GNU_SOURCE=1 -L. -rdynamic -Wl,-export-dynamic main.o libruby-static.a -lrt -ldl -lcrypt -lm -o miniruby ./lib/fileutils.rb:1410: is not a class/module (TypeError) from ./mkconfig.rb:11:in `require' from ./mkconfig.rb:11 make: *** [.rbconfig.time] Error 1

gcc -v

COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper : x86_64-linux-gnu : ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu : posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

rvm 1.18.6 (stable)

Have any ideas?

解决方案

I just installed a new version (1.20.5) of the RVM and I was able to put the ruby version 1.8.7

I install rvm -v from ubuntu repos

rvm 1.6.9

and try again

rvm install 1.8.7-p371

and it worked for me

Install of ruby-1.8.7-p371 - #complete

更多推荐

rvm安装1.8.7错误

本文发布于:2023-06-08 06:33:09,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   rvm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!