Re: initdb fail when setup Postgresql-7.4.5 with Cygwin

Поиск
Список
Период
Сортировка
От Reini Urban
Тема Re: initdb fail when setup Postgresql-7.4.5 with Cygwin
Дата
Msg-id 41DC6237.6000709@x-ray.at
обсуждение исходный текст
Ответ на initdb fail when setup Postgresql-7.4.5 with Cygwin on Windows 2000 (p)  ("Tong Shen" <shntong@hotmail.com>)
Список pgsql-cygwin
Tong Shen schrieb:
> I encounter a initial database problem.
>
> The procedure I did is as following:
> 1. Download and setup Cygwin
> 2. Download the Cygipc-2.03-2.tar.bz2  file and put it under

why don't you read the docs before installing the cygipc package?

1. less /usr/share/doc/Cygwin/postgresql*
2. postgresql-7.4.5 uses cygserver and not cygipc anymore.
3. cygwin packages are installed via http://cygwin.com/setup.exe

if you have to use the src package, remove cygipc und rebuild or
remove cygserver and rebuild.
when the postgresql configure sees cygipc it will use that.

or (preferred) just install the postgresql, cygwin and python binary
packages.

> D:\Cygwin\.  Then I use "tar jxvf cygipc-2.03.2.tar.bz2 " to unpack the
> file. It seems the unpack automaticly installed cygipc
> 3. Download the postgresql-7.4.5.tar and use winzip to unpack it into
> D:\cygwin\usr\src\
> 4. I also download python-2.4 into D:\cygwin\usr\src
> 5. I install python first
> 6. Then I install the postgresql-7.4.5 with ./configure --with-python
> ------> make ------>make install
> 7. I issue the command "ipc-daemon2 &"
> 8. I then try to initialize the database with following command:
> "/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data"
> Step 8 give me the following error:
> The files belonging to this database system will be owned by user
> "TONGTONG".
> This user must also own the server process.
>
> The database cluster will be initialized with locale C.
>
> creating directory /usr/local/pgsql/data... ok
> creating directory /usr/local pgsql/data/base... ok
> creating directory /usr/local/pgsql/data/global... ok
> creating directory /usr/local/pgsql/data/pg_xlog... ok
> creating dirctory /usr/local/pgsql/data/pg_clog... ok
> selecting default max_connections... 10
> selecting default shared_buffers... 50
> creating configuration files... ok
> creating configuration files... ok
> creating template1 database in /usr/localpgsql/data/base/1... FATAL:
> semctl<89, 16, SETVAL, 536> failed: Invalid argument
>
> initdb: failed
> initdb: removing data directory "/usr/local/pgsql/data"
>
> I am running the cygwin on windows 2000
> Could anyone tell me what was wrong with the setting up procedure?
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

В списке pgsql-cygwin по дате отправления:

Предыдущее
От: "Tong Shen"
Дата:
Сообщение: initdb fail when setup Postgresql-7.4.5 with Cygwin on Windows 2000 (p)
Следующее
От: Randy Yates
Дата:
Сообщение: could not create shared memory segment: Function not implemented