CentOS 7 - сборка PHP 7.3.x: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
(Новая страница: «=== 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-…»)
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 3: Строка 3:
  
 
  # 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
 
  # 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
 
  # wget -c https://www.php.net/distributions/php-7.3.11.tar.gz
 
  # tar -xzvf php-7.3.11.tar.gz
 
  # tar -xzvf php-7.3.11.tar.gz
Строка 9: Строка 12:
 
  # make
 
  # make
 
  # make install
 
  # make install
 +
 +
 +
Ошибка:
 +
configure: error: off_t undefined; check your library configuration
 +
Решение:
 +
# echo '/usr/local/lib64
 +
/usr/local/lib
 +
/usr/lib
 +
/usr/lib64'>>/etc/ld.so.conf
 +
# ldconfig -v
 +
 +
 +
Ошибка:
 +
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:34, 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


Ошибка:

configure: error: off_t undefined; check your library configuration

Решение:

# echo '/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64'>>/etc/ld.so.conf
# ldconfig -v


Ошибка:

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