Re: changing a ports final destination via make knobs question...
[EMAIL PROTECTED] wrote: Greetings, Given that the folks at PHP have decided that no one is allowed to use PHP4 any longer. I've decided to *attempt* to install a copy of PHP5 (cgi only) along side my already installed/configured, and in use copy of PHP4 (apache_module, CLI, CGI). I spent some time attempting to find successful stories regarding my attempt. But all were for different OS's, and most were *quite* dated. So I took a stab at it, after looking at the Makefile in lang/php5. But it did *NOT* end up where I thought it would. In fact, it clobbered some of my PHP4 install. SO, please find here my desperate plea for the make knob(s)/env options required to install a copy of PHP5 (CGI) beside my already installed/working PHP4. I had tried/ hoped to simply create a --prefix=php5/, thinking that I'd end up with: /usr/local/bin/php5/(php-cgi, phpize, php-config), and /usr/local/etc/php5/php-ini-*, /usr/local/include/php5/*, /usr/local/lib/php5/*. by way of the ports system. But I *clearly* didn't set things correctly. *Any* help/advice would be *GREATLY* appreciated. Thank you for all your time and consideration. --Chris ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] This should probably go on freebsd-questions list Try *make **PREFIX=/usr/local/php5* and *make install **PREFIX=/usr/local/php5* I did this to get php4 working as a cgi with php5 installed regularly as mod_php. Seems to work ok. * * ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
Quoting Chris St Denis [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Greetings, Given that the folks at PHP have decided that no one is allowed to use PHP4 any longer. I've decided to *attempt* to install a copy of PHP5 (cgi only) along side my already installed/configured, and in use copy of PHP4 (apache_module, CLI, CGI). I spent some time attempting to find successful stories regarding my attempt. But all were for different OS's, and most were *quite* dated. So I took a stab at it, after looking at the Makefile in lang/php5. But it did *NOT* end up where I thought it would. In fact, it clobbered some of my PHP4 install. SO, please find here my desperate plea for the make knob(s)/env options required to install a copy of PHP5 (CGI) beside my already installed/working PHP4. I had tried/ hoped to simply create a --prefix=php5/, thinking that I'd end up with: /usr/local/bin/php5/(php-cgi, phpize, php-config), and /usr/local/etc/php5/php-ini-*, /usr/local/include/php5/*, /usr/local/lib/php5/*. by way of the ports system. But I *clearly* didn't set things correctly. *Any* help/advice would be *GREATLY* appreciated. Thank you for all your time and consideration. --Chris ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] This should probably go on freebsd-questions list Hello, and thank you for your reply. Agreed, but my inbox couldn't handle the volume. So since I've already been subscribed to this list for a few yrs. I hoped that given this should likely end up a short thread, it'd be no big deal. :) Try *make **PREFIX=/usr/local/php5* and *make install **PREFIX=/usr/local/php5* I can't help but notice that your suggested make defines are wrapped in asterisks. I'm going to assume you did that to highlight them. :) I did this to get php4 working as a cgi with php5 installed regularly as mod_php. Seems to work ok. * * I'll give it a go. Thanks for the suggestion. --Chris ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
[EMAIL PROTECTED] wrote: Quoting Chris St Denis [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Greetings, Given that the folks at PHP have decided that no one is allowed to use PHP4 any longer. I've decided to *attempt* to install a copy of PHP5 (cgi only) along side my already installed/configured, and in use copy of PHP4 (apache_module, CLI, CGI). I spent some time attempting to find successful stories regarding my attempt. But all were for different OS's, and most were *quite* dated. So I took a stab at it, after looking at the Makefile in lang/php5. But it did *NOT* end up where I thought it would. In fact, it clobbered some of my PHP4 install. SO, please find here my desperate plea for the make knob(s)/env options required to install a copy of PHP5 (CGI) beside my already installed/working PHP4. I had tried/ hoped to simply create a --prefix=php5/, thinking that I'd end up with: /usr/local/bin/php5/(php-cgi, phpize, php-config), and /usr/local/etc/php5/php-ini-*, /usr/local/include/php5/*, /usr/local/lib/php5/*. by way of the ports system. But I *clearly* didn't set things correctly. *Any* help/advice would be *GREATLY* appreciated. Thank you for all your time and consideration. --Chris ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] This should probably go on freebsd-questions list Hello, and thank you for your reply. Agreed, but my inbox couldn't handle the volume. So since I've already been subscribed to this list for a few yrs. I hoped that given this should likely end up a short thread, it'd be no big deal. :) Try *make **PREFIX=/usr/local/php5* and *make install **PREFIX=/usr/local/php5* I can't help but notice that your suggested make defines are wrapped in asterisks. I'm going to assume you did that to highlight them. :) I did this to get php4 working as a cgi with php5 installed regularly as mod_php. Seems to work ok. * * I'll give it a go. Thanks for the suggestion. --Chris ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] I had them bold, the list server seems to have converted the bold to the *'s. They should not be in the command. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
Quoting Chuck Swiger [EMAIL PROTECTED]: Hi-- On Aug 26, 2008, at 12:42 PM, [EMAIL PROTECTED] wrote: Given that the folks at PHP have decided that no one is allowed to use PHP4 any longer. I've decided to *attempt* to install a copy of PHP5 (cgi only) along side my already installed/configured, and in use copy of PHP4 (apache_module, CLI, CGI). [ ... ] *Any* help/advice would be *GREATLY* appreciated. You might consider doing your builds and testing on another machine entirely, to avoid disrupting a system which is in use. Quite right! But a couple of reasons I elected to do it anyway; * I have a *good* backup schedule * This server is scheduled for upgrade (source ports) So if anything went too terribly wrong, nothing is lost. Also, it only clobbered some of the includes, and ini files. Given that I had no reason to add any more extensions/libs to the PHP4 version, no harm done. PHP4 runs as it did prior to the PHP5 experiment. :) Another option to consider is using a chroot'ed environment or jail using $DESTDIR (cf /usr/ports/Mk/bsd.destdir.mk). Finally, if neither of the previous seems to suit, then you can change where ports are installed by adjusting $LOCALBASE. I'll have a close look at $LOCALBASE. That sounds like a good candidate. With any luck, it'll also cover extensions, ini(s), and related libs. :) Thank you for taking the time to respond. --Chris Regards, -- -Chuck ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
Hi-- On Aug 26, 2008, at 12:42 PM, [EMAIL PROTECTED] wrote: Given that the folks at PHP have decided that no one is allowed to use PHP4 any longer. I've decided to *attempt* to install a copy of PHP5 (cgi only) along side my already installed/configured, and in use copy of PHP4 (apache_module, CLI, CGI). [ ... ] *Any* help/advice would be *GREATLY* appreciated. You might consider doing your builds and testing on another machine entirely, to avoid disrupting a system which is in use. Another option to consider is using a chroot'ed environment or jail using $DESTDIR (cf /usr/ports/Mk/bsd.destdir.mk). Finally, if neither of the previous seems to suit, then you can change where ports are installed by adjusting $LOCALBASE. Regards, -- -Chuck ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
--On August 26, 2008 2:09:27 PM -0700 [EMAIL PROTECTED] wrote: I'll have a close look at $LOCALBASE. That sounds like a good candidate. With any luck, it'll also cover extensions, ini(s), and related libs. :) Please be aware that if you change ${LOCALBASE} you change it for *all* subsequently installed port. Chris' suggestion to use make install PREFIX=/usr/local/php5 is the correct one for changing the location of a single port. Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ** WARNING: Check the headers before replying
Re: changing a ports final destination via make knobs question...
Quoting Paul Schmehl [EMAIL PROTECTED]: --On August 26, 2008 2:09:27 PM -0700 [EMAIL PROTECTED] wrote: I'll have a close look at $LOCALBASE. That sounds like a good candidate. With any luck, it'll also cover extensions, ini(s), and related libs. :) Please be aware that if you change ${LOCALBASE} you change it for *all* subsequently installed port. Chris' suggestion to use make install PREFIX=/usr/local/php5 is the correct one for changing the location of a single port. Hello, and thank you very much for your reply. Yes. After looking closely at the variable, I discovered that also. So I used the PREFIX=/usr/local/php5. But as I build it (via php5-extensions) I am not seeing the PREFIX variable reflected. Shouldn't I be using: make -DPREFIX=/usr/local/php5? Or simply hack the Makefile? Thanks again for taking the time to respond. --Chris Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ** WARNING: Check the headers before replying ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
Quoting [EMAIL PROTECTED]: Quoting Paul Schmehl [EMAIL PROTECTED]: --On August 26, 2008 2:09:27 PM -0700 [EMAIL PROTECTED] wrote: I'll have a close look at $LOCALBASE. That sounds like a good candidate. With any luck, it'll also cover extensions, ini(s), and related libs. :) Please be aware that if you change ${LOCALBASE} you change it for *all* subsequently installed port. Chris' suggestion to use make install PREFIX=/usr/local/php5 is the correct one for changing the location of a single port. Hello, and thank you very much for your reply. Yes. After looking closely at the variable, I discovered that also. So I used the PREFIX=/usr/local/php5. But as I build it (via php5-extensions) I am not seeing the PREFIX variable reflected. Shouldn't I be using: make -DPREFIX=/usr/local/php5? Or simply hack the Makefile? OK. Never mind. Installing via lang/php5-extensions w/ make PREFIX=/usr/local/php5 resulted in: Installing PHP CGI into: /usr/local/php5/bin/ Installing build environment: /usr/local/php5/lib/php/build/ Installing header files: /usr/local/php5/include/php/ Installing helper programs: /usr/local/php5/bin/ program: phpize program: php-config Installing man pages: /usr/local/php5/man/man1/ So that went as desired. But the extension(s) vomited because I renamed phpize (PHP4) php4ize. OOOPS! I thought I should do that 'cause of potential versioning issues - guess not. blush Thanks again for taking the time to respond. --Chris Thanks again for taking the time to respond. --Chris Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ** WARNING: Check the headers before replying ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
--On August 26, 2008 3:05:25 PM -0700 [EMAIL PROTECTED] wrote: Hello, and thank you very much for your reply. Yes. After looking closely at the variable, I discovered that also. So I used the PREFIX=/usr/local/php5. But as I build it (via php5-extensions) I am not seeing the PREFIX variable reflected. Shouldn't I be using: make -DPREFIX=/usr/local/php5? Or simply hack the Makefile? If you're trying to force the install of php5 by installing php5-extensions, that's not going to work. Php5 will be built with the default ${LOCALBASE} instead. There are several ways to work around the problem. You can build php5 first, with the altered PREFIX, then build php5-extensions with the altered PREFIX. You can set the PREFIX for php5 and php5-extensions in /usr/local/etc/pkgtools.conf (see the extensive notes in the file or read man (5) pkgtools.conf). You can edit the Makefiles for the affected ports, but changing PREFIX in a Makefile is tricky, so testing carefully is required. Furthermore, the Makefiles will be overwritten every time the port is updated, so it's really not the best way to do things. You can even edit /etc/make.conf, but that changes the parameters for all ports. If you plan on doing this often, pkgtools.conf is your best bet. If you plan on doing it once, commandline is probably the easiest and quickest. If you choose to use pkgtools.conf, you'd probably want something like this: MAKE_ARGS = { 'lang/php5*' = 'PREFIX=/usr/local/php5', } Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ** WARNING: Check the headers before replying
Re: changing a ports final destination via make knobs question...
On Tue, Aug 26, 2008 at 06:04:36PM -0500 I heard the voice of Paul Schmehl, and lo! it spake thus: If you plan on doing this often, pkgtools.conf is your best bet. If you plan on doing it once, commandline is probably the easiest and quickest. I would say using ports-mgmt/portconf would be a better bet, since it does its thing whether you use make install or portupgrade or portmaster or portsuperwhatsit. A line like php5*: PREFIX=/usr/local/php5 should take care of all php5 base/extension ports, wherever in the tree they end up. Of course, you're still odd in the tricky woods building PECL stuff or the like, which could go against 4 or 5. But that's a different mess. -- Matthew Fuller (MF4839) | [EMAIL PROTECTED] Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
Quoting Paul Schmehl [EMAIL PROTECTED]: --On August 26, 2008 3:05:25 PM -0700 [EMAIL PROTECTED] wrote: Hello, and thank you very much for your reply. Yes. After looking closely at the variable, I discovered that also. So I used the PREFIX=/usr/local/php5. But as I build it (via php5-extensions) I am not seeing the PREFIX variable reflected. Shouldn't I be using: make -DPREFIX=/usr/local/php5? Or simply hack the Makefile? If you're trying to force the install of php5 by installing php5-extensions, that's not going to work. Php5 will be built with the default ${LOCALBASE} instead. There are several ways to work around the problem. You can build php5 first, with the altered PREFIX, then build php5-extensions with the altered PREFIX. You can set the PREFIX for php5 and php5-extensions in /usr/local/etc/pkgtools.conf (see the extensive notes in the file or read man (5) pkgtools.conf). You can edit the Makefiles for the affected ports, but changing PREFIX in a Makefile is tricky, so testing carefully is required. Furthermore, the Makefiles will be overwritten every time the port is updated, so it's really not the best way to do things. You can even edit /etc/make.conf, but that changes the parameters for all ports. If you plan on doing this often, pkgtools.conf is your best bet. If you plan on doing it once, commandline is probably the easiest and quickest. If you choose to use pkgtools.conf, you'd probably want something like this: MAKE_ARGS = { 'lang/php5*' = 'PREFIX=/usr/local/php5', } Hello. Let me preface the following by first thanking you for your indulgence, and taking the time to share your insight. :) That said, as you already knew - php5 installed quite as intended. But the extensions are squealing like pigs in my error log - Unable to load dynamic library... So I'm just going to uninstall the whole works, and start with PHP5, then the extensions. As per setting things up by editing the Makefile v using the /etc/make.conf; I had considered saving the altered variables from the Makefile and using USE_SUBMAKE, which would allow me to suck the changes into make. But then wondered how I might continue using my usual conditionals in /etc/make.conf; .if ${.CURDIR:M*/lang/php5} WITH_THIS=TRUS WITHOUT_THAT=TRUE ... .endif But hadn't experimented much beyond that, except a couple of others... X_WINDOW_SYSTEM=xorg, WITH_GECKO=seamonkey,CPUTYPE?=pentium(N), etc. You mention that it'll change the parameters for all ports. But I was thinking that if used in an if.. then conditional I might be able to limit it's scope. Well, you've (kindly) given me some more studying to do. As I'm getting a bit weary of this whole thing. I'm going to end it here, and get on with it. Thank you again for all your time and consideration. --Chris Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ** WARNING: Check the headers before replying ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing a ports final destination via make knobs question...
Quoting Matthew D. Fuller [EMAIL PROTECTED]: On Tue, Aug 26, 2008 at 06:04:36PM -0500 I heard the voice of Paul Schmehl, and lo! it spake thus: If you plan on doing this often, pkgtools.conf is your best bet. If you plan on doing it once, commandline is probably the easiest and quickest. I would say using ports-mgmt/portconf would be a better bet, and maintained by the same maintainer as the PHP version I'm currently struggling with... I'll take it. :) It seems a lot less kludgy than the ways /I've/ been considering. All of which were not /nearly/ as eloquent as those that have been suggested here by Paul, Chris, and all. ;) since it does its thing whether you use make install or portupgrade or portmaster or portsuperwhatsit. A line like php5*: PREFIX=/usr/local/php5 should take care of all php5 base/extension ports, wherever in the tree they end up. Of course, you're still odd in the tricky woods building PECL stuff or the like, which could go against 4 or 5. But that's a different mess. Indeed. :) Thanks for taking the time to lend a hand. :) --Chris -- Matthew Fuller (MF4839) | [EMAIL PROTECTED] Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]