Simon Prosser schreef: > On Wednesday 18 January 2006 12:36, Oumar Ndiaye wrote: >> Hi, >> >> >> >> I installed php-4 via emerge but I am having problems getting php >> to work with mysql. After many research I have concluded that php-4 >> is not compiled with the -with-mysql option. >> >> >> >> I need to recompile php-4 with the -with-mysql option and reinstall >> it. How do I do that with emerge or some other ways? > > USE="mysql" emerge dev-php/php > Which will work for this emerge, but if php is then upgraded, the USE flag will be disabled again.
A better way is to either 1. add the "mysql" USE flag to /etc/make.conf USE flags (if you want to enable mysql support for all packages that might support it); or 2. add dev-php/php mysql to /etc/portage/package.use (to enable mysql support for this package only). If the folder /etc/portage already exists, you can just do # echo "dev-php/php mysql" >>/etc/portage/package.use to enable the USE flag for that specific package. HTH, Holly -- gentoo-user@gentoo.org mailing list