From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 03:48:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 736E5106566B for ; Thu, 17 Dec 2009 03:48:22 +0000 (UTC) (envelope-from battdude@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4F0098FC08 for ; Thu, 17 Dec 2009 03:48:22 +0000 (UTC) Received: by pxi12 with SMTP id 12so1169779pxi.3 for ; Wed, 16 Dec 2009 19:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=kLaDWDvcpNM8so1DpFOu2mXRqP6ZnK3f3UR8uHiwtjo=; b=lQx90DkFQ6+TQwI4C7sJIEEy5pOktLd4KY12t7f5ffpZKsPKo2oYcKIVP0Y2BAdjFD 6mEhGieO3tgT2KbFCeqN9y85iYO/kjW2BU5KcLJ/XTTQU8jV62bg0gewGLFimVRyxj2H I5v6H0Q6Tv2bTKwvta07S00updiGPV8VrimEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PD1BVmaYO4ZYGHOkSefZ0VwrClwCTMgIE+c6arhP6d5R30Lqo8U9prHZ9zOeJTYCgF qOETnw1kMsHrSDIwrSHzbjSfVrguJRLCeOh9Rx5QTp6Yr3yByjPdYZEkufKGBbAQnflS TxQjk19N4um4ZzUXBfTCXXFwmEMIBHQfSX85g= MIME-Version: 1.0 Received: by 10.141.188.41 with SMTP id q41mr1367251rvp.117.1261019843733; Wed, 16 Dec 2009 19:17:23 -0800 (PST) Date: Wed, 16 Dec 2009 17:17:23 -1000 Message-ID: <7314e5020912161917s355d02c9l16c996043c753044@mail.gmail.com> From: Kevin To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: portupgrade failure 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: Thu, 17 Dec 2009 03:48:22 -0000 Hello all, I've been having this problem for a couple of months now, but I just recently decided to try to fix it. I'm running FreeBSD 6.4, and if I try to use portupgrade to upgrade something, I get an error (seems to be the same for other ports): # portupgrade -R squid [Gathering depends for www/squid30 ./usr/local/sbin/portupgrade:878:in `get_all_depends': private method `scan' called for # (NoMethodError) from /usr/local/sbin/portupgrade:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portupgrade:870:in `get_all_depends' from /usr/local/sbin/portupgrade:633:in `main' from /usr/local/sbin/portupgrade:607:in `each' from /usr/local/sbin/portupgrade:607:in `main' from /usr/local/sbin/portupgrade:582:in `catch' from /usr/local/sbin/portupgrade:582:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1248:in `order!' from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order' from /usr/local/sbin/portupgrade:559:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portupgrade:231:in `new' from /usr/local/sbin/portupgrade:231:in `main' from /usr/local/sbin/portupgrade:2213 The only other symptoms I can identify right now are related to the following entries in my crontab: 0 2 * * 6 /usr/local/sbin/portsclean -DD 0 2 * * 5 /usr/local/sbin/portsclean -C The e-mailed results simply say "env: ruby: No such file or directory". However, these commands seem to run fine from an interactive shell (while logged in). I also receive the same message at the end of the output for "/usr/sbin/portsnap cron update && /usr/local/sbin/portsdb -u > /dev/null" run from cron: Removing old files and directories... done. Extracting new files: /usr/ports/MOVED /usr/ports/Mk/bsd.sites.mk /usr/ports/UPDATING <...lines deleted...> /usr/ports/x11/9menu/ /usr/ports/x11/evilvte/ /usr/ports/x11/nvidia-driver/ Building new INDEX files... done. env: ruby: No such file or directory Any help would be greatly appreciated. Thanks, Kevin