开发者社区> 问答> 正文

关于php-fpm的安装配置问题

环境rhel6.4 64位
在使用安装命令 ./configure --prefix=/usr/local/php --with-php=/usr/local/php --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-jpeg-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-xmlrpc --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-bcmath --enable-libxml --enable-inline-optimization --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --with-zip --with-php=dir
时就会一直报错
错误如下
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for php configuration... configure: error: Please specify full path to php source dir: --with-php=DIR
,请问,这是哪里出错了么,需要怎么处理,谢谢解答

展开
收起
目送wts 2017-05-24 22:30:28 2722 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    题主您好,

    按提示的信息,

    其中的配置参数 --with-php=dir 中的dir是要填写具体的php源码路径喔。

    2019-07-17 21:13:00
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
PHP安全开发:从白帽角度做安全 立即下载
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载
复杂PHP系统性能瓶颈排查及优化 立即下载