在执行“软件包安装”后找不到Gemfile。 [英] Could not locate Gemfile after executing "bundle install"

查看:130
本文介绍了在执行“软件包安装”后找不到Gemfile。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,
我完全是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆