首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >PHP共享扩展安装问题

PHP共享扩展安装问题
EN

Stack Overflow用户
提问于 2015-12-31 00:14:42
回答 1查看 182关注 0票数 0

我在FreeBSD 10.2上从源代码安装php时遇到了一个问题。

代码语言:javascript
运行
复制
./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运行得很好。但在扩展目录中,我得到了:

代码语言:javascript
运行
复制
libcurl.a
libftp.a
libgd.a
libmbstring.a
libsoap.a
libsockets.a
libzip.a

没有'.so‘文件。而且我不能在php.ini中手动加载扩展。我还试着用pecl安装了一些扩展,也得到了同样的结果。A在哪里犯了错?如何构建带有'.so‘扩展的PHP?

EN

回答 1

Stack Overflow用户

发布于 2016-01-05 00:07:26

该问题与"configure“脚本相关。它检查各种版本的FreeBSD,如freebsd3*、freebsd2*和freebsd1*。从配置中删除有问题的freebsd1*行可以修复此问题。更多信息- https://bugs.php.net/bug.php?id=66007

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34533075

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档