RVM = ruby version manager,它本质上是一组shell脚本,通过从官方下载源码编译来获得ruby解释器,通过它可以让多个版本的解释器共存于一个环境下,这是很方便的。
使用rvm,有很多好处,你可以同时拥有多个ruby版本来运行不同的服务,而且每个解释器可以有自己的gems(第三方库)。而且由于是从官方下载源码编译,它可以第一时间拥有最新的解释器版本,而不用苦逼的等包管理器更新,实际上现在apt里也没有1.9.3版本的ruby。而且出于特殊目的用到老版本时,可以放心的安装而不会影响到现有服务。
从官方安装rvm,并且按照rvm requirement安装所有依赖后,编译安装解释器出现错误:
Retrieving rubygems- There is no checksum for 'http://production.cf.rubygems.org/rubygems/rubygems-.tgz' or 'rubygems-.tgz', it's not possible to validate it. If you wish to continue with unverified download add '--verify-downloads 1' after the command. There has been an error while trying to fetch the source. Halting the installation.
搜索后有人给出答案:
It looks like a bug, but it most likely is fixed already as I can not reproduce it, update RVM and try again:
rvm get stable
rvm rubygems current
升级rvm,然后重新安装rubygems,解释器出现错误的问题就解决了。