简体   繁体   English

在ubuntu 11.04上从rvm安装ruby 1.9.3时出错

[英]Error installing ruby 1.9.3 from rvm on ubuntu 11.04

Error 错误

ruby-1.9.3-p0 - #extracted to /home/bhaarat/.rvm/src/ruby-1.9.3-p0 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. 将yaml-0.1.4.tar.gz提取到/home/bhaarat/.rvm/archives将yaml-0.1.4.tar.gz提取到/home/bhaarat/.rvm/src在/home/bhaarat/.rvm中配置yaml /src/yaml-0.1.4。

Compiling yaml in /home/bhaarat/.rvm/src/yaml-0.1.4. 在/home/bhaarat/.rvm/src/yaml-0.1.4中编译yaml。 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'时出错,请阅读/home/bhaarat/.rvm/log/ruby-1.9.3-p0/yaml/make.log将yaml安装到/home/bhaarat/.rvm/usr错误:运行错误' make install',请阅读/home/bhaarat/.rvm/log/ruby-1.9.3-p0/yaml/make.install.log

make.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

I've removed all previous versions of ruby 我删除了所有以前版本的ruby

% rvm list rubies

rvm rubies

Try installing the libtool package. 尝试安装libtool包。 I had the same issue and that fixed it. 我有同样的问题并修复了它。 If you're in Ubuntu then it's probably: 如果你在Ubuntu那么它可能是:

sudo apt-get install libtool

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM