Running Apache+PHP4+OCI8 on CYGWIN
| From: | Alexander Vikulin, VOGClub.com CEO | Date: | Fri, 31 Jan 2003 18:48:09 +0000 |
| Subject: | Running Apache+PHP4+OCI8 on CYGWIN | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-9907@lists.php.net to get a copy of this message | ||
Hello,
For testing/development purpose I need to run Apache+PHP4 with OCI8 on a
Windows NT machine under CYGWIN.
I tried several different approaches to make it work, but without any
success.
I used Apache and PHP4 sources, which can be installed with CYGWIN to
build PHP as apache module. I read somewhere that only them could work,
because they include some patches for cygwin.
I succeded to configure, make and make install PHP, but when I attempt
to configure apache with
./configure --activate-module=src/modules/php4/libphp4.a
--enable-module=php4
I receive the following error:
======== Error Output for sanity check ========
cd ..; gcc -DCYGWIN -I/usr/src/php-4.2.0-1 -I/usr/src/php-4.2.0-1/main
-I/usr/src/php-4.2.0-1/main -I/usr/src/php-4.2.0-1/Zend
-I/usr/src/php-4.2.0-1/Zend -I/usr/src/php-4.2.0-1/TSRM
-I/usr/src/php-4.2.0-1/TSRM -I/usr/src/php-4.2.0-1 -DNO_DL_NEEDED
./apaci -o helpers/dummy helpers/dummy.c
-Wl,-rpath,/cygdrive/c/oracle/ora90/lib -/cygdrive/c/oracle/ora90/lib
-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lnsl
-lm -ldl -lcrypt -lm -lcrypt -lclntsh -lcrypt -lgdbm -lexpat
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
cannot find -lclntsh
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============
I had similar problems with -lnsl and -ldl To rectify these I just took
corresponding *.a files from a Linux box. I have no idea if it can work
that way on CYGWIN, but at least the sanity check went further to
-lclntsh then.
I cannot fine libclntsh.a anywhere. Neither on a Linux box, nor on a
Windows NT one, in Oracle distribution.
I could only find libclntsh.so
Any solutions?
Thank you,
Alexander Vikulin