我运行的是 Ubuntu 16.04。
我的ruby版本是:ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu]
如何将 ruby 降级到 2.1 版本以与我的开发团队的其他成员保持一致(我们的一些项目依赖项与 2.3 版本不兼容)?
我已尝试https://www.brightbox.com/docs/ruby/ubuntu/#Installingthepackages上的说明:
sudo apt-get install ruby2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libruby2.1' for regex 'ruby2.1'
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
Run Code Online (Sandbox Code Playgroud)
我的 Ubuntu 安装只有 2.3 版本:
ls /usr/lib/ruby/
2.3.0 gems vendor_ruby
Run Code Online (Sandbox Code Playgroud)
关于如何将 Ruby 降级到 2.1 版本还有其他想法吗?