Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configure apache php with gmp

Status
Not open for further replies.

jaybar

Programmer
Mar 25, 2001
6
US
I am attempting to build a new apache to include some additions to php. We are adding the --with-gmp option to php's ./configure. The ./configure works without the gmp option, but does not complete when we add the --with-gmp option.

Here is some more detailed info:
OS hpux11
apache version 1.3.20
php version 4.0.6
gmp version 4.0.1
openssl version 0.9.6b
mod_ssl version 2.8.4-1.3.20

Here is the configure options I am sending:
---------------------
$ ./configure --with-apache=/apache/apache/apache_1.3.20 --with-oci8 --with-oracle --with-ndbm --with-db --with-gmp --enable-ftp
---------------------

Here is the error I am receiving:
---------------------
checking for gmp support... yes
configure: error: Unable to locate gmp.h
---------------------

I viewed php's configure script and here is the line where the error occurs:
----------------------
for i in /usr/local /usr $PHP_GMP; do
if test -f $i/include/gmp.h; then
GMP_DIR=$i
fi
done

if test -z "$GMP_DIR"; then
{ echo "configure: error: Unable to locate gmp.h" 1>&2; exit 1; }
fi
----------------------

It appears that it is looking for the gmp.h file in the /usr/local dir but I put the file there and even added the dir to my .profile but I still cannot get past that error. I also copied the gmp.h file to the php base dir in /ext/gmp.


Any help would be extreamly appreciated.
Thanks,
Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top