postgresql 8.4 install failed on windows xp chinese PRC

Поиск
Список
Период
Сортировка
Искать

postgresql 8.4 install failed on windows xp chinese PRC

От:
刘鑫 <march.liu@gmail.com>
Дата:
system : windows xp Chinese simple
postgres : postgresql-8.4.0-1-windows.exe

installl processing and errors:

install failed by one click installer, then I run initdb.

F:\PostgreSQL\8.4\bin>initdb -U postgres --encoding=utf8 --locale=utf8 --lc-coll
ate='missing' F:\PostgresSQL\8.4\data
initdb: invalid locale name "utf8"
initdb: invalid locale name "'missing'"
initdb: invalid locale name "utf8"
initdb: invalid locale name "utf8"
initdb: invalid locale name "utf8"
initdb: invalid locale name "utf8"
The files belonging to this database system will be owned by user "刘鑫".
This user must also own the server process.

The database cluster will be initialized with locale Chinese_People's Republic o
f China.936.
initdb: could not find suitable text search configuration for locale Chinese_Peo
ple's Republic of China.936
The default text search configuration will be set to "simple".

creating directory F:/PostgresSQL/8.4/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 32MB
creating configuration files ... ok
creating template1 database in F:/PostgresSQL/8.4/data/base/1 ... ok
initializing pg_authid ... FATAL: database locale is incompatible with operatin
g system
DETAIL: The database was initialized with LC_COLLATE "Chinese_Peoples Republic
of China.936", which is not recognized by setlocale().
HINT: Recreate the database with another locale or install the missing locale.
child process exited with exit code 1
initdb: removing data directory "F:/PostgresSQL/8.4/data"

I reinstall and set LC_COLLATE to English, Unite State. It success.

March.Liu

Re: postgresql 8.4 install failed on windows xp chinese PRC

От:
Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Дата:
??  wrote:

> system : windows xp Chinese simple
> postgres : postgresql-8.4.0-1-windows.exe
> F:\PostgreSQL\8.4\bin>initdb -U postgres --encoding=utf8 --locale=utf8

It's not a bug, just "utf8" is not a valid locale name.
Use the following instead:
$ initdb --encoding=UTF8 --locale="Chinese (Simplified)"

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Re: postgresql 8.4 install failed on windows xp chinese PRC

От:
Sachin Srivastava <sachin.srivastava@enterprisedb.com>
Дата:
On 07/02/2009 09:17 AM, 刘鑫 wrote:
> system : windows xp Chinese simple
> postgres : postgresql-8.4.0-1-windows.exe
>
> installl processing and errors:
>
> install failed by one click installer, then I run initdb.
Can you please post the error part in the install logs present in your 
system's temp directory (%TEMP%\install-postgresql.log) ?

-- 
Regards,
Sachin Srivastava
www.enterprisedb.com
FAQ