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

Re: Flavor problem with PHP4 port



On Mon, Jan 06, 2003 at 04:55:56PM +0200, Jyri Hovila wrote:
> - OpenBSD version: 3.2 stable
> 
> - ports collection taken from snapshot dated 2003-01-04
> 
> I'm trying to install PHP4 from ports collection with some flavors:
> 
>     cd /usr/ports && env FLAVOR="no_x11 gd imap mysql" make install
> 
> And this is what I get:
> 
>     ===> www/php4/core
>     Fatal: no flavors for this port.
>     *** Error code 1
> 
>     Stop.
>     *** Error code 1
> 
>     Stop in /usr/ports/www/php4.
ttyp5:saad_(_at_)_inka [/usr/ports/www/php4]
16:02:55 {648}# make show VARNAME=FLAVORS
===> www/php4/core
 
===> www/php4/extensions
no_x11 no_bz2 no_curl no_dba no_dbase 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_pgsql no_shmop no_snmp no_sybase_ct no_xml no_xslt
===> www/php4/extensions (no_x11)
no_x11 no_bz2 no_curl no_dba no_dbase 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_pgsql no_shmop no_snmp no_sybase_ct no_xml no_xslt
===> www/php4/pear

as you see, the "flavors" have been moved to the extensions subdir. so
to compile php4 with no_x11, gd, imap and mysql support do:
  # cd /usr/ports/www/php4/core && make install
  (you have now core php4)
  # cd ../extensions && env FLAVOR="no_x11 gd imap mysql" make install
  (this command will create packages for all the extensions you've asked
  for)

Then go to /usr/ports/packages/i386/All && pkg_add php4-gd-4.2.3.tgz
etc.

That way, you don't have to recompile the "core" php whenever you need a
new extension.

-- 
Saad Kadhi -- [saad_(_at_)_docisland_(_dot_)_org] [saad_(_dot_)_kadhi_(_at_)_hapsis_(_dot_)_fr]
[pgp keyid: 35592A6D http://pgp.mit.edu]
[pgp fingerprint: BF7D D73E 1FCF 4B4F AF63  65EB 34F1 DBBF 3559 2A6D]
---



Visit your host, monkey.org