我一直在尝试在我的Ubuntu 16.04安装上安装Ruby on Rails,但是当我运行gem install rails -v 5.0.0.1
时,我收到以下错误:
michael@michael-laptop:~/Programming/Ruby/RailsTutorial$ gem install rails -v 5.0.0.1
ERROR: While executing gem ... (Gem::DependencyResolutionError)
conflicting dependencies rack (~> 1.0) and rack (~> 2.0)
Activated rack-2.0.1 via:
rack-2.0.1 (~> 2.0), actionpack-5.0.0.1 (= 5.0.0.1), rails-5.0.0.1 (= 5.0.0.1)
instead of (~> 1.0) via:
sprockets-2.8.0 (~> 2.8), sprockets-rails-2.1.4 (>= 2.0.0), rails-5.0.0.1 (= 5.0.0.1)
我尝试将此作为Rails教程的一部分。有谁知道如何解决这个问题?