Anybody got Postgress Binaries working on NT ?

Started by Richard Moonalmost 26 years ago3 messagesgeneral
Jump to latest
#1Richard Moon
richard@dcs.co.uk

I've got cygwin b20 installed under the default location
(C:\cygnus\cygwin-b20). Cygwin appears to be working (except that it keeps
telling me I need to set up \tmp. I've created c:\tmp and
c:\cygnus\cygwin-b20\tmp but it still complains) and I've got the 6.5.3
binaries.

I've put the binaries in c:\usr\local\pgsql then setting up cygwin.bat as
@ECHO OFF
SET MAKE_MODE=UNIX
SET PATH=c:\cygnus\CYGWIN~1\H-I586~1\bin;%PATH%
# the above lines were already in cygwin.bat
SET PGLIB=/usr/local/pgsql/lib
SET PGDATA=/usr/local/pgsql/data
SET USER=postgres
SET PATH=c:\\usr\\local\\pgsql\\bin;%PATH%
bash

I've set up an NT user 'postgres' with no special privileges - I run
cygwin.bat and then try
initdb

but it says
bash: /mnt/usr/local/pgsql/bin/initdb: no such file or directory

I'm confused as c:/usr/local/pgsql/bin/initdb definitely exists.

I've cd'ing to /mnt/usr/local/pgsql/bin and typing

./initdb

but I get the same message

I suspect I've got Unix to NT path problems but I've no idea where the
problem lies.

Any help would be really gratefully received.

Thanks

Richard

Richard Moon
richard@dcs.co.uk

#2Kees Kuip
keeskuip@technologist.com
In reply to: Richard Moon (#1)
Re: Anybody got Postgress Binaries working on NT ?

Hello,

initdb is a shell-script.
The first line in the script declares the shell it will be using to
execute in.
It looks like this :
#!/bin/sh

Your problem is that /bin/sh doesn't excist !
You'll have to mount the cygwin-executable-path to /bin

Kees.

#3Horák Daniel
horak@sit.plzen-city.cz
In reply to: Kees Kuip (#2)
RE: Anybody got Postgress Binaries working on NT ?

initdb is a shell-script.
The first line in the script declares the shell it will be using to
execute in.
It looks like this :
#!/bin/sh

Your problem is that /bin/sh doesn't excist !
You'll have to mount the cygwin-executable-path to /bin

go to the directory where cygwin binaries are located and run:
cp bash.exe /bin/sh.exe

Dan