postgreSQL설치후 initdb명령 실행시....

kn31232의 이미지

[root@localhost pgsql]# su - postgres -c "/usr/local/pgsql/bin/initdb -D /home/local/pgsql/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 ko_KR.eucKR.

fixing permissions on existing directory /home/local/pgsql/data... ok
creating directory /home/local/pgsql/data/base... ok
creating directory /home/local/pgsql/data/global... ok
creating directory /home/local/pgsql/data/pg_xlog... ok
creating directory /home/local/pgsql/data/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /home/local/pgsql/data/base/1... FATAL:  XX000: failed to initialize lc_messages to ""
LOCATION:  InitializeGUCOptions, guc.c:1866

initdb: failed

이런 메세지를 뿌려주고 실패 명령이 나온 후 데이터 베이스가 초기화가 되지 않습니다...

여러군데 커뮤니티를 검색해본 결과 locale쪽에 관련하여 수정을 해보라는 말만 적혀있더군요...

근데 아무리 해봐두....계속 똑같은 명령만 뿌려주고 죽어버리니..

조금 당황스럽습니다. ^^;;

혹시 이런 경우 어떻게 해결해야 하는지 아시는분 계신가요?

dsh의 이미지

-E 옵션으로 인코딩을 지정해 준다면?
해보셨나요

kn31232의 이미지

su - postgres -c "/usr/local/pgsql/bin/initdb -E UNICODE --lc-messages=ko_KR.eucKR -D /home/local/pgsql/data"

su - postgres -c "/usr/local/pgsql/bin/initdb -E UNICODE --lc-messages=C -D /home/local/pgsql/data"

su - postgres -c "/usr/local/pgsql/bin/initdb -E UNICODE --lc-messages=POSIX -D /home/local/pgsql/data"

위에 세가지 방법으로 실행 해 보았으나...모두 똑같은 결과로 나왔습니다...

Red Hat Linux release 9 (Shrike) 버젼에서 테스트 해본결과...

잘 돌아가더군요......지금 현재 테스트 하고 있는 버전은...

Red Hat Linux release 8.0 (Psyche) 입니다..

飛上