rvm install 1.9.2 fails when running autoconf?

谁都会走 提交于 2019-12-03 05:22:45

This happened to me because my rvm version was old

rvm list known

wasn't showing ruby 1.9.3 as one of the options for me

I did:

rvm get head

I figured it out. The key is this line:

ruby-1.9.2-p0 - #extracted to /Users/lee/.rvm/src/ruby-1.9.2-p0 (already extracted)

Apparently if there is an error during your first attempt the directory for the 1.9.2 package is not removed. (In my case, the autoconf files were not properly downloaded.) Any subsequent attempts see the directory and does not attempt to download the package again.

You need to remove the ruby-1.9.2-p0 directory. I assume this could be a problem with any version.

Hope this helps someone else.

I just had a similar problem. In addition to what Lee did to solve, I also had to remove the corresponding ruby's tar file from .rvm/archives so it would download a fresh copy that was not corrupt/incomplete.

In my case I had to upgrade RVM. Running this in the shell took care of upgrading:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!