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

发布于 2024-12-26 11:28:48 字数 1392 浏览 0 评论 0原文

错误

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

謌踐踏愛綪 2025-01-02 11:28:48

尝试安装 libtool 包。我有同样的问题并且解决了它。如果你使用 Ubuntu 那么它可能是:

sudo apt-get install libtool

Try installing the libtool package. I had the same issue and that fixed it. If you're in Ubuntu then it's probably:

sudo apt-get install libtool
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文