Rakefile Error - Please Help

Hi,

I am attempting to take an interactive ruby test to no avail, I
downloaded the zip file with no problems and followed the directions for
the terminal command line where I continue to get the following error. I
am using Ruby ruby 1.9.3p392 (2013-02-22 revision 39386)
[x86_64-darwin10.8.0].
If anyone can offer any help or suggestions thank you in advance.

INSTRUCTIONS:
Install RSpec

gem install rspec
Enter the course directory. (That’s the same directory that this
index.html file is in.)

cd learn_ruby
Enter the 00_hello lab.

cd 00_hello

Open a terminal in this directory

cd 00_hello
This directory is the starting point for this exercise. It contains a
spec file and you’ll be adding a ruby file to (eventually) make the
specs pass.

Run the test

rake
Watch it fail

You should see an error. Don’t get scared! Try to read it and figure out
what the computer wants to tell you. Somewhere on the first line it
should say something like

no such file to load – test-first-teaching/hello/hello (LoadError)
I DO NOT GET THIS ERROR MESSAGE, I GET THE ONE BELOW.

HERE IS THE MESSAGE I RECEIVE
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in eval' /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in
(See full trace by running task with --trace)

WHEN I RUN rake --trace HERE IS THE MESSAGE I RECEIVE
rake --trace
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/application.rb:632:in
raw_load_rakefile' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/application.rb:94:inblock in load_rakefile’
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/application.rb:165:in
standard_exception_handling' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/application.rb:93:inload_rakefile’
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/application.rb:77:in
block in run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/application.rb:165:instandard_exception_handling’
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/lib/rake/application.rb:75:in
run' /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rake-10.1.0/bin/rake:33:in<top (required)>’
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/rake:19:in load' /usr/local/rvm/gems/ruby-1.9.3-p392/bin/rake:19:in
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in eval' /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in

On Sun, Aug 4, 2013 at 7:41 AM, Jennifer T. [email protected]
wrote:

I am attempting to take an interactive ruby test to no avail, I
downloaded the zip file with no problems and followed the directions for
the terminal command line where I continue to get the following error.

HERE IS THE MESSAGE I RECEIVE
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)

So that should be pretty self-explanatory, no?

Where is this “zip file” from?

Hassan S. wrote in post #1117692:

On Sun, Aug 4, 2013 at 7:41 AM, Jennifer T. [email protected]
wrote:

I am attempting to take an interactive ruby test to no avail, I
downloaded the zip file with no problems and followed the directions for
the terminal command line where I continue to get the following error.

HERE IS THE MESSAGE I RECEIVE
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)

So that should be pretty self-explanatory, no?

Where is this “zip file” from?

Hi @Hassan, I’m sorry but it’s not self-explanatory for me, if you’d be
able to help me understand what I’m doing wrong? The zip file came from
the test creators “Learn Ruby” github account.

On Sun, Aug 4, 2013 at 1:42 PM, Jennifer T. [email protected]
wrote:

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)

So that should be pretty self-explanatory, no?

Hi @Hassan, I’m sorry but it’s not self-explanatory for me, if you’d be
able to help me understand what I’m doing wrong?

It’s telling you that it’s looking for a file with one of those names in
the current directory. Is there one? If not, either it’s been deleted
or you’re in the wrong directory. If there is, in fact, such a file you
have a bigger problem.

The zip file came from the test creators “Learn Ruby” github account.

Uh, yeah, but if you tell us exactly where other people can download
it and have a much better chance of helping you :slight_smile:

(Assuming it’s open-source, of course.)

Hassan S. wrote in post #1117715:

On Sun, Aug 4, 2013 at 1:42 PM, Jennifer T. [email protected]
wrote:

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)

So that should be pretty self-explanatory, no?

Hi @Hassan, I’m sorry but it’s not self-explanatory for me, if you’d be
able to help me understand what I’m doing wrong?

It’s telling you that it’s looking for a file with one of those names in
the current directory. Is there one? If not, either it’s been deleted
or you’re in the wrong directory. If there is, in fact, such a file you
have a bigger problem.

The zip file came from the test creators “Learn Ruby” github account.

Uh, yeah, but if you tell us exactly where other people can download
it and have a much better chance of helping you :slight_smile:

(Assuming it’s open-source, of course.)

Sure thing, here’s the link.

Hassan S. wrote in post #1117723:

On Sun, Aug 4, 2013 at 2:21 PM, Jennifer T. [email protected]
wrote:

GitHub - alexch/learn_ruby: a basic ruby class generated from test-first-teaching

Seems to work OK here. Did this error occur the very first time you
ran rake? And is there a Rakefile in the root directory of this app?

Yes it did and there is a rake file in the root directory.

On Sun, Aug 4, 2013 at 2:21 PM, Jennifer T. [email protected]
wrote:

GitHub - alexch/learn_ruby: a basic ruby class generated from test-first-teaching

Seems to work OK here. Did this error occur the very first time you
ran rake? And is there a Rakefile in the root directory of this app?

Hassan S. wrote in post #1117726:

On Sun, Aug 4, 2013 at 4:57 PM, Jennifer T. [email protected]
wrote:

Seems to work OK here. Did this error occur the very first time you
ran rake? And is there a Rakefile in the root directory of this app?

Yes it did and there is a rake file in the root directory.

Strange. What do you get when you run the following:

which ruby
ruby -v
which rake
rake -V
which rspec
rspec -v

See below:

which ruby
/usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby

ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]

which rake
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/rake

rake -v
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in eval' /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in
(See full trace by running task with --trace)

which rspec
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/rspec

rspec -v
2.14.4

On Sun, Aug 4, 2013 at 5:23 PM, Jennifer T. [email protected]
wrote:

rake -v

That should be an upper-case V (yes, inconsistent with the others).

The only thing I see unusual is the system-wide rvm install but that’s
no reason for it not to work. Unless there’s some sort of permissions
problem between your rake in /usr/local and wherever you have this
project. Is it somewhere under your home directory? What are the
perms/ownership of the project and the Rakefile?

On Sun, Aug 4, 2013 at 4:57 PM, Jennifer T. [email protected]
wrote:

Seems to work OK here. Did this error occur the very first time you
ran rake? And is there a Rakefile in the root directory of this app?

Yes it did and there is a rake file in the root directory.

Strange. What do you get when you run the following:

which ruby
ruby -v
which rake
rake -V
which rspec
rspec -v

Hassan S. wrote in post #1117729:

On Sun, Aug 4, 2013 at 5:23 PM, Jennifer T. [email protected]
wrote:

rake -v

That should be an upper-case V (yes, inconsistent with the others).

The only thing I see unusual is the system-wide rvm install but that’s
no reason for it not to work. Unless there’s some sort of permissions
problem between your rake in /usr/local and wherever you have this
project. Is it somewhere under your home directory? What are the
perms/ownership of the project and the Rakefile?

Oh ok, when I did rake -V this was the output (rake, version 10.1.0).
Here are the permissions for the project, including rakefile. Thanks so
much for your help.

drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 00_hello
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 01_temperature
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 02_calculator
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 03_simon_says
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 04_pig_latin
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 05_silly_blocks
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 06_performance_monitor
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 07_hello_friend
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 08_book_titles
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 09_timer
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 10_temperature_object
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 11_dictionary
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 12_rpn_calculator
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 13_xml_document
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 14_array_extensions
drwxr-xr-x@ 4 user staff 136 Jun 7 17:21 15_in_words
-rwxr-xr-x@ 1 user staff 63 Jun 7 17:21 Gemfile
-rwxr-xr-x@ 1 user staff 414 Jun 7 17:21 Rakefile
-rwxr-xr-x@ 1 user staff 3634 Jun 7 17:21 advanced_setup.html
drwxr-xr-x@ 3 user staff 102 Jun 7 17:21 assets
-rwxr-xr-x@ 1 user staff 11684 Jun 7 17:21 index.html
-rwxr-xr-x@ 1 user staff 65 Jun 7 17:21 rspec_config.rb
-rwxr-xr-x@ 1 user staff 5121 Jun 7 17:21 teacher_notes.html

On Sun, Aug 4, 2013 at 8:13 PM, Jennifer T. [email protected]
wrote:

Oh ok, when I did rake -V this was the output (rake, version 10.1.0).
Here are the permissions for the project, including rakefile.

Again, it seems a little unusual to have plain files with executable
permission settings, but that doesn’t seem likely to cause this issue.

I’m running out of ideas. You might want to try blowing this all away
and re-installing it to see if anything changes.

Or, if this is your personal system, deleting the global rvm
installation
and installing it for your own userid.

If I had access to your system I’d stick some debugging statements
in rake itself to see what’s going on, but trying to coordinate that via
email would be painfully time-consuming :slight_smile:

But if no one else has any better ideas…

Cool, I’ll try re-installing both. Thanks again for your help!