Re: php5 +apache installation workaround
Re: php5 +apache installation workaround js Fri, 22 Dec 2006 07:15:23 -0800
A month or two ago, I proposed eliminating the ability to use Apple's Apache and only use MacPorts's Apache. Several people objected to this, which is why I proposed the compromise in which both are available.
Some reasons to prefer Apple's are that it gets auto-upgraded by Software Update, and that you can control it from System Preferences
Sharing > Personal Web Sharing. With the MacPorts version, you have to use the terminal for both tasks, something some users are not comfortable with.
Now I understand the situation, Thank you. But still I can't use php5 MacPorts' apache... Could you please tell me the way to use MacPorts' apache with php5 without manually editing php5's portfile?
I tried: $ port install php5 +mysql5 # failed. seems variant macosx is implicitly used.(my variants.conf is empty)
#so I tried the next. $ port install php5 -macosx +mysql5 configure: error: This c-client library is built with Kerberos support. Add --with-kerberos to your configure line. Check config.log for details. Error: Status 1 encountered during processing.
I didn't try but I think if I'd use +apache2 because variant apache2 don't have "if { ! [variant_isset macosx] }" on the portfile.
hi js, you are correct about the macosx variant being implicitly used, even though it isnt in the variants.conf file (which seems to me a blatant contradiction of macports philosophy). the best solution ive found to this problem is to disable it by adding the following line to /opt/local/etc/ports/variants.conf: -macosx the minus sign does the opposite of the plus so the "macosx" variant will be disabled unless explicitly specified (as it should be, i believe). turning off the macosx variant, however, will leave php apache-less, so you have to explicitly tell it to use either +apache or +apache2 (either one should work fine now that the macosx variant is out of the picture). -emory ps - thanks for bringing this issue up ... im glad to know im not the only one to find it so unintuitive.
Hi Emory, Thank you for your suggestion, but I, as I said previous mail, tried "-macosx" and it didn't work because it removes "--with-kerberos=/usr" from configure options and php5 port depends "lib:c-client:cclient" which requires kerberos. As you suggested turning off the macosx variant would be good php5 does require MacPort's kerberos. Ryan, do you have any idea?
ah, right you are. looks like "-macosx" only works when its at the beginning of the variant list. (is that right???) for a quick fix, simply adding "--with-kerberos=/usr" (or just "-- with-kerberos") unconditionally to configure.args works fine. using "--with-kerberos=${prefix}" seems like the better way -- this also works fine (with added kerberos5 port dependency) is there a reason to prefer kerb from /usr over the port when building against apple apache? -emory On Dec 24, 2006, at 7:03 AM, js wrote:
Hi Emory,
Thank you for your suggestion, but I, as I said previous mail, tried "-macosx" and it didn't work because it removes "--with-kerberos=/usr" from configure options and php5 port depends "lib:c-client:cclient" which requires kerberos.
As you suggested turning off the macosx variant would be good php5 does require MacPort's kerberos.
Ryan, do you have any idea?
participants (2)
-
Emory Smith
-
js