Got Customers?  Start selling over 75,000 computer and network related items in minutes

Home  

 


  Create an account

Search


[x]  
 
 [x]
Categories Menu
· All Categories
· Commands
· Distro News
· General
· Link of the Week
· Linux Jobs
· Security
· Software
· Tips

 
Navigation
 
User Info
Welcome, Anonymous

Username:
Password:

(Register)

Membership:
Latest: hiobgiou
New Today: 0
New Yesterday: 0
Overall: 225

People Online:
Visitors: 3
Members: 0
Total: 3

 
hacker Beware
You have been warned!
We have caught 1459 shameful hackers.

NukeSentinel(tm) 2.5.14

 
Hot Downloads
 
  
Maysville Linux Users Group (MLUG) - Linux Users Helping Linux Users: Forums

MLUG :: View topic - Postgresql-7.3.4 for Redhat 7.3
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Postgresql-7.3.4 for Redhat 7.3

 
Post new topic   Reply to topic    MLUG Forum Index -> Useful Online Links
View previous topic :: View next topic  
Author Message
tSp
Site Admin
Site Admin


Joined: Sep 10, 2003
Posts: 44
Location: Maysville, KY

PostPosted: Tue Jul 27, 2004 1:24 am    Post subject: Postgresql-7.3.4 for Redhat 7.3 Reply with quote

I recently ran into a problem in that I wanted to duplicate a postgresql database on two different servers (one at home and one at the office)....those of you following my posts will understand that it might have something to do with data and backups...lol

A problem I ran into was that the data I wanted to duplicate was currently running under postgresql-7.3.4 but the server I wanted to install it on was running a much older version. I have often used pg_dumpall to upgrade servers (to a newer version of postgresql) but have never had to go in the opposite direction (downgrade). I found this does not work very well.....

Just for your reference (and mine) for others wishing to do this, here is a link with the downloadable postgresql-7.3.4 for Redhat Linux 7.3

http://www2.tw.freebsd.org/Database/postgresql/binary/v7.3.4/RPMS/redhat-7.3/

Another problem that I ran into doing this upgrade was that the software I was using (SQL-Ledger) requires a couple of perl modules to work propertly, specifically DBD::Pg and DBI. I found that the server kept getting an error "Premature end of script" or server error 500 after the data was migrated. The server logs showed (edited to remove IP addresses):

[Mon Jul 26 13:09:21 2004] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Mon Jul 26 13:10:18 2004] [error] [client ] Premature end of script headers: login.pl, referer: sql-ledger/login.pl
[Mon Jul 26 13:10:18 2004] [error] [client] install_driver(Pg) failed: Can't load '/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/Pg/Pg.so' for module DBD::Pg: libpq.so.2: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229., referer: sql-ledger/login.pl
[Mon Jul 26 13:10:18 2004] [error] [client ] at (eval 6) line 3, referer: sql-ledger/login.pl
[Mon Jul 26 13:10:18 2004] [error] [client ] Compilation failed in require at (eval 6) line 3., referer: sql-ledger/login.pl
[Mon Jul 26 13:10:18 2004] [error] [client ] Perhaps a required shared library or dll isn't installed where expected, referer: sql-ledger/login.pl
[Mon Jul 26 13:10:18 2004] [error] [client ] at SL/User.pm line 118, referer: sql-ledger/login.pl
[Mon Jul 26 13:10:18 2004] [error] [client ] Compilation failed in require at sql-ledger/login.pl line 90., referer: sql-ledger/login.pl


even though perl and the perl-DBD-Pg and perl-DBI rpm files were current - at least according to apt-get.

What I did to resolve this problem was install the newest versions from source - using CPAN. The way this is done, is like so (requires perl-CPAN rpm and the postgresql-devel rpm to be installed and commands run as root in a terminal). It will ask where pg_config resides and it should be at /usr/bin/pg_config:

perl -MCPAN -e "install DBI"
perl -MCPAN -e "install DBD::Pg"

The above commands must be run in that order because the newest verion of DBI is required by DBD::Pg

After the above was done....all was fixed.
_________________
tSp
Back to top
View user's profile Send private message Visit poster's website
ewiget
Site Admin
Site Admin


Joined: Aug 13, 2004
Posts: 335
Location: Maysville, KY

PostPosted: Thu Dec 30, 2004 2:56 am    Post subject: Reply with quote

A lot of people find this message from searching at google for sql-ledger errors, it usually turns up in the first page at google.

There is another reason you can get the premature end of script headers error below. I am simply adding this for those who might find this web site through a search engine.

Check to make sure your postgresql.conf file has tcpip_socket = true (which by default it does not).

You should be able to find the location of this file by using the command as root user:
locate postgresql.conf
_________________
Ed Wiget
RHP Studios
Keeping Your Data Safe!
606-759-1175
http://www.rhpstudios.com
http://www.xtremewebhosts.com
http://www.edwiget.name
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=162711
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    MLUG Forum Index -> Useful Online Links All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group
Forums ©

 
All content Copyright 2000 - 2008, Maysville Linux Users Group unless otherwise credited.
All Rights Reserved!
The opinions expressed by visitors to this web site are their own and not necessarily the opinions of the MLUG!


Web site powered by PHP-Nuke Web site powered by PHP-Nuke-NIP-76.0

You can syndicate our news using the file backend.php or ultramode.txt