Обсуждение: cygpath not found with standard install?
Dear folks, I have followed the standard instructions for building postgresql. I include the full output below. The problem stems from cygpath not being available to the make environment (see below at bottom). It also seems that make cannot find make? I don't get this because it is on the standard path set up of cygwin and is executable from the postgresql directory the make runs from? Once I get past this I would like to know how to package up postgresql with a minimal set of support files in the way of cygwin1.dll. I hope to use it with Apache Turbine (where I am currently using MySQL). I did read about this ages ago but am not sure where? I have no name!@ROAMWARE-2EG62K /usr/src/postgresql-7.1.2 $ ./configure --with-java loading cache ./config.cache checking host system type... i686-pc-cygwin checking which template to use... win checking whether to build with locale support... no checking whether to build with recode support... no checking whether to build with multibyte character support... no checking whether to build with Unicode conversion support... no checking for default port number... 5432 checking for default soft limit on number of connections... 32 checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes using CFLAGS=-O2 checking whether the C compiler (gcc -O2 ) works... yes checking whether the C compiler (gcc -O2 ) is a cross-compiler... no checking for Cygwin environment... (cached) yes checking for mingw32 environment... (cached) no checking for executable suffix... (cached) .exe checking how to run the C preprocessor... (cached) gcc -E checking whether gcc needs -traditional... (cached) no checking whether to build with Tcl... no checking whether to build with Tk... no checking whether to build Perl modules... no checking whether to build Python modules... no checking whether to build Java/JDBC tools... yes checking for ant... (cached) /cygdrive/c/jakartatools/jakarta-ant-1.3/bin/ant checking whether to build the ODBC driver... no checking whether to build C++ modules... no using CPPFLAGS= -I/usr/local/include using LDFLAGS= -L/usr/local/lib checking for mawk... (cached) gawk checking for flex... (cached) /usr/bin/flex checking whether ln -s works... (cached) yes checking for ld used by GCC... (cached) /usr/i686-pc-cygwin/bin/ld.exe checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... (cached) ye s checking for ranlib... (cached) ranlib checking for lorder... no checking for tar... (cached) /usr/bin/tar checking for perl... (cached) perl checking for bison... (cached) bison -y checking for readline... (cached) yes (-lreadline) checking for library containing using_history... (cached) none required checking for main in -lbsd... (cached) no checking for setproctitle in -lutil... (cached) no checking for main in -lm... (cached) yes checking for main in -ldl... (cached) no checking for main in -lsocket... (cached) no checking for main in -lnsl... (cached) no checking for main in -lipc... (cached) no checking for main in -lIPC... (cached) no checking for main in -llc... (cached) no checking for main in -ldld... (cached) no checking for main in -lld... (cached) no checking for main in -lcompat... (cached) no checking for main in -lBSD... (cached) no checking for main in -lgen... (cached) no checking for main in -lPW... (cached) no checking for main in -lresolv... (cached) no checking for main in -lunix... (cached) no checking for library containing crypt... (cached) -lcrypt checking for __inet_ntoa in -lbind... (cached) no checking for inflate in -lz... (cached) yes checking for crypt.h... (cached) yes checking for dld.h... (cached) no checking for endian.h... (cached) yes checking for fp_class.h... (cached) no checking for getopt.h... (cached) yes checking for ieeefp.h... (cached) yes checking for pwd.h... (cached) yes checking for sys/ipc.h... (cached) yes checking for sys/pstat.h... (cached) no checking for sys/select.h... (cached) yes checking for sys/sem.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/shm.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/un.h... (cached) yes checking for termios.h... (cached) yes checking for kernel/OS.h... (cached) no checking for kernel/image.h... (cached) no checking for SupportDefs.h... (cached) no checking for netinet/in.h... (cached) yes checking for netinet/tcp.h... yes checking whether string.h and strings.h may both be included... (cached) yes checking for readline/readline.h... (cached) yes checking for readline/history.h... (cached) yes checking for working const... (cached) yes checking for inline... (cached) inline checking for preprocessor stringizing operator... (cached) yes checking for signed types... (cached) yes checking for volatile... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for tm_zone in struct tm... (cached) no checking for tzname... (cached) yes checking for union semun... (cached) yes checking for struct sockaddr_un... (cached) yes checking for int timezone... (cached) no checking types of arguments for accept()... (cached) int, struct sockaddr *, int * checking whether gettimeofday takes only one argument... (cached) no checking for fcvt... (cached) yes checking for getopt_long... (cached) yes checking for memmove... (cached) yes checking for pstat... (cached) no checking for setproctitle... (cached) no checking for setsid... (cached) yes checking for sigprocmask... (cached) yes checking for sysconf... (cached) yes checking for waitpid... (cached) yes checking for dlopen... (cached) yes checking for fdatasync... (cached) no checking for PS_STRINGS... (cached) no checking for snprintf... (cached) yes checking for vsnprintf... (cached) yes checking for isinf... (cached) yes checking for getrusage... (cached) yes checking for srandom... (cached) yes checking for gethostname... (cached) yes checking for random... (cached) yes checking for inet_aton... (cached) yes checking for strerror... (cached) yes checking for strdup... (cached) yes checking for strtol... (cached) yes checking for strtoul... (cached) yes checking for strcasecmp... (cached) yes checking for cbrt... (cached) yes checking for rint... (cached) yes checking for rl_completion_append_character... yes checking for rl_completion_matches... (cached) yes checking for rl_filename_completion_function... (cached) yes checking for finite... yes checking for sigsetjmp... yes checking for optreset... (cached) yes checking test program... ok checking whether long int is 64 bits... (cached) no checking whether long long int is 64 bits... (cached) yes checking whether snprintf handles 'long long int' as %lld... yes checking for strtoll... (cached) no checking for strtoq... (cached) no checking for strtoull... (cached) no checking for strtouq... (cached) no checking for atexit... (cached) yes checking size of unsigned long... (cached) 4 checking alignment of short... (cached) 2 checking alignment of int... (cached) 4 checking alignment of long... (cached) 4 checking alignment of long long int... (cached) 8 checking alignment of double... (cached) 8 checking for POSIX signal interface... (cached) yes checking for onsgmls... no checking for nsgmls... no updating cache ./config.cache creating ./config.status creating GNUmakefile creating src/GNUmakefile creating src/Makefile.global creating src/backend/port/Makefile creating src/include/config.h src/include/config.h is unchanged linking ./src/backend/port/dynloader/win.c to src/backend/port/dynloader.c linking ./src/backend/port/dynloader/win.h to src/include/dynloader.h linking ./src/include/port/win.h to src/include/os.h linking ./src/makefiles/Makefile.win to src/Makefile.port linking ./src/backend/port/tas/dummy.s to src/backend/port/tas.s I have no name!@ROAMWARE-2EG62K /usr/src/postgresql-7.1.2 $ make make: cygpath: Command not found make -C doc all make: make: Command not found make: *** [all] Error 127
David, On Tue, Aug 07, 2001 at 06:17:50PM +0100, David Wynter wrote: > I have followed the standard instructions for building postgresql. I include > the full output below. The problem stems from cygpath not being available to > the make environment (see below at bottom). It also seems that make cannot > find make? I don't get this because it is on the standard path set up of > cygwin and is executable from the postgresql directory the make runs from? cygpath.exe is in the Cygwin package -- the one with cygwin1.dll. How did you manage to install cygwin1.dll but not cygpath.exe? Did you use Cygwin's setup.exe to install your Cygwin environment? I would recommend reinstalling Cygwin from scratch -- your environment looks very screwed up. BTW, a pre-built PostgreSQL 7.1.2 is part of the standard Cygwin distribution. Jason -- Jason Tishler Director, Software Engineering Phone: 732.264.8770 x235 Dot Hill Systems Corp. Fax: 732.264.8798 82 Bethany Road, Suite 7 Email: jason@tishler.net Hazlet, NJ 07730 USA WWW: http://www.dothill.com
On Tue, Aug 07, 2001 at 10:24:57PM +0100, David Wynter wrote: > Firstly should I send this to the list? Yes, I would appreciate it if you did. > I did reinstall the Cygwin core components (as defined in the only other > posting to the pgsql-cygwin mail list) required by postrgesql for the build. > I can also run cygpath happily from the directory that I am running the make > from. In my environment that is > '/cygdrive/c/cygwin/usr/src/postgresql-7.1.2', i.e. standard. I would not say that '/cygdrive/c/cygwin/usr/src/postgresql-7.1.2' is in any way standard. It really should be '/usr/src/postgresql-7.1.2'. > One thing I > remember is that my W2K installation used to be on D drive, I removed the > old drive (was C:\) with the bootmanager so everything on D:\ is now on C:\. > Is there some sort of configuration file for make that might still reference > D:\, Ah! What does mount indicate? My WAG is that it is still pointing to D:\cygwin and not C:\cygwin. IIRC, setup.exe preserves the mounts for /, /usr/bin, and /usr/lib. You may be able to get setup.exe to fix your mounts. Otherwise, you will need to use regedit to clean up. > This seems very unlikely, as I said, the cygpath works fine from the > shell prompt and I imagine that make uses the shell environment directly. What is the value for PATH? Does it include /usr/bin? > I looked in profile in /etc and found nothing unusal their either, very > frustrating. Do you have valid /etc/passwd and /etc/group files? > The standard distributed Postgresql has a JDBC driver that will not work > with Turbine. I need to rebuild at least the JDBC driver to change the OID > data type so that Turbine (uses Villages) works OK with BLOBs. I am not > going to wipe out the cygwin installation as there are other things I have > in there. If you have no further suggestions I will just have to build the > JDBC driver outside the make enviroment that comes with postgresql I > suppose. OK, note that you can rebuild the JDBC driver on another platform (e.g. Linux) if that is more comfortable. Remember Java is Java. Jason -- Jason Tishler Director, Software Engineering Phone: 732.264.8770 x235 Dot Hill Systems Corp. Fax: 732.264.8798 82 Bethany Road, Suite 7 Email: jason@tishler.net Hazlet, NJ 07730 USA WWW: http://www.dothill.com