On Tue, May 18, 2010 at 6:05 AM, Draggy Draggy <johncsl82 / yahoo.com> wrote:

> Hello People,
>
> When I execute "rake gems:refresh_specs" it give me:
>
> $ rake gems:refresh_specs --trace
> rake aborted!
> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
> Rakefile.rb)
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2377:in
> `raw_loa
> d_rakefile'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:in
> `block i
> n load_rakefile'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standar
> d_exception_handling'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:in
> `load_ra
> kefile'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in
> `block i
> n run'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standar
> d_exception_handling'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in
> `run'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top
> (requir
> ed)>'
> /usr/bin/rake:19:in `load'
> /usr/bin/rake:19:in `<main>'
>
> $ ruby -v
> ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-cygwin]
>
> $ gem -v
> 1.3.7
>
> $ rake --version
> rake, version 0.8.7
>
> $ gem list -d
>
> *** LOCAL GEMS ***
>
> actionmailer (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/actionmailer
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Service layer for easy email delivery and testing.
>
> actionpack (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/actionpack
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Web-flow and rendering framework putting the VC in MVC.
>
> activerecord (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/activerecord
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Implements the ActiveRecord pattern for ORM.
>
> activeresource (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/activeresource
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Think Active Record for web resources.
>
> activesupport (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/activesupport
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Support and utility classes used by the Rails framework.
>
> arrayfields (4.7.4)
>    Author: Ara T. Howard
>    Rubyforge: http://rubyforge.org/projects/codeforpeople
>    Homepage: http://github.com/ahoward/arrayfields/tree/master
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    arrayfields
>
> fattr (2.1.0)
>    Author: Ara T. Howard
>    Rubyforge: http://rubyforge.org/projects/codeforpeople
>    Homepage: http://github.com/ahoward/fattr/tree/master
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    fattr
>
> main (4.2.0)
>    Author: Ara T. Howard
>    Rubyforge: http://rubyforge.org/projects/codeforpeople
>    Homepage: http://github.com/ahoward/main/tree/master
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    main
>
> mysql (2.8.1)
>    Author: TOMITA Masahiro
>    Rubyforge: http://rubyforge.org/projects/mysql-win
>    Homepage: http://mysql-win.rubyforge.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    This is the MySQL API module for Ruby
>
> rack (1.1.0)
>    Author: Christian Neukirchen
>    Rubyforge: http://rubyforge.org/projects/rack
>    Homepage: http://rack.rubyforge.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    a modular Ruby webserver interface
>
> rails (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/rails
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Web-application framework with template engine, control-flow layer,
>    and ORM.
>
> rake (0.8.7)
>    Author: Jim Weirich
>    Rubyforge: http://rubyforge.org/projects/rake
>    Homepage: http://rake.rubyforge.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Ruby based make-like utility.
>
> rake-command-completion (0.0.1)
>    Author: Nicholas Seckar, Saimon Moore, Err the Blog, Lee Marlow,
>    Tyler Rick
>    Rubyforge: http://rubyforge.org/projects/rake-command-completion
>    Homepage: http://rake-completion.rubyforge.org/
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Adds bash command-line completion for the rake command.
>
> rake-compiler (0.7.0)
>    Author: Luis Lavena
>    Rubyforge: http://rubyforge.org/projects/rake-compiler
>    Homepage: http://github.com/luislavena/rake-compiler
>    License: MIT
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Rake-based Ruby Extension (C, Java) task generator.
>
> rake-dir (0.0.1)
>    Author:
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Run rake tasks in different directories
>
> Anyone mind help me fix the rake problem?
>
> Thank you.
> --
> Posted via http://www.ruby-forum.com/.
>
>

Also, if you genuinely don't have a rakefile (ie it got deleted), you can
create one yourself. ie:

(first, make sure you are in your rails app's root directory)

$ cat <<'RAKEFILE_END' > Rakefile
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be
available to Rake.

require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/rails'
RAKEFILE_END