Gentoo Archives: gentoo-user

From: Francesco Talamona <ti.liame@×××××.it>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Ruby Rails and Rake - strange error on Gentoo...
Date: Mon, 07 Nov 2005 18:53:43
Message-Id: 200511071941.40408.ti.liame@email.it
In Reply to: [gentoo-user] Ruby Rails and Rake - strange error on Gentoo... by "Steve [Gentoo]"
1 On Monday 07 November 2005 17:27, Steve [Gentoo] wrote:
2 > I've recently started playing around with Ruby and rails under
3 > Gentoo. I've installed everything using emerge as opposed to the
4 > using ruby gems.
5 >
6 > While I seem to be able to use my rails application, I get a puzzling
7 > error message when I try to verify it using the default generated
8 > rakefile and rake:
9 >
10 > --
11 > $ rails myapp
12 > $ cd myapp
13 > $ rake
14 > /usr/lib/ruby/site_ruby/1.8/rake.rb:658:in `private': undefined
15 > method `have_opt
16 > ion?' for class `Object' (NameError)
17 > from /usr/lib/ruby/site_ruby/1.8/rake.rb:658
18 > from /usr/lib/ruby/site_ruby/1.8/rake.rb:657
19 > from /usr/bin/rake:3
20 > --
21 >
22 > I would not expect this error message. I get the same error message
23 > if I've introduced controllers and views (as suggested in the
24 > tutorials) before running make. I've asked on both the ruby and
25 > rails mailing lists without any suggestions arising... it seems this
26 > might be peculiar to Gentoo. Do other users (more familiar than I am
27 > with Ruby, rails and rake) have the same problems? Is this a
28 > problem with my generated application, Rails - or (as the error
29 > message suggests) an error in the implementation of rake?
30
31 I don't know it is helpful, but my instiki wiki recentlystopped working,
32 so I googled a bit with the error message provided, and discovered that
33 I had to downgrade ruby, as ruby-1.8.3 has some incompatibilities I
34 can't remeber now.
35
36 I added the line "=dev-lang/ruby-1.8.3" in /etc/portage/package.mask and
37 emerged dev-lang/ruby-1.8.2-r2
38
39 HTH
40 Francesco
41
42 --
43 Linux Version 2.6.12-gentoo-r9, Compiled #2 Wed Aug 24 18:43:16 CEST
44 2005
45 One 2.2GHz AMD Athlon 64 Processor, 2GB RAM, 4325.37 Bogomips Total
46 aemaeth
47 --
48 gentoo-user@g.o mailing list