1 |
On Sat, 24 Nov 2007 05:30:14 +0000, Thufir wrote: |
2 |
|
3 |
> I'm running into some error messages from rails when running "script/ |
4 |
> generate controller foo" and am wondering if it's related to package |
5 |
> management, a mismatch between gems and emerge. Do not use gems, use |
6 |
> emerge? The wiki is incorrect? |
7 |
|
8 |
I'd consider the wiki in general to be a good first source of information |
9 |
but certainly not accurate. Usually this is because the page is created |
10 |
at some point but not properly maintained or reviewed. In this case the |
11 |
mention of Rails 1.1 and not Rails 1.2 is a dead giveaway that this page |
12 |
is outdated. |
13 |
|
14 |
> The gentoo wiki, <http://gentoo-wiki.com/HOWTO_RoR>, says to: |
15 |
> |
16 |
> emerge -av sqlite3-ruby |
17 |
> gem install sqlite3-ruby |
18 |
|
19 |
You really don't want to do both of these. In fact, emerging the sqlite3- |
20 |
ruby already installs the gem version, so running 'gem install sqlite3- |
21 |
ruby' will at best have no effect and at worst confuse emerge at a later |
22 |
stage. |
23 |
|
24 |
> So, it looks like the version of sqlite3-ruby installed matches the |
25 |
> instructions at the wiki, but the version number doesn't seem to match |
26 |
> what's available through "gem"; and the wiki specifically states to |
27 |
> install the gem. |
28 |
|
29 |
The wiki instructions are non-sense. I guess that this originates from |
30 |
the fact that we install some packages in site-ruby which means that gem |
31 |
dependencies don't always work, aka bug https://bugs.gentoo.org/ |
32 |
show_bug.cgi?id=196036 |
33 |
|
34 |
In this particular case the instruction is nonsense since portage already |
35 |
installs the gem. |
36 |
|
37 |
> The error I'm running into may be totally unrelated to this. It seems a |
38 |
> bit odd to me that sqlite3-ruby must be emerged through portage and that |
39 |
> gem must install it as well -- one or the other would seem to be |
40 |
> sufficient. |
41 |
|
42 |
Good thinking. :-) |
43 |
|
44 |
Without showing us the error we can't help you with that, though. |
45 |
|
46 |
Kind regards, |
47 |
|
48 |
Hans |
49 |
|
50 |
-- |
51 |
gentoo-user@g.o mailing list |