Ruby on rails 如何在没有文件的情况下设置Rails应用程序?

Ruby on rails 如何在没有文件的情况下设置Rails应用程序?,ruby-on-rails,gemfile,Ruby On Rails,Gemfile,我从github下载了一个rails示例应用程序,但它没有GemFile,我如何才能让它运行? 我尝试了rakegems:install,但出现了以下错误。我不明白为什么,有人能帮忙吗?非常感谢 NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from G:/Desktop/20090319-/Ra

我从github下载了一个rails示例应用程序,但它没有GemFile,我如何才能让它运行? 我尝试了
rakegems:install
,但出现了以下错误。我不明白为什么,有人能帮忙吗?非常感谢

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from G:/Desktop/20090319-/Rails Examples/showchart/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
...
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:91.
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
DEPRECATION WARNING: Rake tasks in vendor/plugins/gemsonrails/tasks, vendor/plugins/gemsonrails/tasks, vendor/plugins/gemsonrails/tasks, vendor/plugins/gemsonrails/tasks, and vendor/plugins/open_flash_chart/tasks are deprecated. Use lib/tasks instead. (called from <top (required)> at G:/Desktop/20090319-/Rails Examples/showchart/vendor/rails/railties/lib/tasks/rails.rb:10)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `name' for "RedCloth":String
G:/Desktop/20090319-/Rails Examples/showchart/vendor/rails/railties/lib/rails/gem_dependency.rb:277:in `=='
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:217:in `==='
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:217:in `block in matching_specs'
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:410:in `block in each'
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:409:in `each'
....
C:/Ruby192/bin/rake:19:in `load'
C:/Ruby192/bin/rake:19:in `<main>'
Tasks: TOP => environment
注意:Gem.source\u索引已弃用,请使用规范。将于2011年11月1日或之后拆除。
从G:/Desktop/20090319-/Rails Examples/showchart/vendor/Rails/railties/lib/Rails/Gem_dependency.rb:21调用Gem.source_索引。
...
注意:Gem::SourceIndex#add#spec已弃用,请使用Specification.add#spec。它将在2011-11-01或之后删除。
Gem::SourceIndex#add_spec从C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:91调用。
警告:“不推荐使用require'rake/rdoctask'。请改用“要求”rdoc/task(在rdoc 2.4.2+中)。
在C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
不推荐使用警告:不推荐使用供应商/plugins/gemonrails/tasks、供应商/plugins/gemonrails/tasks、供应商/plugins/gemonrails/tasks、供应商/plugins/gemonrails/tasks和供应商/plugins/open\u flash\u图表/任务中的Rake任务。改用lib/tasks。(从G:/Desktop/20090319-/Rails-Examples/showchart/vendor/Rails/railties/lib/tasks/Rails.rb:10调用)
**调用gems:install(第一次)
**调用gems:base(第一次)
**执行宝石:基础
**调用环境(第一次)
**执行环境
雷克流产了!
“RedCloth”的未定义方法“name”:字符串
G:/Desktop/20090319-/Rails-Examples/showchart/vendor/Rails/railties/lib/Rails/gem_-dependency.rb:277:in`='
C:/Ruby192/lib/ruby/site\u ruby/1.9.1/rubygems/dependency.rb:217:in`='
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:217:in`block in matching_specs'
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:410:in'block in each'
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:409:in'each'
....
C:/Ruby192/料仓/耙:19:在“装载”中
C:/Ruby192/bin/rake:19:in`'
任务:TOP=>environment

只需从一个新的rails应用程序中复制/通过一个gem文件,然后启动该应用程序并尝试找出丢失的gem…:-S

您能提供github路径吗,您在那里下载了示例应用程序