RVM运行autoconf命令时安装1.9.2失败?
-
27-09-2019 - |
题
当我运行
rvm install 1.9.2
我在尝试运行autoconf的错误。这是堆栈跟踪:
kenmare:ruby-1.9.2-p0 lee$ rvm install 1.9.2-p0
/Users/lee/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)...
ruby-1.9.2-p0 - #fetching
ruby-1.9.2-p0 - #extracted to /Users/lee/.rvm/src/ruby-1.9.2-p0 (already extracted)
Running autoconf
Error running 'autoconf', please check /Users/lee/.rvm/log/ruby-1.9.2-p0/autoconf.error.log
Skipping configure step, 'configure' does not exist, did autoconf not run successfully?
ruby-1.9.2-p0 - #compiling
Error running 'make ', please check /Users/lee/.rvm/log/ruby-1.9.2-p0/make.error.log
There has been an error while running make. Halting the installation.
任何想法?谢谢!
UPDATE:对不起天色已晚,并没有给一些明显的信息。我上运行10.6.4的Mac。 autoconf的日志表示:
autoconf: no input file
要化妆方面的答案,当我运行
which make
/usr/bin/make
和我都正在与RVM运行1.8.7成功。安装1.9.2时,我只能接受这个问题。 再次感谢!
解决方案 2
我计算出来。关键是此行:
ruby-1.9.2-p0 - #extracted to /Users/lee/.rvm/src/ruby-1.9.2-p0 (already extracted)
显然,如果有第一次尝试期间的错误对1.9.2包的目录不被去除。 (在我的情况下,autoconf的文件没有正确下载。)任何后续尝试看到目录,并且不会尝试再次下载包。
您需要删除红宝石1.9.2-P0目录。我想这可能是与任何版本的一个问题。
希望这可以帮助其他人。
其他提示
这发生在我身上,因为我的RVM版本是旧
rvm list known
未示出作为用于我的选择之一红宝石1.9.3
我所做的:
rvm get head
我只是有类似的问题。除了李什么没解决,我也只好从.rvm /归档删除相应的红宝石的tar文件,所以它会下载一个新的副本,这是不贪/不完整的。
在我来说,我不得不升级RVM。在shell中运行这个照顾了升级:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
不隶属于 StackOverflow