Home  >  Article  >  Backend Development  >  I get strange error messages when compiling PHP with --with-apxs_PHP Tutorial

I get strange error messages when compiling PHP with --with-apxs_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:53:12887browse

There are two ways to check. First, when Apache built the apxs Perl program, for some reason, it did not include the correct compilation parameters. Edit your apxs (in /usr/local/apache/bin/apxs or /usr/sbin/apxs) and check the following lines:
my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
my $ CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = ' '; The line looks like:
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
The second possible cause only occurs on RedHat 6.1. There is a problem with the apxs configuration on RedHat, as follows:
my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install
If you see the above line, you should change it to the following line:
my $ CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install


http://www.bkjia.com/PHPjc/632418.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632418.htmlTechArticleThere are two ways to check. First, when Apache built the apxs Perl program, for some reason, it did not include the correct compilation parameters. Edit your apxs (in /usr/local/apache/bin/apxs or...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn