компилировать php5 на MacOS ElCapitan ошибка

272
Quwax

Я пытаюсь скомпилировать php 5.6.25 на MacOS Server 5 (он же ElCapitan) с этими параметрами:

 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, поэтому я установил их с помощью homebrew. Но теперь я получаю:

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 

С этой опцией он компилируется, но мне интересно, не лучше ли было бы решить эту проблему раньше.

Спасибо

0
настройка выполняется, завершается с ошибкой: В файле, включенном в /SourceCache/php-5.6.25/ext/odbc/php_odbc.c:37: ext / odbc / php_odbc_includes.h: 98: 10: фатальная ошибка: 'iodbcext. h 'файл не найден #include Quwax 7 лет назад 0
ошибка: 'iodbcext.h' решена через установку libiobbc, но теперь я получаю неподдерживаемый размер off_t Quwax 7 лет назад 0

0 ответов на вопрос