Re: compiling on freebsd
| From: | Eugene Lee | Date: | Thu, 25 Apr 2002 06:12:43 +0000 |
| Subject: | Re: compiling on freebsd | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94517@lists.php.net to get a copy of this message | ||
On Thu, Apr 25, 2002 at 01:50:17AM -0400, Larry Brown wrote:
:
: I ended up using a port which eventually worked. I parsed the INSTALL file
: and it didn't mention anything about specifically adding libphp4.so. It
: mentioned checking the flags available with ./configure -help which I ran.
: But I had no way of knowing what apxs means. It mentioned -with-apxs in the
: INSTALL description but stated that if I got an error to physically locate
: apxs and tell configure where it is. I did a search for apxs* with no
: results. Anyway, I did get it going. Thank you for the input.
Here's the relevants bits of INSTALL, with line numbers to boot.
% grep -C1 -n libphp4 php-4.2.0/INSTALL
102-$ cd ../apache_1.3.x
103:$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
104: (The above line is correct! Yes, we know libphp4.a does not exist at this
105- stage. It isn't supposed to. It will be created.)
--
226- ./configure --prefix=/<path>/apache \
227: --activate-module=src/modules/php4/libphp4.a
228- make
--
239-
240: AddModule modules/php4/libphp4.a
241-
--
248-
249: For Apache 1.2.x you will also have to look in the libphp4.module file,
250- which was copied to the src directory. The EXTRA_LIBS line in the Apache
251- Configuration file needs to be set to use the same libs as specified on
252: the LIBS line in libphp4.module. You also need to make sure to add
253- "-L." to the beginning of the EXTRA_LIBS line.
--
259- NOTE: You should not enclose the EXTRA_LIBS line in double-quotes, as it
260: is in the libphp4.module file.
261-
262: Also, look at the RULE_WANTHSREGEX setting in the libphp4.module file
263- and set the WANTHSREGEX directive accordingly in your Configuration file.
--
282-
283: LoadModule php4_module libexec/libphp4.so
284-
285: The actual path before the libphp4.so part might differ slightly. This
286- is likely fine. If you are paranoid you can examine the output from the
287: make install step to see where the libphp4.so file was actually put and
288- place the full path to this file on this LoadModule line.
--
Eugene Lee
eugene@fsck.net