在 ubuntu 11.04 上从 rvm 安装 ruby 1.9.3 时出错
错误
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 在中配置 yaml /home/bhaarat/.rvm/src/yaml-0.1.4。
编译yaml /home/bhaarat/.rvm/src/yaml-0.1.4。错误:运行“make”时出错, 请阅读/home/bhaarat/.rvm/log/ruby-1.9.3-p0/yaml/make.log 将 yaml 安装到 /home/bhaarat/.rvm/usr 错误:运行“make 时出错” 安装',请阅读 /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
我已经删除了所有以前版本的 ruby
% rvm list rubies
rvm rubies
Error
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
I've removed all previous versions of ruby
% rvm list rubies
rvm rubies
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试安装 libtool 包。我有同样的问题并且解决了它。如果你使用 Ubuntu 那么它可能是:
Try installing the libtool package. I had the same issue and that fixed it. If you're in Ubuntu then it's probably: