[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: php4



On Tue, Jul 06, 2004 at 03:54:05PM -0700, Bryan Irvine wrote:
> Jolan pointed me to the extensions dir where I found what I was looking
> for.  Now I'm getting this:
> 
> ===>  Faking installation for php4-extensions-4.3.5RC3
> install -d -o root -g bin -m 755
> /usr/ports/www/php4/extensions/w-php-4.3.5RC3/fake-i386/var/www/lib/php/modules
> install -c -o root -g bin -m 444
> /usr/ports/www/php4/extensions/w-php-4.3.5RC3/php-4.3.5RC3/modules/bz2.so  /usr/ports/www/php4/extensions/w-php-4.3.5RC3/fake-i386/var/www/lib/php/modules/bz2.so
> install:
> /usr/ports/www/php4/extensions/w-php-4.3.5RC3/php-4.3.5RC3/modules/bz2.so: No such file or directory
> *** Error code 71
> 
> 
> when I try ti run this
> 
> make CONFIGURE_ARGS=--with-pgsql install 
> 
> 
> any ideas?

this is NOT correct.  if you wish to only build the pgsql extension
do the following (yes its long and ugly):

env FLAVOR="no_x11 no_bz2 no_curl no_dba no_dbase no_dbx no_domxml no_filepro no_gd no_gmp no_imap no_ldap no_mcrypt no_mhash no_mysql no_ncurses no_odbc no_pdf no_shmop no_snmp no_pspell no_sybase_ct no_xmlrpc no_xslt" make install

what you did essentially overrides all CONFIGURE_ARGS in the port
which is the cause of the installation error.  in the port Makefile
there is:

do-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/${MODULES_SUBDIR}
.for m in ${MULTI_PACKAGES:S/-//g}
        ${INSTALL_DATA} ${WRKBUILD}/modules/${m}.so \
                ${PREFIX}/${MODULES_SUBDIR}/${m}.so
.endfor

Since you overrode CONFIGURE_ARGS, all modules except pgsql didn't
get built, yet MULTI_PACKAGES is still set to all the extensions, so
the port thinks it should try to install the modules.

Of course, you could have just pkg_add's php4-pgsql-4.3.5RC3.tgz
from your favorite mirror and been done with it ;)