我在FreeBSD 10.2上从源代码安装php时遇到了一个问题。
./configure --prefix=/usr/local/php53 \
--without-pear \
-with-pcre-regex=/usr/local \
--with-libxml-dir=/usr/local \
--enable-shared=yes \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-ftp=shared \
--enable-mbstring=shared \
--enable-soap=shared \
--enable-sockets=shared \
--enable-zip=shared \
--with-zlib \
--with-curl=shared \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-pdo-mysql=/usr/local/mysql \
--enable-dba \
--with-gd=shared \
--with-jpeg-dir=/usr/local \
--enable-gd-native-ttf \
--with-iconv=/usr/local \
--with-gnu-ld \
--with-layout=GNU
PHP运行得很好。但在扩展目录中,我得到了:
libcurl.a
libftp.a
libgd.a
libmbstring.a
libsoap.a
libsockets.a
libzip.a
没有'.so‘文件。而且我不能在php.ini
中手动加载扩展。我还试着用pecl安装了一些扩展,也得到了同样的结果。A在哪里犯了错?如何构建带有'.so‘扩展的PHP?
发布于 2016-01-05 00:07:26
该问题与"configure“脚本相关。它检查各种版本的FreeBSD,如freebsd3*、freebsd2*和freebsd1*。从配置中删除有问题的freebsd1*行可以修复此问题。更多信息- https://bugs.php.net/bug.php?id=66007
https://stackoverflow.com/questions/34533075
复制相似问题