pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Could not find your PostgreSQL installation in /var/lib/pgsql
4+ messages / 4 participants
[nested] [flat]

* Could not find your PostgreSQL installation in /var/lib/pgsql
@ 2012-04-05 15:14 Terrance Chen <naturalchen@yahoo.com>
  2012-04-06 01:11 ` Re: Could not find your PostgreSQL installation in /var/lib/pgsql Scott Mead <scottm@openscg.com>
  2012-04-06 08:01 ` Re: Could not find your PostgreSQL installation in /var/lib/pgsql Devrim GÜNDÜZ <devrim@gunduz.org>
  0 siblings, 2 replies; 4+ messages in thread

From: Terrance Chen @ 2012-04-05 15:14 UTC (permalink / raw)
  To: pgsql-bugs

system=fedora15 
software env=all  software in DVD are completely installed(include pgsql psql) and some thing like pppoe 
postgresql are install with fedora by default option, 
/etc/passwd/:            postgres  PostgreSQL Server:/var/lib/pgsql:/bin/bash

operations:
su - postgres
initdb  -D /var/lib/pgsql/data -E UTF-8 
pg_ctl -D /var/lib/pgsql/data -l logfile start
pg_ctl status      {terminal  return       pg_ctl: (PID: 3052)/usr/bin/postgres "-D" "/var/lib/pgsql/data"}
createdb DatabaseName
psql DatabaseName         
su - root
cd /home/download/pgadmin3-1.14.0
./configure --with-pgsql=/var/lib/pgsql

{ Could not find your PostgreSQL installation in /var/lib/pgsql }

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Could not find your PostgreSQL installation in /var/lib/pgsql
  2012-04-05 15:14 Could not find your PostgreSQL installation in /var/lib/pgsql Terrance Chen <naturalchen@yahoo.com>
@ 2012-04-06 01:11 ` Scott Mead <scottm@openscg.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Scott Mead @ 2012-04-06 01:11 UTC (permalink / raw)
  To: Terrance Chen <naturalchen@yahoo.com>; +Cc: pgsql-bugs

On Thu, Apr 5, 2012 at 8:14 AM, Terrance Chen <naturalchen@yahoo.com> wrote:

> system=fedora15
> software env=all  software in DVD are completely installed(include pgsql
> psql) and some thing like pppoe
> postgresql are install with fedora by default option,
> /etc/passwd/:            postgres  PostgreSQL
> Server:/var/lib/pgsql:/bin/bash
>
> operations:
> su - postgres
> initdb  -D /var/lib/pgsql/data -E UTF-8
> pg_ctl -D /var/lib/pgsql/data -l logfile start
> pg_ctl status      {terminal  return       pg_ctl: (PID: 3052)/usr/bin/postgres
> "-D" "/var/lib/pgsql/data"}
> createdb DatabaseName
> psql DatabaseName
> su - root
> cd /home/download/pgadmin3-1.14.0
> ./configure --with-pgsql=/var/lib/pgsql
>

/var/lib/pgsql is your data directory.  --with-pgsql is looking for
binaries.

try ./configure --with-pgsql=/usr/
or
./configure --with-pgsql=/usr/bin/

--Scott



>
> { Could not find your PostgreSQL installation in /var/lib/pgsql }
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Could not find your PostgreSQL installation in /var/lib/pgsql
  2012-04-05 15:14 Could not find your PostgreSQL installation in /var/lib/pgsql Terrance Chen <naturalchen@yahoo.com>
@ 2012-04-06 08:01 ` Devrim GÜNDÜZ <devrim@gunduz.org>
  1 sibling, 0 replies; 4+ messages in thread

From: Devrim GÜNDÜZ @ 2012-04-06 08:01 UTC (permalink / raw)
  To: Terrance Chen <naturalchen@yahoo.com>; +Cc: pgsql-bugs

On Thu, 2012-04-05 at 08:14 -0700, Terrance Chen wrote:
> cd /home/download/pgadmin3-1.14.0
> ./configure --with-pgsql=/var/lib/pgsql
> 
> { Could not find your PostgreSQL installation in /var/lib/pgsql } 

This is not a bug -- you need to specify PostgreSQL *installation*
directory, which is /usr/bin -- not data directory.

Regards,
-- 
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz

Attachments:

  signature.asc (application/pgp-signature, 197B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Could not find your PostgreSQL installation in /var/lib/pgsql
@ 2012-04-05 23:19 iihero <iihero@qq.com>
  0 siblings, 0 replies; 4+ messages in thread

From: iihero @ 2012-04-05 23:19 UTC (permalink / raw)
  To: Terrance Chen <naturalchen@yahoo.com>; +Cc: pgsql-bugs

You've used : su - root
Before this, you possibly need populate some environment variables from your postgre user.


------------------
----------------------------------------------------------
iihero(Xiong He)  http://www.sql9.com
----------------------------------------------------------
 


------------------ Original ------------------
From:  "Terrance Chen"<naturalchen@yahoo.com>;
Date:  Thu, Apr 5, 2012 11:14 PM
To:  "pgsql-bugs@postgresql.org"<pgsql-bugs@postgresql.org>; 

Subject:  [BUGS] Could not find your PostgreSQL installation in /var/lib/pgsql

 
system=fedora15 
software env=all  software in DVD are completely installed(include pgsql psql) and some thing like pppoe 
postgresql are install with fedora by default option, 
/etc/passwd/:            postgres  PostgreSQL Server:/var/lib/pgsql:/bin/bash


operations:
su - postgres
initdb  -D /var/lib/pgsql/data -E UTF-8 
pg_ctl -D /var/lib/pgsql/data -l logfile start
pg_ctl status      {terminal  return       pg_ctl: (PID: 3052)/usr/bin/postgres "-D" "/var/lib/pgsql/data"}
createdb DatabaseName
psql DatabaseName         
su - root
cd /home/download/pgadmin3-1.14.0

./configure --with-pgsql=/var/lib/pgsql

{ Could not find your PostgreSQL installation in /var/lib/pgsql }

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2012-04-06 08:01 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-04-05 15:14 Could not find your PostgreSQL installation in /var/lib/pgsql Terrance Chen <naturalchen@yahoo.com>
2012-04-06 01:11 ` Scott Mead <scottm@openscg.com>
2012-04-06 08:01 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2012-04-05 23:19 Re: Could not find your PostgreSQL installation in /var/lib/pgsql iihero <iihero@qq.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox