Re: Problem Locating DB_File.PM at startup of perl script
Ken, Thanks for your reply. It does makes sense, eventhough I'm new to perl modules and their implementation. BTW, do you know what that file would be named? I installed it under perl 5.6.0, but when I try to install it under 5.6.1 I get the error (which seems to be a linker error) "/usr/bin/ld: cannot find -ldb". A bit of research lead me to some mention of needing a libdb2 version, but I haven't gotten to deep into it yet and am hoping that I can use my previous installation of DB_File (under 5.6.0) for now. Cheers, James Ken Williams wrote: > Hi James, > > The "loadable object" is not the .pm file, it's the binary compiled > object file that DB_File.pm needs to bootstrap. Sounds like you need to > reinstall the module. > > [EMAIL PROTECTED] (James McKim) wrote: > >Hi all, > > > >I've run into a very frustrating problem. I'm getting the old "Can't > >locate loadable object for module..." error, yet the file does exist in > >the @INC path. Here's some system output: > > > >--- > > > >[Wed Jul 18 12:18:04 2001] pickcity.cgi: Can't locate loadable object > >for module DB_File in @INC (@INC contains: > >/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 > >/usr/local/lib/perl5/site_perl/5.6.1/i686-linux > >/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) > >at /var/pickcity/htdocs/pickcity.cgi line 12 > >[Wed Jul 18 12:18:04 2001] pickcity.cgi: Compilation failed in require > >at /var/pickcity/htdocs/pickcity.cgi line 12. > >[Wed Jul 18 12:18:04 2001] pickcity.cgi: BEGIN failed--compilation > >aborted at /var/pickcity/htdocs/pickcity.cgi line 12. > >[root@localhost DB_File]# ls > >/usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > >/usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > >[root@localhost DB_File]# > >>-- > > > >Anyone have any ideas as to why perl can't seem to find the file > >eventhough the system, clearly, can? > > > >James > > > > > > ------ > Ken Williams Last Bastion of Euclidity > [EMAIL PROTECTED]The Math Forum
Re: Problem Locating DB_File.PM at startup of perl script
Hi James, The "loadable object" is not the .pm file, it's the binary compiled object file that DB_File.pm needs to bootstrap. Sounds like you need to reinstall the module. [EMAIL PROTECTED] (James McKim) wrote: >Hi all, > >I've run into a very frustrating problem. I'm getting the old "Can't >locate loadable object for module..." error, yet the file does exist in >the @INC path. Here's some system output: > >--- > >[Wed Jul 18 12:18:04 2001] pickcity.cgi: Can't locate loadable object >for module DB_File in @INC (@INC contains: >/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 >/usr/local/lib/perl5/site_perl/5.6.1/i686-linux >/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) >at /var/pickcity/htdocs/pickcity.cgi line 12 >[Wed Jul 18 12:18:04 2001] pickcity.cgi: Compilation failed in require >at /var/pickcity/htdocs/pickcity.cgi line 12. >[Wed Jul 18 12:18:04 2001] pickcity.cgi: BEGIN failed--compilation >aborted at /var/pickcity/htdocs/pickcity.cgi line 12. >[root@localhost DB_File]# ls >/usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm >/usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm >[root@localhost DB_File]# >-- > >Anyone have any ideas as to why perl can't seem to find the file >eventhough the system, clearly, can? > >James > > ------ Ken Williams Last Bastion of Euclidity [EMAIL PROTECTED]The Math Forum
Re: Problem Locating DB_File.PM at startup of perl script
BTW, executing the script seemed to be able to locate CGI, DBI, and POSIX just fine. James darren chamberlain wrote: > James McKim <[EMAIL PROTECTED]> said something to this effect on 07/18/2001: > > Hi all, > > > > I've run into a very frustrating problem. I'm getting the old "Can't > > locate loadable object for module..." error, yet the file does exist in > > the @INC path. Here's some system output: > > > > --- > > > > [Wed Jul 18 12:18:04 2001] pickcity.cgi: Can't locate loadable object > > for module DB_File in @INC (@INC contains: > > /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 > > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux > > /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) > > at /var/pickcity/htdocs/pickcity.cgi line 12 > > [Wed Jul 18 12:18:04 2001] pickcity.cgi: Compilation failed in require > > at /var/pickcity/htdocs/pickcity.cgi line 12. > > [Wed Jul 18 12:18:04 2001] pickcity.cgi: BEGIN failed--compilation > > aborted at /var/pickcity/htdocs/pickcity.cgi line 12. > > [root@localhost DB_File]# ls > > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > > [root@localhost DB_File]# > > >-- > > > > Anyone have any ideas as to why perl can't seem to find the file > > eventhough the system, clearly, can? > > What are the permissions on > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm? Can the owner > of the httpd process read the file? > > (darren) > > -- > Real computer scientists don't program in assembler. They don't write > in anything less portable than a number two pencil.
Re: Problem Locating DB_File.PM at startup of perl script
Interesting question. The file owner is root. However, I actually launched the perl cgi from the shell as root and got the error message, so I'm not sure that matching the file owner with the owner of the httpd process would make much difference (yet). James darren chamberlain wrote: > James McKim <[EMAIL PROTECTED]> said something to this effect on 07/18/2001: > > Hi all, > > > > I've run into a very frustrating problem. I'm getting the old "Can't > > locate loadable object for module..." error, yet the file does exist in > > the @INC path. Here's some system output: > > > > --- > > > > [Wed Jul 18 12:18:04 2001] pickcity.cgi: Can't locate loadable object > > for module DB_File in @INC (@INC contains: > > /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 > > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux > > /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) > > at /var/pickcity/htdocs/pickcity.cgi line 12 > > [Wed Jul 18 12:18:04 2001] pickcity.cgi: Compilation failed in require > > at /var/pickcity/htdocs/pickcity.cgi line 12. > > [Wed Jul 18 12:18:04 2001] pickcity.cgi: BEGIN failed--compilation > > aborted at /var/pickcity/htdocs/pickcity.cgi line 12. > > [root@localhost DB_File]# ls > > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > > [root@localhost DB_File]# > > >-- > > > > Anyone have any ideas as to why perl can't seem to find the file > > eventhough the system, clearly, can? > > What are the permissions on > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm? Can the owner > of the httpd process read the file? > > (darren) > > -- > Real computer scientists don't program in assembler. They don't write > in anything less portable than a number two pencil.
Re: Problem Locating DB_File.PM at startup of perl script
James McKim <[EMAIL PROTECTED]> said something to this effect on 07/18/2001: > Hi all, > > I've run into a very frustrating problem. I'm getting the old "Can't > locate loadable object for module..." error, yet the file does exist in > the @INC path. Here's some system output: > > --- > > [Wed Jul 18 12:18:04 2001] pickcity.cgi: Can't locate loadable object > for module DB_File in @INC (@INC contains: > /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux > /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) > at /var/pickcity/htdocs/pickcity.cgi line 12 > [Wed Jul 18 12:18:04 2001] pickcity.cgi: Compilation failed in require > at /var/pickcity/htdocs/pickcity.cgi line 12. > [Wed Jul 18 12:18:04 2001] pickcity.cgi: BEGIN failed--compilation > aborted at /var/pickcity/htdocs/pickcity.cgi line 12. > [root@localhost DB_File]# ls > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm > [root@localhost DB_File]# > >-- > > Anyone have any ideas as to why perl can't seem to find the file > eventhough the system, clearly, can? What are the permissions on /usr/local/lib/perl5/5.6.1/i686-linux/DB_File.pm? Can the owner of the httpd process read the file? (darren) -- Real computer scientists don't program in assembler. They don't write in anything less portable than a number two pencil.