编译和preFIX目录未创建后libphp5.so不被创建 [英] libphp5.so not being created after compiling and prefix directory not created

查看:114
本文介绍了编译和preFIX目录未创建后libphp5.so不被创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  ./配置\\
    --with-apxs2 =的/ usr /本地/ Apache /斌/ APXS \\
     - preFIX =的/ usr /本地/ Apache / PHP \\
    --with-配置文件路径=在/ usr /本地/ Apache / PHP
让&功放;&安培;使安装

我在配置过程中没有看到严重错误,并没有在安装过程中。

Apache的安装在的/ usr /本地/ Apache 和APXS已被证实是正确的。

的/ usr /本地/ Apache / PHP 不被创建,也不是libphp5.so被任何地方产生的。

我在CentOS安装5.2.17。

修改:以下是完整的configure命令:

  ./配置\\
    --with-apxs2 =的/ usr /本地/ Apache /斌/ APXS \\
    --with-mysql的\\
     - preFIX =的/ usr /本地/ Apache / PHP \\
    --with-配置文件路径=在/ usr /本地/ Apache / PHP \\
    --enable-力CGI-重定向\\
    加上--disable-cgi \\
    --with-的OpenSSL \\
    --with-mcrypt的\\
    --with-GD \\
    --with-PDO MySQL的\\
    --without-sqlite的\\
    --without-sqlite3的\\
    --enable-PDO \\
    --without-PDO,sqlite的\\
    --with-zlib的\\
    --with-gettext的\\
    --with-GDBM \\
    --enable-pcnlt \\
    --with卷曲


解决方案

由于每安装PHP文件(我不能指责您未全部阅读...我花了谷歌一个小时前坐下,并看完整个事情),你需要确保Apache是​​安装

  ./配置--enable-这样

配置,使PHP与前

  ./配置--with-apxs2 =的/ usr /本地/ Apache2的/ bin中/ APXS

./configure \
    --with-apxs2=/usr/local/apache/bin/apxs \
    --prefix=/usr/local/apache/php \
    --with-config-file-path=/usr/local/apache/php
make && make install

I see no critical errors during the configuration, and none during installation.

Apache is installed at /usr/local/apache, and the apxs has been verified to be correct.

/usr/local/apache/php is not being created and neither is libphp5.so being generated anywhere.

I'm installing 5.2.17 on centos.

EDIT: Here's the full configure command:

./configure \
    --with-apxs2=/usr/local/apache/bin/apxs \
    --with-mysql \
    --prefix=/usr/local/apache/php \
    --with-config-file-path=/usr/local/apache/php \
    --enable-force-cgi-redirect \
    --disable-cgi \
    --with-openssl \
    --with-mcrypt \
    --with-gd \
    --with-pdo-mysql \
    --without-sqlite \
    --without-sqlite3 \
    --enable-pdo \
    --without-pdo-sqlite \
    --with-zlib \
    --with-gettext \
    --with-gdbm \
    --enable-pcnlt \
    --with-curl

解决方案

As per the php INSTALL file (which I can't fault you for not reading in its entirety... I spent an hour on google before sitting down and reading the whole thing), you need to make sure apache is installed with

./configure --enable-so

before configuring and making php with

./configure --with-apxs2=/usr/local/apache2/bin/apxs 

这篇关于编译和preFIX目录未创建后libphp5.so不被创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆