[英]Created app with rails composer but cannot launch rails in the app directory
Using Rails Composer ( http://railsapps.github.com/rails-composer/ ) I created a new app, but I'm unable to run rails in the app newly created app directory, even though rails can be run everywhere else. 使用Rails Composer( http://railsapps.github.com/rails-composer/ )创建了一个新应用程序,但是即使可以在其他任何地方运行rails,也无法在该应用程序新创建的应用程序目录中运行rails。
user@UBUNTU:~$ rails
Usage:
rails new APP_PATH [options] ...
user@UBUNTU:~$ cd myapp/
user@UBUNTU:~/myapp$ rails
The program 'rails' can be found in the following packages: ...
Using Ubuntu 12.10 and rvm 使用Ubuntu 12.10和rvm
Are you running RVM? 您在运行RVM吗? If so is there an .rvmrc file that is tied to a gemset?
如果是这样,是否存在与gemset关联的.rvmrc文件? If that's the case there may not be a rails gem in that gemset.
如果是这种情况,则该gemset中可能没有rails gem。
Type rvm gemset list
to see what gemsets have been created. rvm gemset list
以查看已创建了哪些gemset。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.