Discussion:
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
Love U Ruby
2013-11-20 20:20:27 UTC
Permalink
I just started learning Rake. I was reading the blog -
http://lukaszwrobel.pl/blog/rake-tutorial.

So I installed first it :

***@kirti-Aspire-5733Z:~$ gem install rake
Fetching: rake-10.1.0.gem (100%)
Successfully installed rake-10.1.0
Parsing documentation for rake-10.1.0
Installing ri documentation for rake-10.1.0
Done installing documentation for rake after 2 seconds
1 gem installed

But now I am not being able to run it.

I put the file `rakefile.rb`, under the directory as -
/home/kirti/Ruby/Rake tasks/.

***@kirti-Aspire-5733Z:~$ rake
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/home/kirti/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
/home/kirti/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in
`<main>'
(See full trace by running task with --trace)

Can anyone help me for this ?
--
Posted via http://www.ruby-forum.com/.
Harisankar P S
2013-11-20 20:40:58 UTC
Permalink
***@kirti-Aspire-5733Z:~$ rake

This looks like your home folder

you need to enter the directory where you placed the rake file and run the
rake command.
Post by Love U Ruby
I just started learning Rake. I was reading the blog -
http://lukaszwrobel.pl/blog/rake-tutorial.
Fetching: rake-10.1.0.gem (100%)
Successfully installed rake-10.1.0
Parsing documentation for rake-10.1.0
Installing ri documentation for rake-10.1.0
Done installing documentation for rake after 2 seconds
1 gem installed
But now I am not being able to run it.
I put the file `rakefile.rb`, under the directory as -
/home/kirti/Ruby/Rake tasks/.
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/home/kirti/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
/home/kirti/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in
`<main>'
(See full trace by running task with --trace)
Can anyone help me for this ?
--
Posted via http://www.ruby-forum.com/.
--
Harisankar P S
https://twitter.com/coder_hsps | http://tech.hsps.in
Love U Ruby
2013-11-20 20:47:58 UTC
Permalink
@harisankar - Thanks for your help!


arup :~$ cd Ruby
arup :~/Ruby$ ls
doc.txt foo nokogiri1 so.rb test test.rb~
doc.txt~ nokogiri Rake_example so.rb~ test.rb tut.html
arup :~/Ruby$ cd Rake_example
arup :~/Ruby/Rake_example$ ls
rakefile.rb
arup :~/Ruby/Rake_example$ rake
Hello World!
arup :~/Ruby/Rake_example$
--
Posted via http://www.ruby-forum.com/.
Loading...