LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-06-2004, 04:48 AM   #1
vickr1z
Member
 
Registered: Mar 2004
Location: manila, philippines
Distribution: RH 7.3
Posts: 63

Rep: Reputation: 15
command problem


good day to all. i have running slackware 10 and install PostgresQL+PHP+Apache.
after the all configuration was taken. when i finally using the Postgres data serve by typing.

Code:
postgres@tp /var/pgsql/data$ createdb Addresses
i got this message:
Code:
-sh: createdb: command not found
what means by that?? i have all installed the three source and configured/initialized all the neccessary files such as $PGDATA, initdb, ldconfig.. but still im obtaining this message..

what am i missing pls help..
 
Old 09-06-2004, 05:01 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
That most likely means that you installed Postgres
but didn't take any measures to make it really known
to the system :)

E.g. by adding something like
/etc/profile.d/postgres.sh
Code:
#!/bin/sh
export PG_HOME=/usr/local/pgsql
export PATH=${PATH}:${PG_HOME}/bin
export MANPATH=${MANPATH}:${PG_HOME}/bin
export PGDATA=${PG_HOME}/data
chmod a+x /etc/profile.d/postgres.sh

...


Cheers,
Tink
 
Old 09-06-2004, 05:31 AM   #3
vickr1z
Member
 
Registered: Mar 2004
Location: manila, philippines
Distribution: RH 7.3
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
That most likely means that you installed Postgres
but didn't take any measures to make it really known
to the system
E.g. by adding something like
/etc/profile.d/postgres.sh
does it matter whos owner of the postgres.sh???

im running slackware and some of my file are different. i got this on /etc/rc.d

rc.M: which carry all the initialization upon boot time.
rc.local: script where i put apache and postgresQL startup.

can i put the code you give me to rc.postgres and put it inside rc.M??

thanks for the help and for the reply..
 
Old 09-06-2004, 01:43 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Should work, too ... but bear in mind that
rc.M for instance may change with the next
update, and you'll have to "do your thing"
again ... /etc/profile.d is yours ;) ... I put
all my product-specific stuff in there, and
I use slack, too.



Cheers,
Tink
 
  


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
MAKE command problem Spurred_On Linux - Newbie 2 05-12-2005 07:50 PM
Problem using command fdisk -l ? AkshatBhandari Linux - Newbie 2 03-17-2005 01:36 PM
Problem with tar command... Durtdawber Linux - Newbie 5 12-28-2004 01:25 PM
problem with tar command tiang_ono Linux - Newbie 3 06-17-2004 03:36 PM
problem with javac command mekasrinu Programming 2 06-12-2001 08:45 PM


All times are GMT -5. The time now is 10:53 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