CentOS 7 - сборка PHP 7.3.x: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) |
Admin iph (обсуждение | вклад) |
||
Строка 12: | Строка 12: | ||
# make | # make | ||
# make install | # make install | ||
+ | |||
+ | |||
+ | |||
+ | Ошибка: | ||
+ | In file included from /tmp/php-7.3.11/ext/zip/php_zip.h:31:0, | ||
+ | from /tmp/php-7.3.11/ext/zip/php_zip.c:36: | ||
+ | /usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or directory | ||
+ | #include <zipconf.h> | ||
+ | ^ | ||
+ | compilation terminated. | ||
+ | make: *** [ext/zip/php_zip.lo] Error 1 | ||
+ | |||
+ | Решение: | ||
+ | # cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h |
Версия 16:33, 19 ноября 2019
CentOS 7 - сборка PHP 7.3.x
# yum install libxml2-devel bzip2-devel curl-devel libjpeg-devel libpng-devel libX11-devel gd-devel libc-client libc-client-devel libmcrypt-devel mysql-devel gcc libzip-devel
Сборка php 7.3.11:
# wget -c https://www.php.net/distributions/php-7.3.11.tar.gz # tar -xzvf php-7.3.11.tar.gz # cd php-7.3.11 # ./configure --prefix=/opt/php73new --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-libdir=lib64 --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --with-openssl --enable-ftp --with-imap-ssl --with-kerberos --with-gettext --enable-cgi # make # make install
Ошибка:
In file included from /tmp/php-7.3.11/ext/zip/php_zip.h:31:0, from /tmp/php-7.3.11/ext/zip/php_zip.c:36: /usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or directory #include <zipconf.h> ^ compilation terminated. make: *** [ext/zip/php_zip.lo] Error 1
Решение:
# cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h