在执行“软件包安装”后找不到Gemfile。 [英] Could not locate Gemfile after executing "bundle install"
问题描述
我完全是Rails的新手,刚开始创建我的第一个项目,遵循教程的步骤。
我创建了新项目使用: rails myapp
。
bundle install
,因为没有安装Bundler,因此在Gems上更新并安装捆绑程序之后,我无法执行 bundle install
,但每次收到:无法找到Gemfile 我检查了我的项目目录,确实没有Gemfile,但应该自动创建吗?
在此先感谢
这取决于您的rails版本。既然你简单地写 rails myapp
我假设你不使用Rails 3,在那里你会写 rails new myapp
。至少在Rails 3中, Gemfile
会自动为您创建,我建议您使用最新版本的Rails。
Hey, I am completely new to Rails and just started created my first Project, following the Steps of a tutorial.
I created the new Project using: rails myapp
.
Then I should execute bundle install
, this did not work because bundler has not been installed, after an Update on Gems and installing bundler I have been able to execute bundle install
, but every time I receive: Could not locate Gemfile
I checked my project dir, it is true there is no Gemfile, but should this be created automatically or not?
Thanks in advance
That depends on your version of rails. Since you simply write rails myapp
I assume you do not use Rails 3, where you would write rails new myapp
. In Rails 3, at least, the Gemfile
is created for you automatically, and I would recommend using the latest version of Rails.
这篇关于在执行“软件包安装”后找不到Gemfile。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!