在Mac OS El Capitan上编译php5错误


0

我正在尝试使用以下选项在MacOS Server 5(aka ElCapitan)上编译php 5.6.25:

    sudo ./configure \
--prefix=/usr/local/php5 \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/etc \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/usr/local/php5/php.d \
--with-config-file-scan-dir=/Library/Server/Web/Config/php \
--with-apxs2=/usr/sbin/apxs \
--with-bz2=/usr  \
--with-curl=/usr \
--with-freetype-dir=/usr/local/php5 \
--with-gd \
--with-gettext \
--with-iconv-dir=/usr \
--with-imap-ssl=/usr/local \
--with-imap=/usr/local \
--with-iodbc=/usr \
--with-jpeg-dir=/usr/local/php5 \
--with-kerberos=/usr \
--with-ldap \
--with-libxml-dir=/usr \
--with-mcrypt \
--with-mhash \
--with-mysql-sock=/var/mysql \
--with-mysql=/usr/local/mysql \
--with-pdo-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-openssl=/usr/local/include/openssl \
--with-pcre-regex \
--with-png-dir=/usr/local/php5 \
--with-snmp=/usr \
--with-t1lib=/usr/local/php5 \
--with-tidy \
--with-xmlrpc \
--with-xsl=/usr \
--with-zlib-dir=/usr \
--with-zlib=/usr \
--without-pear \
--enable-bcmath \
--enable-calendar \
--enable-cgi \
--enable-exif \
--enable-ftp \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-pcntl \
--enable-shmop  \
--enable-soap \
--enable-mbregex \
--enable-sockets \
--enable-cli \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-zip

我运行的第一个错误是缺少openSSL头文件,所以我通过自制程序安装它。 但现在我得到:

checking "whether flock struct is linux ordered"... "no"
checking "whether flock struct is BSD ordered"... "no"
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no

使用该选项设置它编译,但我想知道,如果之前解决该问题不是更好。

谢谢


配置运行,以错误结束:在/SourceCache/php-5.6.25/ext/odbc/php_odbc.c:37中包含的文件中:ext / odbc / php_odbc_includes.h:98:10:致命错误:'iodbcext。找不到文件#include< iodbcext.h>
Quwax

错误:'iodbcext.h'通过安装libiobbc解决了,但现在我得到了不支持的off_t大小
Quwax
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.