Re: [gentoo-user] Ruby Rails and Rake - strange error on Gentoo...
I have the exact same issue and as yet have been unable to solve it. My emerged versions are as follows: dev-lang/ruby-1.8.3 * dev-ruby/rubygems-0.8.11 * dev-ruby/activerecord-1.11.1 dev-ruby/activesupport-1.1.1-r2 * dev-ruby/rake-0.5.3 * dev-ruby/rails-0.13.1 * My error when running rake: /usr/lib/ruby/site_ruby/1.8/rake.rb:658:in `private': undefined method `have_option?' for class `Object' (NameError) from /usr/lib/ruby/site_ruby/1.8/rake.rb:658 from /usr/lib/ruby/site_ruby/1.8/rake.rb:657 from /usr/bin/rake:3 If I find a solution I will post it.On 11/7/05, Steve [Gentoo] [EMAIL PROTECTED] wrote: I've recently started playing around with Ruby and rails under Gentoo.I've installed everything using emerge as opposed to the using ruby gems. While I seem to be able to use my rails application, I get a puzzlingerror message when I try to verify it using the default generatedrakefile and rake:--$ rails myapp$ cd myapp$ rake /usr/lib/ruby/site_ruby/1.8/rake.rb:658:in `private': undefined method`have_option?' for class `Object' (NameError)from /usr/lib/ruby/site_ruby/1.8/rake.rb:658from /usr/lib/ruby/site_ruby/1.8/rake.rb:657 from /usr/bin/rake:3--I would not expect this error message. I get the same error message ifI've introduced controllers and views (as suggested in the tutorials)before running make.I've asked on both the ruby and rails mailing lists without any suggestions arising... it seems this might be peculiarto Gentoo.Do other users (more familiar than I am with Ruby, rails andrake)have the same problems?Is this a problem with my generated application, Rails - or (as the error message suggests) an error in theimplementation of rake?--gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Question about Portage Update
On Sunday 01 January 2006 21:18, William Gabriel wrote: I want to start this post off by stressing that I am not complaining, but merely inquiring. There is nothing to complain about in what happened to you, it's just the expected behaviour if your system is x86 (read on for the details). I got comfortable with Ruby, and I now want to install Rails. I started with the typical 'emerge --sync' and found that the most recent version of Rails in Portage is 0.13.1. A lot of work has gone into Rails to get it to version 1.0.0, and that is the version I would like to install. Naturally, I would also like Portage to manage the installation over manually installing it. Yes, it's very simple. Create the file /etc/portage/package.keywords (if it doesn't exist already) and put the following lines in it: dev-ruby/rails ~x86 dev-ruby/activerecord ~x86 dev-ruby/activesupport ~x86 dev-ruby/actionmailer ~x86 dev-ruby/actionpack ~x86 dev-ruby/actionwebservice ~x86 Then try to reemerge rails and it shuld bring in version 1.0.0 (depending on your setup, it might be necessary to add a few other packages in /etc/portage/package.keywords). My main question has to do with about how Portage gets updated. Is there some central authority that updates the repository, or is it any user that is interested in making a Portage package? How often does software get updated (it seems like Ruby was pretty close to up-to-date, but Rails was a little behind). Is there any way that I can help update the package? Is there documentation for updating packages? And where would I find the 0.13.1 package source so that I have a base to work with? And then how wou submit the new package to the central repository? I suggest you read the handbook, part 2 and 3 to get the basics of how portage works, and in particular this: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3chap=3 to learn about the different software branches gentoo provides (ie, x86 and ~x86 for the x86 architecture, sparc and ~sparc for the sparc, etc.). In short, the software you need *is* in portage, but is marked unstable (~x86). Unstable here does not necessarily mean that it doesn't work (in that case it would be marked -* or not keyworded at all for your arch), but simply that it has not received a sufficient amount of testing to be considered stable. Packages marked ~x86 usually work just fine. Some people even run their whole system in ~x86, by changing the ACCEPT_KEYWORDS variable in /etc/make.conf. HTH -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Update portage cache ... horribly slow
Paweł Madej schreef: My other question is if there is some script which could follow rrs from [1] and run emerge sync and emerge -uND world after there is for example 10 ebuild updated comparing to my system, or other way that it will email me that there is 10 ebuilds new and i should run sync manually. Well, esync might be what you want-- it's part of gentoolkit, and while it won't do any emerges for you, it will display (or mail you, which is how I do it) the list of updated packages for the day, with a note as to whether the package is an upgrade for your system, new to your system, or the like. Here's an example of the daily mail I get when I run esync as a cron job and mail myself the output:* Importing old portage tree * Doing '/usr/bin/emerge sync' now * Doing 'eupdatedb' now * esearch-index generated in 4 minute(s) and 23 second(s) * indexed 10357 ebuilds * size of esearch-index: 1618 kB * Importing new portage tree * Preparing databases * Searching for changes [ N] dev-ruby/activesupport (1.1.1-r1): Utility Classes and Extension to the Standard Library [MN] net-libs/aqbanking (1.6.0_beta): Generic Online Banking Interface [MN] media-sound/ardour (0.99): multi-track hard disk recording software [ N] mail-filter/clamsmtp (1.5): ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software. [ N] dev-util/cmake (2.0.6-r1): Cross platform Make [ N] net-libs/cvm (0.32-r1): Credential Validation Modules by Bruce Guenter [ N] dev-java/dom4j (1.6.1): Easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP. [ N] net-mail/fetchyahoo (2.9.0): Perl script that downloads mail from a Yahoo! webmail account to a local mail spool, an mbox file, or to procmail. [ N] net-libs/libmonetra (4.2.2): library for connecting to a MCVE Credit Card Processing Daemon via SSL, TCP/IP, and drop-files. [ N] net-analyzer/libnasl (2.2.5): A remote security scanner for Linux (libnasl) [ U] www-client/mozilla-firefox (1.0.7-r1): Firefox Web Browser [ N] net-analyzer/nagios-core (1.2-r3): Nagios Core - Check daemon, CGIs, docs [ N] net-dns/ndu (0.4-r2): DNS serial number incrementer and reverse zone builder [ N] net-analyzer/nessus (2.2.5): A remote security scanner for Linux [ N] net-analyzer/nessus-core (2.2.5): A remote security scanner for Linux (nessus-core) [ N] net-analyzer/nessus-libraries (2.2.5): A remote security scanner for Linux (nessus-libraries) [ N] net-analyzer/nessus-plugins (2.2.5): A remote security scanner for Linux (nessus-plugins) [ N] mail-client/nmh (1.1-r1): New MH mail reader [MN] x11-misc/openclipart (0.17-r1): Open Clip Art Library (openclipart.org) [MN] app-office/qbankmanager (0.9.29): Onlinebanking frontend for aqbanking [MN] x11-misc/service-discovery-applet (0.1): Service Discovery Applet [MN] sys-block/unieject (5): Multiplatform command to eject and load CD-Rom drives [MN] media-libs/urt (3.1b): the Utah Raster Toolkit is a library for dealing with raster images [MN] sys-cluster/vzctl (2.7.0.21): OpenVZ VPS control utility [ N] x11-plugins/wmail (2.0-r2): Window Maker dock application showing incoming mail [ N] x11-plugins/wmlpq (0.2.1-r1): Windowmaker dockapp which monitors up to 5 printqueues [ N] x11-plugins/wmmenu (1.2-r1): WindowMaker DockApp: Provides a popup menu of icons like in AfterStep, as a dockable application. [ N] x11-plugins/wmnetload (1.3-r2): Network interface monitor dockapp The only upgrade (this is from the 27th), is firefox, but I might take a look at wmail. Nothing else interesting to me on this particular list. I suppose if you really felt that you wanted to have an emerge of the new packages done automatically, you could always create a script to run esync and mail you the output, then run emerge -uD world after esync completed successfully (doesn't seem much point in using --newuse if you're not going to be there to look at the output), but I prefer to do my emerges manually. Hope this helps, Holly -- gentoo-user@gentoo.org mailing list