Re: Install problems for postgresql-8.4.1
От | Mark H. Nichols |
---|---|
Тема | Re: Install problems for postgresql-8.4.1 |
Дата | |
Msg-id | A2E2324F-EAB1-473A-B0A6-C084FA975DD8@markhnichols.com обсуждение исходный текст |
Ответ на | Install problems for postgresql-8.4.1 (Don Fox <donfox1@mac.com>) |
Список | pgsql-novice |
Don,
You say you are using 103, but in the statements you copied into your email you used 102. It shouldn't matter which you used, as long as you were consistent throughout.
What directory were you in when you ran the pg_ctl? If you weren't in /usr/local/pgsql you would get a permissions error trying to create the the logfile.
I have no idea what is causing this error.
I just ran through the steps I captured on my blog again, on a new machine that had never had PostgreSQL installed before. I was able to complete everything with no problems. In doing so I discovered a couple formatting errors on my blog that prevented all the step details from appearing. I've corrected the formatting and now all the details for each steps appears completely.
I also added a link at the bottom of the posting for pgAdmin, a GUI tool for administering PostgreSQL databases. You can find the download here: http://www.pgadmin.org/.
I wonder if installing that tool would allow you to create databases and get your installation working.
On Nov 1, 2009, at 11:18 AM, Don Fox wrote:
I'm using 103sudo dseditgroup -o create -i 102 -r "PostgreSQL Users" postgresShouldn't the following result in a postgres file under /Users?It doesn't!sudo dscl . -create /Users/postgressudo dscl . -create /Users/postgres UniqueID 102sudo dscl . -create /Users/postgres UserShell /bin/bashsudo dscl . -create /Users/postgres RealName "Postgres Administrator"sudo dscl . -create /Users/postgres NFSHomeDirectory /usr/local/pgsqlsudo dscl . -create /Users/postgres PrimaryGroupID 102sudo dscl . -create /Users/postgres Password postgressudo chown -R postgres:postgres /usr/local/pgsql
bash-3.2$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile.log startserver startingbash-3.2$ sh: logfile.log: Permission denied
However!bash-3.2$ createdb testdbBus error
mark
В списке pgsql-novice по дате отправления: