search
Homephp教程php手册用--with-apxs来编译PHP时,我得到了奇怪的错误信息

有两种方法检查。第一种,当Apache建立apxs Perl程序时,因为一些原因,它没有包含正确的编译参数。编辑你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

如果你看到上面那样子,就是你发生错误的地方了,改成下面几行的样子: 

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

第二种可能的原因只有在RedHat 6.1上发生。RedHat 上的apxs配置有问题,如下行: 

my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install

如果你看到上面那行,应该改成下面这行: 

my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install


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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function