GemFile丢失了吗?

时间:2015-06-15 11:39:38

标签: ruby-on-rails ruby

我试图在我的Ubuntu 14.10上为as3配置Project Sprout,但是当我试图配置项目(sprout-as3 SomeProject)时,我发现了一个错误ProjectSprout的网站据说我需要执行这个命令:bundle install,现在我收到了这个错误:

找不到Gemfile或.bundle /目录

在网上搜索我发现rubygems文件不在项目目录中,但我不知道它在哪里,我是ruby和bundle的新手,如果有人可以帮我,我就是#39谢天谢地?

2 个答案:

答案 0 :(得分:0)

使用默认宝石

在项目中创建新的Gemfile
 source "https://rubygems.org"


 # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
 gem 'rails', '4.1.1'
 # Use sqlite3 as the database for Active Record
 gem 'sqlite3'
 # Use SCSS for stylesheets
 gem 'sass-rails', '~> 4.0.3'
 # Use Uglifier as compressor for JavaScript assets
 gem 'uglifier', '>= 1.3.0'
 # Use CoffeeScript for .js.coffee assets and views
 gem 'coffee-rails', '~> 4.0.0'
 # See https://github.com/sstephenson/execjs#readme for more supported runtimes
 # gem 'therubyracer',  platforms: :ruby

 # Use jquery as the JavaScript library
 gem 'jquery-rails'
 # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
 gem 'turbolinks'
 # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
 gem 'jbuilder', '~> 2.0'
 # bundle exec rake doc:rails generates the API under doc/api.
 gem 'sdoc', '~> 0.4.0',          group: :doc

 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
 gem 'spring',        group: :development


 ...........

并尝试bundle install

答案 1 :(得分:0)

OOOOk,现在它显然正在工作,用sudo apt-get install ruby​​-dev安装了ruby devlopment,然后安装了iconv gem,使用sprout-as3 my_project生成我的项目,cd到项目目录和运行捆绑安装,它的工作原理!,感谢关注Amit;)