2012-01-12 103 views
11

錯誤錯誤從RVM在Ubuntu上安裝Ruby 1.9.3 11.04

ruby-1.9.3-p0 - #extracted to /home/bhaarat/.rvm/src/ruby-1.9.3-p0

Fetching yaml-0.1.4.tar.gz to /home/bhaarat/.rvm/archives Extracting yaml-0.1.4.tar.gz to /home/bhaarat/.rvm/src Configuring yaml in /home/bhaarat/.rvm/src/yaml-0.1.4.

Compiling yaml in /home/bhaarat/.rvm/src/yaml-0.1.4. ERROR: Error running 'make ', please read /home/bhaarat/.rvm/log/ruby-1.9.3-p0/yaml/make.log Installing yaml to /home/bhaarat/.rvm/usr ERROR: Error running 'make install', please read /home/bhaarat/.rvm/log/ruby-1.9.3-p0/yaml/make.install.log

make.log裏

[2012-01-12 10:49:57] make 
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/bhaarat/.rvm/src/yaml-0.1.4/config/missing --run aclocal-1.11 
configure.ac:27: warning: AC_INIT: not a literal: YAML_BUGS 
cd . && /bin/bash /home/bhaarat/.rvm/src/yaml-0.1.4/config/missing --run automake-1.11 --foreign 
configure.ac:27: warning: AC_INIT: not a literal: YAML_BUGS 
src/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined 
src/Makefile.am:2: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' 
src/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf' again. 
src/Makefile.am:2: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure 
src/Makefile.am:2: its definition is in aclocal's search path. 
make: *** [Makefile.in] Error 1 

我已經刪除紅寶石

% rvm list rubies 

rvm rubies 
+0

你運行過了嗎:sudo aptitude install build-essential && sudo aptitude install linux-headers-'uname -r'? – josephrider 2012-01-12 17:20:45

+0

在Ubuntu 10.04 LTS上遇到同樣的錯誤。 – 2012-04-27 18:40:20

回答

15

嘗試安裝的所有先前版本libtool軟件包。我有同樣的問題,並修復它。如果你在Ubuntu中,那麼它可能是:

sudo apt-get install libtool 
+0

這也解決了Ubuntu 10.04 LTS的問題。 – 2012-04-27 18:40:49

+0

這也解決了在Ubuntu 11.04上通過rvm 1.14.1安裝ruby-1.9.2p290的問題。謝謝! – Benissimo 2012-06-08 17:36:49

+0

這是一個巨大的幫助,謝謝! – Gowiem 2012-07-16 19:22:55