install ruby 1.8.4 mac os x

╄→尐↘猪︶ㄣ 提交于 2020-01-06 15:14:16

问题


I am relatively new to Ruby and Rails, so please have patience with me. I I have RVM installed and my current version of Ruby is 1.9.3. and Rails 3.2.14 for the current apps I am working on. I am using Brew, GIT for version control, and I also have Xcode installed.

Due to some work requirements, I am trying to install Ruby 1.8.4 on a mac os x Mountain Lion version 10.8. I am planning to set up a Project .rvmrc file so I can also use Rails 1.3.4. When I run "rvm install ruby-1.8.4" I get this message:

There is no checksum for 'http://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4.tar.gz' or 'ruby-1.8.4.tar.gz', it's not possible to validate it. This could be because your RVM install's list of versions is out of date. You may want to update your list of rubies by running 'rvm get stable' and try again. If that does not resolve the issue and you wish to continue with unverified download add '--verify-downloads 1' after the command. There has been an error fetching the ruby interpreter. Halting the installation.

Any suggestions? I was able to download the ruby- 1.8.4.tar.gz from another source, but I don't know how to make RVM install from a file.

Thank you very much in advance.


回答1:


As noted by @Eternal-Learner, RVM does not currently support 1.8.4, (you can get a list of the rubies that it can install using the rvm list known command).

That being said, per this discussion on their issue tracker from last year, you might be able to get them to try to implement it if you open up an issue.




回答2:


I would suggest you install Vagrant and then install the versions of Ruby and Rails you need directly from inside the Linux VM.

Since you'll have a VM set up exclusively for one project, you'll be able to install Ruby from source and skip RVM completely.



来源:https://stackoverflow.com/questions/19480140/install-ruby-1-8-4-mac-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!