2015-12-30 26 views
0

从来源上的FreeBSD 10.2PHP共享的扩展安装问题

安装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安装一些扩展并获得相同的结果。 哪里出了错?如何用'.so'扩展来构建PHP?

+0

可以上传你的config.log somwhere – arved

+0

的config.log:http://pastebin.com/2LMCRXNv – mlavrik

+0

那。不是config.log,这是配置的输出,这是罪魁祸首:检查libtool是否支持共享库... no 检查是否构建共享库...否 – arved

回答

1

问题与“configure”脚本有关。它检查FreeBSD的各种版本,如freebsd3 *,freebsd2 *和freebsd1 *。在freebsd10.0 +上运行时,脚本认为它是freebsd1.0,它禁用共享对象和动态链接。从配置中删除有问题的freebsd1 *行可修复此问题。 更多信息 - https://bugs.php.net/bug.php?id=66007