0

我使用 rvm 并使用此说明安装它https://rvm.io//rvm/install/

昨天我工作的时候一切都很好。

今天当我试图启动rails s它说

The program 'rails' is currently not installed.  You can install it by typing:
sudo apt-get install rails

我不知道如何让它再次工作。当我运行rvm gem list它给我这个:

*** LOCAL GEMS ***

bundler (1.1.4)
rake (0.9.2.2)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)

*** LOCAL GEMS ***

actionmailer (3.2.3)
actionpack (3.2.3)
activemodel (3.2.3)
activerecord (3.2.3)
activeresource (3.2.3)
activesupport (3.2.3)
ansi (1.4.2)
arel (3.0.2)
builder (3.0.0)
bundler (1.1.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
erubis (2.7.0)
execjs (1.4.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
jquery-rails (2.0.2)
json (1.7.3)
mail (2.4.4)
mime-types (1.18)
multi_json (1.3.5)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.3)
railties (3.2.3)
rake (0.9.2.2)
rdoc (3.12)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)
sass (3.1.19)
sass-rails (3.2.5)
sprockets (2.1.3)
sqlite3 (1.3.6)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
turn (0.9.5)
tzinfo (0.3.33)
uglifier (1.2.4)

那么有人知道为什么铁轨停止工作吗?而且我认为这与我昨天关闭计算机时有关。

4

1 回答 1

1

如果您以 root 身份安装它,则需要执行source /etc/profile.

如果您为自己的个人用户安装它,则应将其添加~/.rvm/scripts到您的$PATH

于 2012-05-30T05:24:41.660 回答