On Sat, 24 Nov 2007 05:30:14 +0000, Thufir wrote: > I'm running into some error messages from rails when running "script/ > generate controller foo" and am wondering if it's related to package > management, a mismatch between gems and emerge. Do not use gems, use > emerge? The wiki is incorrect?
I'd consider the wiki in general to be a good first source of information but certainly not accurate. Usually this is because the page is created at some point but not properly maintained or reviewed. In this case the mention of Rails 1.1 and not Rails 1.2 is a dead giveaway that this page is outdated. > The gentoo wiki, <http://gentoo-wiki.com/HOWTO_RoR>, says to: > > emerge -av sqlite3-ruby > gem install sqlite3-ruby You really don't want to do both of these. In fact, emerging the sqlite3- ruby already installs the gem version, so running 'gem install sqlite3- ruby' will at best have no effect and at worst confuse emerge at a later stage. > So, it looks like the version of sqlite3-ruby installed matches the > instructions at the wiki, but the version number doesn't seem to match > what's available through "gem"; and the wiki specifically states to > install the gem. The wiki instructions are non-sense. I guess that this originates from the fact that we install some packages in site-ruby which means that gem dependencies don't always work, aka bug https://bugs.gentoo.org/ show_bug.cgi?id=196036 In this particular case the instruction is nonsense since portage already installs the gem. > The error I'm running into may be totally unrelated to this. It seems a > bit odd to me that sqlite3-ruby must be emerged through portage and that > gem must install it as well -- one or the other would seem to be > sufficient. Good thinking. :-) Without showing us the error we can't help you with that, though. Kind regards, Hans -- [EMAIL PROTECTED] mailing list