From owner-freebsd-questions@FreeBSD.ORG Mon Aug 18 19:02:04 2008 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 D173E106566B for ; Mon, 18 Aug 2008 19:02:04 +0000 (UTC) (envelope-from prvs=pschmehl_lists=10929c7ce@tx.rr.com) Received: from ip-relay-002.utdallas.edu (ip-relay-002.utdallas.edu [129.110.20.112]) by mx1.freebsd.org (Postfix) with ESMTP id 96E468FC16 for ; Mon, 18 Aug 2008 19:02:04 +0000 (UTC) (envelope-from prvs=pschmehl_lists=10929c7ce@tx.rr.com) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.31,321,1215406800"; d="scan'208";a="5474256" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-002.utdallas.edu with ESMTP; 18 Aug 2008 13:33:21 -0500 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id B802C23DE8; Mon, 18 Aug 2008 13:33:21 -0500 (CDT) Date: Mon, 18 Aug 2008 13:33:21 -0500 From: Paul Schmehl To: Len Conrad , freebsd-questions@freebsd.org Message-ID: <603B2CF4BD3EF890580860D9@utd65257.utdallas.edu> In-Reply-To: <200808182016265.SM01620@TX2.Go2France.com> References: <200808182016265.SM01620@TX2.Go2France.com> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: PERL plumbers? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 19:02:04 -0000 --On Monday, August 18, 2008 13:23:43 -0500 Len Conrad wrote: > fbsd 4.11 > > perl 5.8.8 installed by pkg_add > > postgrey 1.32 > > use.perl port > > This machine has been running great for a week. Monday morning, postgrey was > stoppedand wouldn't start. > > syslog: > > Aug 18 14:20:35 mx1 postgrey[73387]: FATAL: ERROR: can't create DB > environment: No such file or directory (dbdir: /var/db/postgrey uid/gid: > 1003,1003) > > user:group 1003:1003 is postgrey:postgrey > > but: > > ll /var/db/postgrey/ > total 1078288 > -rw------- 1 postgrey postgrey - 10485684 Aug 8 01:06 log.0000000001 > -rw------- 1 postgrey postgrey - 1082490880 Aug 17 08:36 postgrey.db > -rw------- 1 postgrey postgrey - 0 Dec 8 2006 postgrey.lock > -rw------- 1 postgrey postgrey - 10862592 Aug 17 08:36 > postgrey_clients.db > > It seems that some PERL path has gone wrong > > strace postgrey --inet=10023 > > .. show a lot of file open failures. > > open("/usr/local/lib/perl5/site_perl/5.8.5/mach/Sys/Syslog.pm", O_RDONLY) = > -1 ENOENT (No such file or directory) > > mx1# find /usr/local -iname "Syslog.pm" > /usr/local/lib/perl5/5.8.2/mach/Sys/Syslog.pm > /usr/local/lib/perl5/site_perl/5.8.2/mach/Unix/Syslog.pm > /usr/local/lib/perl5/5.8.5/mach/Sys/Syslog.pm > > mx1# find /usr/local -iname "FileHandle.pm" > /usr/local/lib/perl5/5.8.2/FileHandle.pm > /usr/local/lib/perl5/5.8.5/FileHandle.pm > > > For an earlier, similar problem on this machine, we were advised to make this > link, > > mx1# ll /usr/bin/perl > lrwxr-xr-x 1 root wheel - 19 Aug 18 06:14 /usr/bin/perl@ -> > /usr/local/bin/perl > Whoever gave you this advice was wrong. A symlink should already exist for perl: # ls -lsa /usr/bin/perl 0 lrwxr-xr-x 1 root wheel 24 Feb 20 12:23 /usr/bin/perl -> /usr/local/bin/perl5.8.8 Note that it doesn't point to /usr/local/bin/perl > How do I tell PERL and PERL apps where to find the stuff? > @INC Try running the perl-after-upgrade script: # which perl-after-upgrade /usr/local/bin/perl-after-upgrade -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* Check the headers before clicking on Reply.