LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-24-2007, 01:17 PM   #1
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Rep: Reputation: 15
RPM not installing - mandriva


I'm trying to install the Postgresql server package "postgresql-server-8.1.9-0.1mdv2007.0".

Every time after I try to load the package, the Software Management application returns that as one of the packages that hasn't been installed, but is still available to install.

There are supposed to be release notes with this package, but clicking on that gives me a blank field, which may or may not be a symptom of my problem.

I'm running Powerpack 2007 on 32-bit using a Pentium 3 (ancient but hey, it works).

All of the other available packages for Postgresql are installed.

Any suggestions or answers will be gratefully received. Thanks!
 
Old 07-24-2007, 01:47 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I'm trying to install the Postgresql server package "postgresql-server-8.1.9-0.1mdv2007.0"."
Every time after I try to load the package, the Software Management application returns that as one of the packages that hasn't been installed, but is still available to install."

There may be problems in your rpm data base. I suggest that you drop down into the rpm command and check out your data base:

rpm -qi | sort | less

If things look strange you could try (Use caution. Have a backup, etc):

rpm --rebuilddb

see:
man rpm

---------------
Steve Stites
 
Old 07-24-2007, 01:56 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try doing,
Code:
#urpmi postgresql-server
 
Old 07-25-2007, 08:50 AM   #4
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
Attempt at rebuilding the RPM database didn't end up doing anything noticeable.

Attempt using the BASH shell returned the following:

ftp://ftp.ps.pl/mirrors/Mandrakelinu...007.0.i586.rpm
installing postgresql-server-8.1.9-0.1mdv2007.0.i586.rpm from /var/cache/urpmi/rpms
Preparing... #############################################

*******************
* Starting backup *
*******************
Cannot find postgresql service
Usage: service -[Rfshv] SERVICE ARGUMENTS
-f|--full-restart: Do a fullrestart of the service.
-R|--full-restart-all: Do a fullrestart of all services currently running.
-s|--status-all: Print a status of all services.
-d|--debug: Launch with debug.
-h|--help: This help.
Backuping configuration into /var/lib/pgsql/backups/config.8.1.9-0.1mdv2007.0.tar
Backup of configuration already exists, aborting
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
error: %pre(postgresql-server-8.1.9-0.1mdv2007.0.i586) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping postgresql-server-8.1.9-0.1mdv2007.0
----------------------------------------------------------------------
More information on package postgresql-server-8.1.9-0.1mdv2007.0.i586
----------------------------------------------------------------------


****
I'm now looking at the list of packages to see if I'm missing anything.
 
Old 07-25-2007, 11:23 AM   #5
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Quote:
Originally Posted by lordshipmayhem
Backuping configuration into /var/lib/pgsql/backups/config.8.1.9-0.1mdv2007.0.tar
Backup of configuration already exists, aborting
These two lines are significant. Since the install script was unable to store a configuration backup (file already exists) it aborted so the remaining steps failed (my best guess).

Open a terminal window as root (or su to root).

execute the following command:
Code:
konqueror
In the Konqueror window open the Settings menu, select Load View Profile > File Management

Navigate to /var/lib/pgsql/backups and delete config.8.1.9-0.1mdv2007.0.tar

Now try the urpmi command:
Code:
urpmi postgresql-server
HTH,
 
Old 07-25-2007, 11:52 AM   #6
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
Well, that was an improvement. Now I have another file found.

ftp://ftp.ps.pl/mirrors/Mandrakelinu...007.0.i586.rpm
installing postgresql-server-8.1.9-0.1mdv2007.0.i586.rpm from /var/cache/urpmi/rpms
Preparing... #############################################

*******************
* Starting backup *
*******************
Cannot find postgresql service
Usage: service -[Rfshv] SERVICE ARGUMENTS
-f|--full-restart: Do a fullrestart of the service.
-R|--full-restart-all: Do a fullrestart of all services currently running.
-s|--status-all: Print a status of all services.
-d|--debug: Launch with debug.
-h|--help: This help.
Backuping configuration into /var/lib/pgsql/backups/config.8.1.9-0.1mdv2007.0.tar
Overriding pg_hba.conf to allow local connection
Cannot find postgresql service
Usage: service -[Rfshv] SERVICE ARGUMENTS
-f|--full-restart: Do a fullrestart of the service.
-R|--full-restart-all: Do a fullrestart of all services currently running.
-s|--status-all: Print a status of all services.
-d|--debug: Launch with debug.
-h|--help: This help.
Dumping database into /var/lib/pgsql/backups/db.8.1.9-0.1mdv2007.0.gz
Database dump already exists, aborting
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
error: %pre(postgresql-server-8.1.9-0.1mdv2007.0.i586) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping postgresql-server-8.1.9-0.1mdv2007.0
----------------------------------------------------------------------
More information on package postgresql-server-8.1.9-0.1mdv2007.0.i586
----------------------------------------------------------------------


Going in and getting rid of all three files labelled "8.1.9-0.1mdv2007.0.i586" results in the following:
ftp://ftp.ps.pl/mirrors/Mandrakelinu...007.0.i586.rpm
installing postgresql-server-8.1.9-0.1mdv2007.0.i586.rpm from /var/cache/urpmi/rpms
Preparing... #############################################

*******************
* Starting backup *
*******************
Cannot find postgresql service
Usage: service -[Rfshv] SERVICE ARGUMENTS
-f|--full-restart: Do a fullrestart of the service.
-R|--full-restart-all: Do a fullrestart of all services currently running.
-s|--status-all: Print a status of all services.
-d|--debug: Launch with debug.
-h|--help: This help.
Backuping configuration into /var/lib/pgsql/backups/config.8.1.9-0.1mdv2007.0.tar
Overriding pg_hba.conf to allow local connection
Cannot find postgresql service
Usage: service -[Rfshv] SERVICE ARGUMENTS
-f|--full-restart: Do a fullrestart of the service.
-R|--full-restart-all: Do a fullrestart of all services currently running.
-s|--status-all: Print a status of all services.
-d|--debug: Launch with debug.
-h|--help: This help.
Dumping database into /var/lib/pgsql/backups/db.8.1.9-0.1mdv2007.0.gz
pg_dumpall: could not connect to database "template1": could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
error: %pre(postgresql-server-8.1.9-0.1mdv2007.0.i586) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping postgresql-server-8.1.9-0.1mdv2007.0
----------------------------------------------------------------------
More information on package postgresql-server-8.1.9-0.1mdv2007.0.i586
----------------------------------------------------------------------

So it's an improvement, but it still seems to be crapping out W/R/T finding postgresql service.

Thanks so far - I feel like I'm almost there, I just have to resolve this last piece of the puzzle and I'll be up and running.
 
Old 07-25-2007, 09:45 PM   #7
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Do you have postgresql installed on the system (is this an update/upgrade)? If so, remove the back up file(s) again, then try making sure the service is running with:
Code:
service postgresql start
Finally install the package. I'm thinking that if postgresql is installed, but not running, that may be the reason for the message:
Quote:
Cannot find postgresql service
HTH,
 
Old 07-27-2007, 01:49 PM   #8
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
Postgresql is installed, but when I try to start the service it comes back with: "Cannot find postgresql service"

At present I have installed:
- postgresql-8.1.9-0.1mdv2007.0
- postgresql-contrib-8.1.9-0.1mdv2007.0
- postgresql-docs-8.1.9-0.1mdv2007.0
- postgresql-pl-8.1.9-0.1mdv2007.0
- postgresql-plperl-8.1.9-0.1mdv2007.0
- postgresql-plpgsql-8.1.9-0.1mdv2007.0
- postgresql-plpython-8.1.9-0.1mdv2007.0
- postgresql-pltcl-8.1.9-0.1mdv2007.0
- postgresql-test-8.1.9-0.1mdv2007.0

I'm presently using Mandriva Powerpack 2007 on a Pentium III. Hey, it may be ancient, but it works. ^_^
 
Old 07-27-2007, 02:50 PM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You do not have the server package installed. This package is named as postgresql-server and you should install it using he instructions we posted earlier.
 
Old 07-27-2007, 02:57 PM   #10
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
I'd love to install the server.

The problem is every time I attempt to install it, because postgresql
service is not running (I keep getting "Cannot find postgresql service" when I try to start it within the BASH shell - and yes, I've su'd to ROOT before trying to start it), the package keeps doing a crash-and-burn.

I have had a suggestion from the GTALUG mailing list to try to do a noscript install of the server, but before I try that rather hazardous sounding technique, I'd like some more commentary on that.
 
Old 07-27-2007, 03:02 PM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
One thing I do suggest, is to configure the various main, contrib, plf and updates repos for your version of Mandriva using the instructions at easyurpmi. That may help urpmi fetch the latest packages from the Mandriva mirrors. If you have already got these setup, then update your sources by doing
Code:
urpmi.update -a
I personally would uninstall all postgresql stuff on the system, remove any config files and directories (obviously backup any important data). After that I'd do a clean install of the postgresql packages using urpmi.

Last edited by reddazz; 07-27-2007 at 03:07 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove rpm packages from Mandriva 2007 eikeland Linux - Software 2 01-27-2007 02:30 PM
RPM update will not recognize Mandriva CDs anseK Linux - Newbie 4 12-26-2005 10:03 PM
cannot register an rpm file in mandriva theoldun Linux - Software 0 11-14-2005 02:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration