11

错误

ruby-1.9.3-p0 - #提取到 /home/bhaarat/.rvm/src/ruby-1.9.3-p0

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

在 /home/bhaarat/.rvm/src/yaml-0.1.4 中编译 yaml。错误:运行“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

制作日志

[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

我已经删除了所有以前版本的 ruby

% rvm list rubies

rvm rubies
4

1 回答 1

15

尝试安装 libtool 包。我有同样的问题,并解决了它。如果您在 Ubuntu 中,那么它可能是:

sudo apt-get install libtool
于 2012-01-27T15:17:01.997 回答