Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
enabling mysql support in php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sanrou
n00b
n00b


Joined: 10 May 2004
Posts: 31

PostPosted: Tue May 18, 2004 1:30 am    Post subject: enabling mysql support in php Reply with quote

I first emerged apache + php + mod_php, then mysql, but i found my php was installed without mysql support. My question is:
Instead of re-emerge php with USE="+mysql", is there any quick way to just enable mysql support for my existing php installation?

Thanks,
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue May 18, 2004 1:33 am    Post subject: Reply with quote

No there is no way to do that except via USE flags.
Note that you do not enable an USE flag by doing USE="+mysql", for example. The plus sign is an error. You simply write
Code:
USE="mysql"
(note, no +). Yes, you disable them by adding a dash in front, but you don't need a plus sign to enable them.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
sanrou
n00b
n00b


Joined: 10 May 2004
Posts: 31

PostPosted: Tue May 18, 2004 3:11 am    Post subject: Reply with quote

hmm..., just did
Code:
USE="mysql" emerge php

but no go! phpinfo() still shows --without-mysql, maybe i should go
Code:
USE="mysql" emerge mod_php?

any ideas? or maybe i should go one step further by
Code:
USE="mysql" emerge apache php mod_php mysql

by the way, do i do unmerge first in each case?

thanks,
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Tue May 18, 2004 6:40 am    Post subject: Reply with quote

you need
Code:
USE="mysql" emerge php mod_php


apache isn't affected by the mysql USE tag but php and mod_php are. You can check which USE tags come into play for an ebuild by doing
Code:
emerge -pv php mod_php

This will list all the USE tags that can be used for those ebuild with active ones in red and inactive ones in blue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum