LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-03-2008, 02:20 PM   #1
ggarrette
LQ Newbie
 
Registered: Jun 2008
Posts: 14

Rep: Reputation: 0
problems with postgres; installing OpenNMS on 10.3


I am working off the following:
http://www.howtoforge.com/opennms_network_management

I'm at the point where I am supposed to initialize postgres database

$bin/initdb -D data/

Output:
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.


When I log in as su postgres and run the command I get:
initdb -D data/
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.

creating directory data ... initdb: could not create directory "data": Permission denied


Is the best way to assign user postgres the server process? If so where is it?

Thanks!
 
Old 07-03-2008, 09:11 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What distro are you using? The first best thing to do is stick with their
methods of installing postgres (I'm saying that w/o having looked at the
URI you presented).


Cheers,
Tink
 
Old 07-03-2008, 10:32 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
OK ... so I went to that site and had a look. That thing is quite incomplete, and
makes strange assumptions/suggestions about postgres. Would you like to get
advice on how to make that how-to work, or how to do things properly?



Cheers,
Tink
 
Old 07-07-2008, 06:38 AM   #4
ggarrette
LQ Newbie
 
Registered: Jun 2008
Posts: 14

Original Poster
Rep: Reputation: 0
I am using OpenSuse 10.3 and installing 1.2.9-1

I would like for things to work properly.
 
Old 07-07-2008, 06:39 AM   #5
ggarrette
LQ Newbie
 
Registered: Jun 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Oh and postgres 8.2.7
 
Old 07-07-2008, 01:13 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'd have to go dig for the fixes/changes between Pg 8.2.6 and 8.2.7
but chances are you'd be better of using the rpm that OpenSuSE
provides, or get the source RPM and use that to build your own
8.2.7 package.

As for that How-To: don't worry too much about the locations they
suggest for the database files (both the executables and libs AND
the actual data) because for the libs - OpenNMS will find them via
ld.so.cache and doesn't need to know anything about where the files
are because only the RDBMS needs to touch them in the first place.

For things to work properly you'd need to tell us more about
your hardware, what physical disk layout you'll be using, and
what the expected work-load on the machine will be.



Cheers,
Tink

Last edited by Tinkster; 07-07-2008 at 01:14 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
Trouble installing opennms on Fedora core 3 Linuxdefect Linux - Newbie 4 05-12-2007 02:24 AM
problem installing opennms in fedoracore4 mamc Linux - Networking 6 03-31-2006 11:02 PM
Installing opennms on Debian Sarge odd-geir Linux - Networking 1 10-16-2005 06:48 PM
Installing Postgres 7.3 Hiper1 Linux - Software 0 12-01-2004 01:38 AM
postgres datestyle problems... Xing Linux - Software 0 07-12-2004 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 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
Open Source Consulting | Domain Registration