LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2013, 04:27 AM   #1
LiQu
LQ Newbie
 
Registered: May 2013
Posts: 3

Rep: Reputation: Disabled
postgresql service start error


Quote:
Originally Posted by Anisha Kaul View Post
Execute the following commands in a sequential order and post their outputs:

initdb --pgdata=/var/lib/pgsql/data
Thanks.

I have this:
PHP Code:
root@364446 [~]#  initdb --pgdata=/var/lib/pgsql/data
The program "postgres" was found by "/usr/bin/initdb"
but was not the same version as initdb.
Check your installation.
root@364446 [~]
How I can repair ?

Thanks
 
Old 05-31-2013, 04:41 AM   #2
LiQu
LQ Newbie
 
Registered: May 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
ah!, I am in centOs 6.4
 
Old 06-02-2013, 08:56 AM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
The two programs are of different version. How have you installed postgres? Does it come from your distribution's packages?
 
Old 06-02-2013, 09:32 AM   #4
LiQu
LQ Newbie
 
Registered: May 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks.

I install from cPanel ( by default 8.4 )
After install RPM of 9.2 and when I try initdb --pgdata=/var/lib/pgsql/data show this error.

The correct is the line initdb --pgdata=/var/lib/pgsql/data run withot error?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Cannot Start Postgresql Service in RHEL 6 griffey Red Hat 2 05-18-2012 07:38 AM
[SOLVED] Postgresql service does not start when boot thach.trung.ngoc Slackware 2 03-26-2012 07:00 AM
postgresql service failed to start or stop purohit.mayur Linux - Newbie 5 01-07-2010 04:36 AM
boot up error on /var/log/messages [server.ERROR] cannot start systen DBus service junust Linux - General 0 08-04-2009 05:55 AM


All times are GMT -5. The time now is 06:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration