我确认在新的Debian Squeeze服务器上安装了新的ruby和rails。 Ruby响应版本检查命令,但rails不响应。我看到rails gem已安装,但我也注意到/ usr / bin中没有rails安装/我确实看到ruby在那里并且rake和irb。
-bash: rails: command not found
这是审计线索。 rails gem已成功安装。关于如何排除故障的任何想法都会很棒。
root@partner:~# gem1.9.1 install rails
Successfully installed rails-3.2.11
1 gem installed
Installing ri documentation for rails-3.2.11...
Installing RDoc documentation for rails-3.2.11...
root@partners:/var/lib/gems/1.9.1/gems# ls
actionmailer-3.2.11
activesupport-3.2.11
erubis-2.7.0
json-1.7.6
pg-0.14.1
rack-ssl-1.3.3
rdoc-3.12
treetop-1.4.12
actionpack-3.2.11
arel-3.0.2
fastthread-1.0.7
mail-2.4.4
polyglot-0.3.3
rack-test-0.6.2
rubygems-update-1.8.25
tzinfo-0.3.35
activemodel-3.2.11
builder-3.0.4
hike-1.2.1
mime-types-1.20.1
rack-1.4.0
rails-3.2.11
sprockets-2.2.2
activerecord-3.2.11
bundler-1.2.3
i18n-0.6.1
multi_json-1.5.0
rack-1.5.1
railties-3.2.11
thor-0.17.0
activeresource-3.2.11
daemon_controller-1.1.1
journey-1.0.4
passenger-3.0.19
rack-cache-1.2
rake-10.0.3
tilt-1.3.3
root@partner:~# rails --version
-bash: rails: command not found
root@partner:~# rails-3.2.11 --version
-bash: rails-3.2.11: command not found