2013-02-15 103 views
1

我想安裝Ruby 1.8.7RVM安裝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. 

貓〜/ .rvm /日誌/紅寶石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(穩定)

有什麼想法?

+0

Ubuntu/Linaro ..是否意味着你的目標是ARM處理器?您可以嘗試從源代碼安裝並查看「configure」是否打印任何警告。你能編譯任何版本的紅寶石?那麼1.9.3-p385呢? – 2013-02-15 04:40:20

+0

我使用x86_64系統。紅寶石1.9.3-p385已經成功安裝,但我想安裝ruby-1.8.7 – Nar 2013-02-15 04:48:07

回答

0

我剛安裝了RVM的新版本(1.20.5),我能夠把紅寶石版本1.8.7

我安裝RVM -v從Ubuntu的軟件庫

rvm 1.6.9 

,然後再試一次

rvm install 1.8.7-p371 

和它的工作對我來說

Install of ruby-1.8.7-p371 - #complete 

+0

所以你降級到rvm 1.6?是不是像2歲?有趣.. – 2013-02-15 04:54:25

+0

是的,我降級到rvm 1.6。我試圖把rvm v 1.8.0,但找不到如何去做 – Nar 2013-02-15 05:08:45

+0

我剛剛安裝了RVM的新版本(1.20.5),並且我能夠將ruby版本1.8.7和2.0.0同時。我所有的問題都解決了。謝謝大家。 – Nar 2013-05-13 04:37:32

0

嘗試:

rvm remove 1.8.7 
rvm install 1.8.7 

請大家注意,ruby-1.8.7壽命結束 - 會有無論是錯誤或安全問題NNO更新,則需要考慮更新爲紅寶石1.9.2/1.9.3/2.0.0,我的投票是2.0.0這將在幾天內發佈