From owner-freebsd-questions Mon Sep 30 5:11:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A57AD37B401 for ; Mon, 30 Sep 2002 05:11:24 -0700 (PDT) Received: from la-mail3.digilink.net (la3.digilink.net [205.147.0.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2414843E75 for ; Mon, 30 Sep 2002 05:11:24 -0700 (PDT) (envelope-from metrol@metrol.net) Received: from metrol@metrol.net (metrol@mail.testequity.net [205.147.16.59]) by la-mail3.digilink.net (8.12.6/8.12.6) with ESMTP id g8UCBJBH023379 for ; Mon, 30 Sep 2002 05:11:20 -0700 (PDT) Content-Type: text/plain; charset="us-ascii" From: Michael Collette To: A Ling Subject: Re: help with portupgrade portupgrade mess? Date: Mon, 30 Sep 2002 05:11:15 -0700 User-Agent: KMail/1.4.3 Cc: FreeBSD Mailing Lists MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200209300511.15510.metrol@metrol.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG A Ling wrote: > If I'd known I'd have troubles, I'd have kept a > careful log of which errors occured under which > conditions. Unfortunately, I tried what seemed > obvious after looking at the man pages and message > archives, so the following is a reconstruction from > memory. > > After doing 'portupgrade portupgrade', I got > /usr/local/sbin/portupgrade:34:in `require': No such > file to load -- > optparse (LoadError) Personally, I wouldn't ever try to get something to try and upgrade itself. There is a point in the process where the script that does the installing is going to not be there. Assuming you don't have Ruby installed for any other specific purpose, here's a somewhat cleaner way to do this. Don't just type the following without FULLY considering what this will do. This is what I do, and that's the end of that disclamier... pkg_delete -rf ruby* <- [Deletes ALL of ruby, and anything that depended on it.] [Now do a nice, normal port install] cd /usr/ports/sysutils/portupgrade/ make install clean [Once that's finished, you'll need to force an update to pkgdb] pkgdb -fu And that's it. Mind you, the safer way to do this would be to only uninstall the Ruby components that actually require updating. Good luck with it! > After cvsup-ing ports, portsdb -uU and various > portupgrade -r ruby portupgrade machinations, I > started getting > [Updating the pkgdb in /var/db/pkg > ... - 266 > packages found (-1 +2) (...)Cannot allocate memory: > Cannot update the > pkgdb!] > > After searching the message archives and make > deinstall; make clean; make reinstall of ruby* and > portupgrade, I got memory allocation errors like this > # pkgdb -u > [Updating the pkgdb in /var/db/pkg > ... - 187 packages found (-4 +4) > (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:435:in > `each': tried to allocate too big memory > (NoMemoryError) > from > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:435:in > `select' > from > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:435:in > `update_db' > from /usr/local/sbin/pkgdb:201:in `main' > from /usr/local/sbin/pkgdb:61:in `initialize' > from /usr/local/sbin/pkgdb:61:in `new' > from /usr/local/sbin/pkgdb:61:in `main' > from /usr/local/sbin/pkgdb:914 > > I also updated to the latest stable world from > yesterday (previously from 4 August) to no avail. > Login.conf limits are untouched by me, and the current > > packages include > # pkg_info -aI | egrep 'ruby|portup' | col1 > portupgrade-20020921.1 > ruby-1.6.7.2002.09.12 > ruby-bdb1-0.1.7 > ruby-shim-ruby18-1.7.3.2002.09.20 > > Anyone recognize this or have suggestions? > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message