2014-10-01 53 views
1

我在我的機器上安裝了ruby-1.9.2p290和rails 3.0。 當我試圖安裝Rails 4.0作爲從Linux 1.9.2p290升級到1.9.3p2而不使用rvm在linux服務器上

[[email protected] ~]# gem install rails -v '4.0' 
Fetching: i18n-0.6.11.gem (100%) 
Fetching: multi_json-1.10.1.gem (100%) 
Fetching: minitest-4.7.5.gem (100%) 
Fetching: thread_safe-0.3.4.gem (100%) 
Fetching: activesupport-4.0.0.gem (100%) 
ERROR: Error installing rails: 
     activesupport requires Ruby version >= 1.9.3. 
You have new mail in /var/spool/mail/root 

,當我嘗試安裝Ruby:

[[email protected] ~]# sudo apt-get install ruby-1.9.3p2 
sudo: apt-get: command not found 
You have new mail in /var/spool/mail/root 

請幫助我。如何升級而不使用rvm?

+0

您使用的是哪個版本的linux?在命令行鍵入'lsb_release -irc'並提供輸出。 – thohl 2014-10-01 16:35:44

回答

2

apt-get是基於Debian的發行版的軟件包管理器,例如, Ubuntu,Debian。其他發行版有不同的軟件包管理器。我的第一個猜測是它是yum,但取決於你使用的操作系統可能並非如此。