|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-06-03 09:06 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 22:00:02 2026 UTC |
Thanks to rasmus beating it into my head over and over about following directions I have been able to compile PHP into apache as a module and it worked. For anyone having problems, order is extremely important when following some of these directions. Start with a clean untar and step it, if you don't know, don't assume. Anyway I ran into a problem with compiling mysql into php into apache. I nabbed the source for mysql-3.21.30 and compiled it into my system ok. I even compiled it into the php module without a hitch. When I run ./configure on apache with ./configure --prefix=/usr/local/apache --activate-module=src/modules/php3/libphp3.a --includedir=/usr/ports/databases/mysql-3.21.30/include It stops at. Note: The apache-conf is an executable script to keep me sane. It contains the above command line for ./configure. There is no CR or LF in this file, it's here for readability. ********************************************************* freebsd# ./apache-conf Configuring for Apache, Version 1.3b6 + activated php3 module (modules/php3/libphp3.a) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for FreeBSD 2.2.6 platform + setting C compiler to gcc + adding selected modules o php3_module uses ConfigStart/End ld: -lmysqlclient: no match make: *** [dummy] Error 1 + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. This is most likely because your C compiler ** is not ANSI. Apache requires an ANSI C Compiler, such ** as gcc. The above error message from your compiler ** will also provide a clue. Aborting! This is probably a no brainer modification to fix but I'm quite wary of assuming anything at this point. Thanks