From owner-freebsd-questions@FreeBSD.ORG Mon Jul 3 13:21:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 C10E416A51A for ; Mon, 3 Jul 2006 13:21:05 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD4F843EC9 for ; Mon, 3 Jul 2006 12:50:52 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 26878 invoked from network); 3 Jul 2006 12:50:52 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 Jul 2006 12:50:52 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id E7FBF28449; Mon, 3 Jul 2006 08:50:51 -0400 (EDT) To: Tankko References: <7fec743f0607020826ge606b94t9a6bdbda1bd6a4d2@mail.gmail.com> From: Lowell Gilbert Date: Mon, 03 Jul 2006 08:50:51 -0400 In-Reply-To: <7fec743f0607020826ge606b94t9a6bdbda1bd6a4d2@mail.gmail.com> (tankko@gmail.com's message of "Sun, 2 Jul 2006 08:26:38 -0700") Message-ID: <447j2un978.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: portversion and sudo X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2006 13:21:05 -0000 Tankko writes: > I have two machines running the same version of 5.3, and all ports are > current on both, but, on one of the machines, if I run "portversion" I > get this: > > undefined method `each' for nil:NilClass > /usr/local/sbin/portversion:239: [BUG] Bus Error > ruby 1.8.4 (2005-12-24) [i386-freebsd5] > > Abort trap > > If I run "sudo portversion", it works. > > Does anyone know why I can run "portversion" on one of the machines > and have to run "sudo portversion" on the other? Need to remove and rebuild the index database? > I can run pkg_version of either machine without sudo. Very different situation, so it doesn't tell you very much.