Restore from a dead machine.

Started by jtpalmost 25 years ago7 messagesgeneral
Jump to latest
#1jtp
john@akadine.com

Hello there,
I have a FreeBSD machine that died earlier this week and i have been
attempting to restore it (or rather it's contents). Postgres has caused
somewhat of a problem in this area.

I was running 7.0.1 and decided to upgrade to 7.0.3 since i have to
reinstall it anyways. The install has gone fine and i can restore the old
database back into the new postgres install without any problems.

But when i try to run any of the perl scripts designed for the database
I'm getting the following error:

Can't locate Pg.pm in @INC (@INC contains: /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at ./top25.pl line 2.

Line 2 of the specific program reads: Use Pg;

Nothing seemed out of the ordinary during the config/make/install process,
and the only thing i did non standard was to run the config as:
./configure --with-perl --with-odbc.

So can anyone tell me why my perl modules don't like me? Or more
importantly how to get them to play friendly.

If it makes a difference i have a backup of the old (7.0.1) install and a
bunch of other directories under usr. I can locate the Pg.pm and DBI.pm
in what would have been /usr/local/lib/perl5/site_perl/5.005/i386-freebsd.

Thanks in advance.
And apologies for typos / sticky keys.

.jtp
John T Porvaznik
Person type person
Akadine Press Inc.

#2Alex Howansky
alex@wankwood.com
In reply to: jtp (#1)
Re: Restore from a dead machine.

Can't locate Pg.pm in @INC (@INC contains: /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at ./top25.pl line 2.

Line 2 of the specific program reads: Use Pg;

Make sure that the user running the script has read perms on the Pg.pm file.

--
Alex Howansky
Wankwood Associates
http://www.wankwood.com/

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: jtp (#1)
Re: Restore from a dead machine.

User JOHN <john@akadine.com> writes:

But when i try to run any of the perl scripts designed for the database
I'm getting the following error:

Can't locate Pg.pm in @INC (@INC contains: /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at ./top25.pl line 2.

Perhaps what it's really failing to find is libpq.so. Are you sure your
dynamic loader's search path will find libpq?

regards, tom lane

#4jtp
john@akadine.com
In reply to: Tom Lane (#3)
Re: Restore from a dead machine.

On Wed, 16 May 2001, Tom Lane wrote:

User JOHN <john@akadine.com> writes:

But when i try to run any of the perl scripts designed for the database
I'm getting the following error:

Can't locate Pg.pm in @INC (@INC contains: /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at ./top25.pl line 2.

Perhaps what it's really failing to find is libpq.so. Are you sure your
dynamic loader's search path will find libpq?

regards, tom lane

I was having trouble with libraries prior to this perl issue. I've since
fixed this issue (the libpq.so) but the Perl issue remains.
I've looked in all the directories implicated and none of them hold Pg.pm.

#5John Burski
John.Burski@911ep.com
In reply to: jtp (#4)
Re: Restore from a dead machine.

I've seen this message before - it appears when, like you indicated, the
specified module can't be found in any of the directories specified in the Perl
@INC array.

If you can locate the Pg.pm module on your system, copy it to one of the
directories specified (a symbolic link might work, too, but I've not tried
that).

Another option might be to download and install the latest Pg module from CPAN.

Best Regards,

User JOHN wrote:

On Wed, 16 May 2001, Tom Lane wrote:

User JOHN <john@akadine.com> writes:

But when i try to run any of the perl scripts designed for the database
I'm getting the following error:

Can't locate Pg.pm in @INC (@INC contains: /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at ./top25.pl line 2.

Perhaps what it's really failing to find is libpq.so. Are you sure your
dynamic loader's search path will find libpq?

regards, tom lane

I was having trouble with libraries prior to this perl issue. I've since
fixed this issue (the libpq.so) but the Perl issue remains.
I've looked in all the directories implicated and none of them hold Pg.pm.

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

--
John Burski
Data Processing Manager
911EP
First in LEDs... The solid state warning light leader.
1-800-863-6911

#6tony
tony@animaproductions.com
In reply to: John Burski (#5)
Javascript in JSP

Hello,

I am having some problems with javascript not executing in a JSP. The
JSP sends form data to a database but clicking on the "submit" button
does not run the javascript form content validation code.

Any clues, additional javascript to place behind the submit button
etc.etc.

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html

#7jtp
john@akadine.com
In reply to: John Burski (#5)
Re: Restore from a dead machine.

Thanks all for the help. I've got it working. I remade the perl module
and found that there were some directories/files it wanted to write to
that it couldn't. So i allowed those permissions and remade install and
everything worked swell.

thanks for the help.
.jtp