Ruby on Rails - 不创建脚本/服务器 [英] Ruby on Rails - Doesn't create script/server
问题描述
我已经尝试了两天在 windows xp 上安装 Ruby on Rails(我是 RoR 的菜鸟,第一次使用它).
我正在网上阅读一些如何安装它的教程.我已经安装了 Ruby,安装了 Mysql 并通过 gem install rails
安装了 Rails.
现在,当我通过 rails new myapp
然后 cd myapp
然后 ruby script/server
创建一个新应用程序时,它说:><块引用>
ruby: 没有那个文件或目录 --脚本/服务器(加载错误)
在脚本目录中没有'server'文件,只有一个rails文件.
我正确地遵循了教程,并仔细检查了我并正确创建了应用程序.这是教程链接:http://allaboutruby.wordpress.com/2006/01/09/installing-rails-on-windows-step-by-step-tutorial/
如果你已经完成 gem install rails 那么它将会抓取 v3.0.6 rails,它改变了(在 v3)使用 rails server
启动服务器.
I have been trying for two days to install Ruby on Rails on windows xp (I am a noob at RoR, first time using it).
I am reading some tutorials online how to install it. I have installed Ruby, installed Mysql and installed Rails by gem install rails
.
Now when I create a new app by rails new myapp
then cd myapp
and then ruby script/server
, it says:
ruby: No such file or directory -- script/server (LoadError)
In the script directory there is no 'server' file, there is only a rails file.
I have followed the tutorial correctly and have double checked I and creating the app correctly. This is the tutorial link: http://allaboutruby.wordpress.com/2006/01/09/installing-rails-on-windows-step-by-step-tutorial/
If you've done gem install rails then it will have grabbed v3.0.6 rails which changed (at v3) to use rails server
to start the server.
这篇关于Ruby on Rails - 不创建脚本/服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!