Troubles, installing rake

C

Christoph Neubauer

Hi !

I use Ruby 1.6.8 on WinXP.
Now, I got rake-0[1].5.4.zip and extracted it to C:\Program
Files\Ruby\rake-0.5.4

Trying to install it ..
cd C:\Program Files\Ruby\rake-0.5.4
ruby install.rb

.... I got following error:
mkdir c:/program files/ruby/lib/ruby/site_ruby/1.6/rake
install.rb:77: undefined method `each' for 0:Fixnum (NameError)

What I'm doing wrong ?
Chris
 
S

Stefan Lang

Hi !

I use Ruby 1.6.8 on WinXP.
Now, I got rake-0[1].5.4.zip and extracted it to C:\Program
Files\Ruby\rake-0.5.4

Trying to install it ..
cd C:\Program Files\Ruby\rake-0.5.4
ruby install.rb

.... I got following error:
mkdir c:/program files/ruby/lib/ruby/site_ruby/1.6/rake
install.rb:77: undefined method `each' for 0:Fixnum (NameError)

What I'm doing wrong ?

Rake requires Ruby 1.8.0 or later. You can download the latest
OneClick Installer from http://rubyforge.org/frs/?group_id=167

(BTW: Darf ich wissen in welchem Siemens-Werk du arbeitest?)
 
C

Christoph Neubauer

Hi !

Thanks for answering quickly.
But, alas, for some reasons I'm bound to 1.6.8.

Is there any workaround possible ?

Chris

Stefan Lang said:
Hi !

I use Ruby 1.6.8 on WinXP.
Now, I got rake-0[1].5.4.zip and extracted it to C:\Program
Files\Ruby\rake-0.5.4

Trying to install it ..
cd C:\Program Files\Ruby\rake-0.5.4
ruby install.rb

.... I got following error:
mkdir c:/program files/ruby/lib/ruby/site_ruby/1.6/rake
install.rb:77: undefined method `each' for 0:Fixnum (NameError)

What I'm doing wrong ?

Rake requires Ruby 1.8.0 or later. You can download the latest
OneClick Installer from http://rubyforge.org/frs/?group_id=167

(BTW: Darf ich wissen in welchem Siemens-Werk du arbeitest?)
 
S

Stefan Lang

Hi !

Thanks for answering quickly.
But, alas, for some reasons I'm bound to 1.6.8.

Is there any workaround possible ?

Hmm, depends on wether you have to run existing Rakefiles or
you need to write a new one. If you intend to write new buildfiles
try to use Rant, which is very similar to Rake.

I've just managed to get a limited version of Rant running
with Ruby 1.6.8. You can download it from
http://rubyforge.org/frs/?group_id=3D615&release_id=3D2506
(the last entry, the script make.rb under Rant for Ruby 1.6.8).

=46or general Rant documentation visit http://make.ruby-co.de

=46rom the release notes of Rant for Ruby 1.6.8:
"
This is a special monolithic Rant script created for users which
can't upgrade their Ruby installation to a version newer
than Ruby 1.6.8.

Just copy the file make.rb into the project directory
(the same in which your Rantfile lies).

To run your Rantfiles type:
% ruby make.rb [options] [arguments]
instead of the usual:
% rant [options] [arguments]

This script (make.rb) has the following imports inlined
(may work, but not tested):
* subfile
* clean
* directedrule
* rubytest
* rubydoc
* c/dependencies
* win32/rubycmdwrapper
"

HTH,
Stefan
 
C

Christoph Neubauer

Thanks, I'll try Rant !
:)
Chris

Hi !

Thanks for answering quickly.
But, alas, for some reasons I'm bound to 1.6.8.

Is there any workaround possible ?

Hmm, depends on wether you have to run existing Rakefiles or
you need to write a new one. If you intend to write new buildfiles
try to use Rant, which is very similar to Rake.

I've just managed to get a limited version of Rant running
with Ruby 1.6.8. You can download it from
http://rubyforge.org/frs/?group_id=615&release_id=2506
(the last entry, the script make.rb under Rant for Ruby 1.6.8).

For general Rant documentation visit http://make.ruby-co.de

From the release notes of Rant for Ruby 1.6.8:
"
This is a special monolithic Rant script created for users which
can't upgrade their Ruby installation to a version newer
than Ruby 1.6.8.

Just copy the file make.rb into the project directory
(the same in which your Rantfile lies).

To run your Rantfiles type:
% ruby make.rb [options] [arguments]
instead of the usual:
% rant [options] [arguments]

This script (make.rb) has the following imports inlined
(may work, but not tested):
* subfile
* clean
* directedrule
* rubytest
* rubydoc
* c/dependencies
* win32/rubycmdwrapper
"

HTH,
Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,947
Members
47,498
Latest member
yelene6679

Latest Threads

Top