無料スクリプト配布のPHP.TO   PHPの実用的なtips PHPマニュアル MySQLマニュアル Apacheマニュアル PostgreSQLマニュアル マニュアル検索    

?

????????

anonymous Git ???? PHP ?? configure ???!

configure.inconfigure?????GNU autoconf????Git?? ?????./buildconf??? (?configure --enable-maintainer-mode??? ???configure??configure.in ????????????? configure.in ?????????????? ????????configure? config.status ??Makefile@VARIABLE@?????)

PHPApache?????configure??? ?httpd.h???? ?????!

configure/setup??Apache??? ?????--with-apache=/path/to/apache ??--with-apache=/path/to/apache/src ??????

PHPconfigure?? (./configure) ????

checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up

????? PHP??flexbison??????? ?RPM??bisonflex ????

Apache?????:

fatal: relocation error: file /path/to/libphp4.so:
symbol ap_block_alarms: referenced symbol not found

Apachecore??sharedDSO??? ?????? ?????Apacheconfigure :


--enable-shared=max --enable-rule=SHARED_CORE

??Apache??????? INSTALL? ?Apache » DSO manual page?

configure???GDgdbm???? ??????????

C??????????? ???configure???????? ???????

    CPPFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure
??csh???? ??
    env CPPFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure

?language-parser.tab.c???? 'yytname undeclared'????

bison??????? » http://www.gnu.org/software/bison/bison.html??

PHP ?????????

????????????? ????'-ldl' ???????????????

??Apache ??? 'libphp4.a' '-ldl' ????????

PHPApache 1.3????????

????????

  • » http://httpd.apache.org/download.cgi? Apache 1.3???
  • ?? /usr/local/src/apache-1.3 ungzipuntar?
  • ? ./configure --with-apache=/<path>/apache-1.3??PHP ???? (<path> ???apache-1.3???? ?)
  • make ??make install?????PHP?? ?????Apache????
  • ??? /<path>/apache-1.3/src?? Configuration??? ?????: AddModule modules/php4/libphp4.a
  • ./configure ?? make???
  • ??PHPhttpd?????

: : Apache ./configure??????? Apache??README.configure? ????PHP?? INSTALL ???

????UnixApache??? ??????PHP??? ???????

???PHP?????? ?????????

  • ???httpd???httpd ?????????? ? /path/to/binary/httpd -l mod_php4.c ????? ????????? ????
  • Apache .conf ?MIME ??????????? AddType application/x-httpd-php .php ?AddType? <Virtualhost> ? <Directory> ?? ?????????? ?????
  • ?????Apache?Apache 1.2 Apache 1.3????AddType??? ??????????? ?????????? httpd.conf??????? ???

--activate-module=src/modules/php4/libphp4.a ????????? --activate-module=src/modules/php4/libmodphp4.a ???????

libphp4.a????????? ??Apache?????

--activate-module=src/modules/php4/libphp4.a ?PHP????Apache? ?????ANSI???????

Apache???? ???

--with-apxs ? PHP ????????

?????3????? Apacheapxs Perl??????? ????????? ?apxs?(which apxs?? ????/usr/local/apache/bin/apxs ?/usr/sbin/apxs??) ????

my $CFG_CFLAGS_SHLIB  = ' ';          # substituted via Makefile.tmpl
my $CFG_LD_SHLIB      = ' ';          # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = ' ';          # substituted via Makefile.tmpl
??????????? 'q()'????????? ??
my $CFG_CFLAGS_SHLIB  = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl
my $CFG_LD_SHLIB      = 'gcc';                   # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-shared);              # substituted via Makefile.tmpl 
?2?RedHat-6.16.2??? RedHat? apxs ?????????
my $CFG_LIBEXECDIR    = 'modules';         # substituted via APACI install
?????
my $CFG_LIBEXECDIR    = '/usr/lib/apache'; # substituted via APACI install
??Apacheconfigure/?????? ./configure make? make clean??

make?microtime RUSAGE_????

??make??????? ??

microtime.c: In function `php_if_getrusage':
microtime.c:94: storage size of `usg' isn't known
microtime.c:97: `RUSAGE_SELF' undeclared (first use in this function)
microtime.c:97: (Each undeclared identifier is reported only once
microtime.c:97: for each function it appears in.)
microtime.c:103: `RUSAGE_CHILDREN' undeclared (first use in this function)
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory `/home/master/php-4.0.1/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/master/php-4.0.1/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/master/php-4.0.1/ext'
make: *** [all-recursive] Error 1

???????glibc? glibc-devel??????/usr/include ? ????PHP???? ???????????

$ cat >test.c <<X
#include <sys/resource.h>
X
$ gcc -E test.c >/dev/null
?????????? ???

MySQL??PHP????configure ???make????: ext/mysql/libmysqlclient/my_tempnam.o(.text+0x46): In function my_tempnam': /php4/ext/mysql/libmysqlclient/my_tempnam.c:103: the use of tempnam' is dangerous, better use mkstemp'

?Warning?? ?????????make ???????? ???????Warning ??????? ?MySQL??????????? ??

:

PHP4.3.2???(make)????? ??:


Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

PHP??????????PHP ????./configure?? ??????

?????PHP????? config.nice ??????????

<?php phpinfo(); ?>
???????./configure ????

GD???PHP?????? ??????????

?GD??PHP???(?libpng)??? ???

PHP ????????????? ?Solaris ????

PHP ? GNU ??? PHP ????GNU ????? ?Solaris ?? SunOS BSD ? sed Solaris ? sed ???? GNU ?? Sun POSIX (xpg4) ? sed ?? ????? » GNU sed » GNU flex » GNU bison



powered by SEO.CUG.NET