pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Iuri Sampaio <iuri.sampaio@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: psql command
Date: Thu, 7 Sep 2006 03:00:42 -0300
Message-ID: <000801c6d242$f5238ca0$6401a8c0@LAPTOP> (raw)

I forgot to contextualize,

 

env | grep PATH :

 

oacsbr@desktop:~$ env | grep PATH

PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

 

 

Funny thing, speaking about full paths... there is no psql command in
"/usr/bin/"

 

oacsbr@desktop:~$ ls -l /usr/bin/psql

ls: /usr/bin/psql: No such file or directory

 

 

I installed postgresql 8.1 from tarball-source and followed those steps:

http://openacs.org/doc/current/postgres.html

I didn't use apt-get install

 

 

  _____  

From: Iuri Sampaio [mailto:iuri.sampaio@gmail.com] 
Sent: Thursday, September 07, 2006 2:57 AM
To: 'pgsql-admin@postgresql.org'
Subject: psql command

 

The postgres commands work fine to postgres user but it doesn't work to a
random user account

 

I already created the user on postgres

desktop:~# su - postgres

postgres@desktop:~$ createuser -a -d oacsbr

 

and set on .bashrc 

LD_LIBRARY_PATH=:/usr/local/pgsql/lib:/usr/local/pgsql/lib

PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/pgsql/b
in:/usr/local/pgsql/bin

 

 

But somehow I can't run any commands such as 

oacsbr@desktop:~$ createdb -E UNICODE mytestdb

-su: createdb: command not found

oacsbr@desktop:~$ psql -l

-su: psql: command not found

oacsbr@desktop:~$ psql -l mytestdb.dmp mytestdb

-su: psql: command not found

 

 

Does anyone knows what I've missed?

 

iuri

 

view thread (4+ messages)  latest in thread

Message-ID: <000801c6d242$f5238ca0$6401a8c0@LAPTOP>
Permalink:  ../000801c6d242$f5238ca0$6401a8c0@LAPTOP/
Also on:    postgresql.org/message-id/000801c6d242$f5238ca0$6401a8c0@LAPTOP

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: iuri.sampaio@gmail.com
  Subject: Re: psql command
  In-Reply-To: <000801c6d242$f5238ca0$6401a8c0@LAPTOP>
  References: <000801c6d242$f5238ca0$6401a8c0@LAPTOP>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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