compile php5 no erro MacOS ElCapitan

0

Eu estou tentando compilar o PHP 5.6.25 no MacOS Server 5 (também conhecido como ElCapitan) com estas opções:

    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

o primeiro erro em que corri foram os arquivos de cabeçalho openSSL ausentes, então instalei-o via homebrew. Mas agora eu recebo:

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

Com essa opção, ele compila, mas eu me pergunto se não seria melhor resolver esse problema antes.

Obrigado

    
por Quwax 13.09.2016 / 12:31

0 respostas