From owner-freebsd-questions@FreeBSD.ORG Mon Mar 1 00:29:04 2004 Return-Path: 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 BBF1216A4CE for ; Mon, 1 Mar 2004 00:29:04 -0800 (PST) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 310FB43D39 for ; Mon, 1 Mar 2004 00:29:04 -0800 (PST) (envelope-from nospam@users.sourceforge.net) Received: (snipe 24442 invoked by alias); 1 Mar 2004 08:28:59 +0900(KST) Received: from nospam@users.sourceforge.net with SpamSniper2.76 (Processed in 0.050021 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 1 Mar 2004 08:28:59 +0900(KST) X-RCPTTO: freebsd-questions@freebsd.org,bogorodskiy@inbox.ru, Received: from users.sourceforge.net (cisr.snu.ac.kr [147.46.44.181]) by sis1.snu.ac.kr (8.12.10/8.12.10) with ESMTP id i218PTMk289782; Mon, 1 Mar 2004 17:25:30 +0900 Message-ID: <4042F44C.5080504@users.sourceforge.net> Date: Mon, 01 Mar 2004 17:29:00 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roman Bogorodskiy , freebsd-questions@freebsd.org References: <20040301051139.GA8665@lame.novel.ru> In-Reply-To: <20040301051139.GA8665@lame.novel.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: portupgrade/pkgdb problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 08:29:04 -0000 Roman Bogorodskiy wrote: > Hi, > > As described in > http://www.freshports.org/commit.php?message_id=200402261920.i1QJK9DA070598@repoman.freebsd.org, > I've reinstalled portupgrade-\*. > > And now when I try to run portupgrade I have such error: > > novel /usr/local/bin $> portupgrade -sfr lang/ruby16 > ---> [Executing a command as root: sudo /usr/local/sbin/pkgdb -u] > ---> Updating the pkgdb > [Updating the pkgdb in /var/db/pkg ... - 266 > packages found (-41 +135) (...)ruby in malloc(): error: allocation > failed > ---> [Executing a command as root: sudo /usr/local/sbin/pkgdb -u] > ---> Updating the pkgdb > [Updating the pkgdb in /var/db/pkg ... - 266 > packages found (-41 +135) (...)ruby in malloc(): error: allocation > failed > The pkgdb must be updated. Please run 'pkgdb -u' as root. > novel /usr/local/bin $> > > What's wrong? > > FreeBSD 5.2.1-RELEASE i386 > portupgrade 1.8.1 > ruby 1.8.1 (2003-12-25) [i386-freebsd5] I think this is because ruby-1.6 used to install /usr/local/bin/ruby, but by the recent upgrade this becomes /usr/local/bin/ruby16 and ruby is not there anymore. Since portupgrade needs ruby, portupgrade gets stuck as soon as upgrading ruby-1.6 removes the /usr/local/bin/ruby file. I have removed portupgrade and all related ruby stuff and then reinstalled portupgrade, which then installs ruby-1.8. All works well then. Rob.