안녕하세요..
postgresql를 nt에 설치하기 위해서
여기에 있는 문서와 pgsql에 있는 문서를 읽어 보고
그대로 설치했는데 initdb를 작동하니까.
: not found
/usr/local/pgsql/bin/initdb : 34 : syntax error : bad fd number
라는 말만 나오고 전혀 진행이 안되네요...
로그인계정은 administrator가 아닌 administrator그룹의 멤버로 로그인해서
설치했습니다.
혹시 configure 나 initdb옵션을 안 줘서그런가 해봤지만 그건 아닌것 같고
자신이 없네요..
여러분들의 조언을 부탁드립니다.
아래의 것은 설치할 때 따라 했는 순서 입니다.
cd c:/Unix/Root
bunzip2 /dc cygwin/b20/local.tar.bz2 | tar /xvf /
cd /local/bin
sh check_cygwin_setup.sh
mount c:/Unix/Root/cygwin/b20/H/i586/cygwin32/i586/cygwin32/bin /bin
cd c:/Unix/Root/cygwin/b20/H/i586/cygwin32/i586/cygwin32
mkdir libexec share man etc sbin info
cp /R /local/bin .
cp /R /local/libexec .
cp /R /local/share .
cp /R /local/man .
cp /R /local/etc .
cp /R /local/sbin .
cp /R /local/info .
cp /R /local/include .
cd /
bzip2 /dc cygwin32_ipc/1.03/bin/patched.tar.bz2 | tar /xvf /
cd cygwin32_ipc/1.03
mkdir /p c:/usr/local/bin
mkdir /p c:/usr/local/include
mkdir /p c:/usr/local/lib
mkdir /p c:/usr/local/include/sys
cp /cygwin32_ipc/1.03/bin/* c:/usr/local/bin
cp /cygwin32_ipc/1.03/include/sys/* c:/usr/local/include/sys
cp /cygwin32_ipc/1.03/lib/* c:/usr/local/lib
cp c:/usr/local/bin/* /bin
cp c:/Unix/Root/cygwin/b20/H/i586/cygwin32/bin/* /bin
mount c:/usr/local/bin /usr/local/bin
mount c:/usr/local/include /usr/local/include
mount c:/usr/local/lib /usr/local/lib
cp /local/lib/* /usr/local/lib
mkdir /p c:/Postgres/Source
mkdir /p c:/Postgres/Binary
mkdir c:/Postgres/Binary/pgsql
mkdir /p /usr/src/pgsql
mkdir /p /usr/local/pgsql
cp /postgresql/7.0.2.tar.gz c:/Postgres/Source/
cd c:/Postgres/Source/
tar /zxvf postgresql/7.0.2.tar.gz
mv postgresql/7.0.2 pgsql
mount /b c:/Postgres/Binary/pgsql /usr/local/pgsql
mount c:/Postgres/Source/pgsql /usr/src/pgsql
mount c:/Unix/Root/cygwin/b20/share /sw/cygwin/b20/share
mkdir /p /usr/local/pgsql/bin
mkdir /p /usr/local/pgsql/include
mkdir /p /usr/local/pgsql/lib
mkdir /p /usr/local/pgsql/data
cd /usr/src/pgsql/src/win32
cp un.h c:/Unix/Root/cygwin/b20/H/i586/cygwin32/i586/cygwin32/include/sys
cp endian.h c:/Unix/Root/cygwin/b20/H/i586/cygwin32/i586/cygwin32/include
cp tcp.h c:/Unix/Root/cygwin/b20/H/i586/cygwin32/i586/cygwin32/include/netinet
ln /s /usr/local/lib /usr/src/pgsql/src/backend/libpostgres.a
cd /usr/src/pgsql/src
./configure
make > make.txt 2>&1
make install > make.install.txt 2>&1
cp /usr/local/pgsql/lib/pq.dll /usr/local/pgsql/bin
.bashrc 파일 생성해서
/에 설치하고
source /.bashrc
initdb
|