Click to See Complete Forum and Search --> : compiling php with modules help


phpnewby
08-23-2006, 03:48 PM
Hello,

I'm new to this and having some issues compiling php with needed modules. I'd appreciate it if you guys can help me out.
When running the configuration file needed before running make and make install, I get the following error:

./php-configure.sh: line 23: --with-apxs2=/usr/sbin/apxs: No such file or directory
./php-configure.sh: line 22: --prefix=/www: No such file or directory


When I do locate apxs:
/usr/sbin/apxs


The system is redhat es 4 with the following rpms installed:

httpd-2.0.55-2.el4s1.8
httpd-devel-2.0.55-2.el4s1.8
MySQL-server-standard-5.0.24-0.rhel4
MySQL-client-standard-5.0.24-0.rhel4
MySQL-devel-standard-5.0.24-0.rhel4

The configuration file I need to run before make and make install:
./configure \
--with-mysql \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-dbase \
--enable-ftp \
--enable-force-cgi-redirect \
--with-freetype-dir=/usr/lib \
--enable-gd-native-ttf \
--enable-ge-imgstrttf \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib \
--with-gd \
--with-sybase=/opt/sybase/OCS-12_5/ \
--with-ldap \
--with-mhash \
--enable-magic-quotes
--prefix=/www \
--with-apxs2=/usr/sbin/apxs --disable-cgi --enable-so
#commented out the following b/c coldn't get them to work.
# --enable-imap \
# --with-xml
# --enable-iconv \

thorpe
08-23-2006, 06:38 PM
Have you created the /www directory? Ide do that. Then, you might try using....

--with-apxs2=/usr/sbin

phpnewby
08-24-2006, 06:34 PM
I changed the ./configure options and got through this part.
./configure --prefix=/httpd/php --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc/httpd/php --with-mysql --with-mysql-so ck=/var/lib/mysql/mysql.sock --with-dbase --enable-ftp --enable-force-cgi-redirect --with-freetype-dir=/usr/lib --enable-gd-native-ttf --enable-ge-imgstrttf --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib --with-gd --with-ldap --with-mhash --enable-magic-quotes --enable-imap --with-xml --enable-iconv

But now when I do make && make install:
Warning! dlname not found in /usr/lib/httpd/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/lib/httpd/modules/libphp5.so
chmod: cannot access `/usr/lib/httpd/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1

Any ideas?

bradgrafelman
08-24-2006, 06:37 PM
Moved thread to the Install forum.