From owner-freebsd-questions Mon Nov 8 6: 7:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mashie.force9.net (mashie.force9.net [195.166.128.30]) by hub.freebsd.org (Postfix) with SMTP id 7030614C15 for ; Mon, 8 Nov 1999 06:07:42 -0800 (PST) (envelope-from ric@sinclairassoc.force9.co.uk) Received: (qmail 15714 invoked from network); 8 Nov 1999 14:07:41 -0000 Received: from mayfly.plus.net.uk (HELO mayfly.force9.net) (195.166.128.28) by mashie.force9.net with SMTP; 8 Nov 1999 14:07:41 -0000 Received: (qmail 1958 invoked from network); 8 Nov 1999 14:07:40 -0000 Received: from unknown (HELO sinclairassoc.force9.co.uk) (212.56.95.175) by mayfly.plus.net.uk with SMTP; 8 Nov 1999 14:07:40 -0000 Message-ID: <3826D916.C81423AD@sinclairassoc.force9.co.uk> Date: Mon, 08 Nov 1999 14:07:18 +0000 From: Richard Morte X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en-GB,en-US,en MIME-Version: 1.0 To: Sheldon Hearn Cc: freebsd-questions Subject: Re: Installing GDBM_File (was: Location of GDBM_File in FreeBSD 3.2_Release) References: <39791.942057424@axl.noc.iafrica.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn wrote: > > On Mon, 08 Nov 1999 09:18:35 GMT, Richard Morte wrote: > > > OK, tried a bit more self-help this morning - but came unglued :( > > > > I read up on various documents for installing perl modules. Here's what > > I did & what I got: > > > > $ cd /usr/src/contrib/perl5/ext/GDBM_File > > $ perl Makefile.PL > > Note (probably harmless): No library found for -lgdbm > > Note (probably harmless): No library found for -ldbm > > Writing Makefile for GDBM_File > > > > $make > > mkdir blib > > mkdir blib/lib > > cp GDBM_File.pm blib/lib/GDBM_File.pm > > Autosplitting ... > > ... > > GDBM_File.xs:5: gdbm.h: No such file or directory > > *** Error Code 1 > > > > Stop. > > $ > > > > > > Where to go / what to do next? > > > > Ric > > =========================original message below========================= > > Richard Morte wrote: > > > > > > Just a quickie! > > > > > > I want to use GDBM_File in a perl script I'm developing. However I get > > > the error message "Can't locate GDBM_File.pm in @INC (@INC contains > > > ...[anything but the path I need].... etc.) > > > > > > A search reveals the location of the following file: > > > /usr/src/contrib/perl5/ext/GDBM_File/GDBM_File.pm > > > > > > Do I simply copy it to a directory on one of the @INC paths, recompile > something (surely not...) or do something else to set the value of @INC? > > > > Thanks you for helping, > > > > > Ric > Either you don't have the gdbm port installed or your Makefile.PL > doesn't know to look for it in /usr/local/ instead of /usr . > > Ciao, > Sheldon. Sheldon, thanks for your reply. Tried installing the port but the error message when running the perl script is just the same: "Can't locate GDBM_File.pm in @INC..." Here's how I installed the port (edited down): installed the ports collection from the CDROM (3 of 4) $ cd /usr/ports/databases/gdbm $ make >> attempting to fetch from ftp://prep.ai.mit.edu/pub/gnu/gdbm/. Receiving ...etc... ===> Extracting ... ===> Patching... ===> Applying FreeBSD patches.... ===> Configuring... ===> Building... $ make install ===> Installing for gdbm-1.7.3 ===> gdbm is already installed ...etc... $ make deinstall ===> Deinstalling ... $ make reinstall ===> Installing for ... ===> Generating temporary packing list ===> Compressing... ===> Registering installation... So I guess the installation finally went OK! So why might perl not be able to locate this module? Clearly it's still not in @INC's path. Regards, Ric ps the ports tree in /usr/ports is slowing down searches on the system. Can it be trimmed down or uninstalled or just deleted? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message