(pardon the length of this)I'm trying to upgrade from PHP3 to PHP4 on a Red Hat 6.2/Apache 1.3.12 (i686) system -- with Postgres support.
ran into dead end because APXS does not exist on system. Tried to grab the apache tarball and adapt the apxs.pl into a useable apxs file by changing path info.
now we get an error when trying to 'make' PHP.
error:
/bin/sh /home/users/fgrp/php/php-4.0.1pl2/libtool --silent --mode=link gcc -g -O
2 -o libphp4.la -rpath /home/users/fgrp/php/php-4.0.1pl2/libs -avoid-version -
L/usr/local/pgsql/lib -R /usr/local/pgsql/lib stub.lo Zend/libZend.la sapi/apac
he/libsapi.la main/libmain.la ext/db/libdb.la ext/dba/libdba.la ext/gd/libgd.la
ext/mysql/libmysql.la ext/pcre/libpcre.la ext/pgsql/libpgsql.la ext/posix/libpo
six.la ext/session/libsession.la ext/standard/libstandard.la ext/sysvsem/libsysv
sem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la ext/zlib/libzlib.la -lgdbm -
lpam -ldl -lz -lpq -lgd -ldb -lgdbm -lresolv -lm -ldl -lcrypt -lnsl -lresolv
/usr/bin/ld: cannot open output file .libs/libphp4.so: Permission denied
collect2: ld returned 1 exit status
make[1]: [libphp4.la] Error 1
make[1]: Leaving directory `/home/users/fgrp/php/php-4.0.1pl2'
make: [all-recursive] Error 1
anyway... so now we're trying to go the RPM route instead. my question (unless someone has a quick answer for the above error) is how do I include (using RPM) all the "--with" and "--enable" arguments normally used in the ./configure statement? I understand that I have to first install other rpm's like Postgres (before I can install PHP (actually, will it work if it's a non-RPM install of Postgres?) but what about options like '--enable-track-vars'? Here's my configure statement and can I get all functionality therein by using RPM?
./configure '--with-pgsql' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-config-file-path=/etc/httpd'
'--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-system-regex' '--disable-debug' '--with-zlib'
'--with-gdbm' '--with-db2' '--enable-debugger' '--enable-magic-quotes' '--enable-track-vars'
'--enable-sysvsem' '--enable-sysvshm' '--with-xml' '--with-ftp'
thanks (and apologies again for the lack of brevity)