среда, 31 декабря 2014 г.

Распространенные ошибки при компилировании PHP 5.6 в CentOS / RHEL

configure: error: libXpm.(a|so) not found.
Решение:
# yum install *libXpm*

configure: error: Cannot find OpenSSL's
Решение:
#yum install openssl openssl-devel

Configure: error: Please reinstall the ncurses distribution
Решение:
# yum install ncurses ncurses-devel



Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
Решение:
# yum install unixODBC-devel

configure: error: libgds or libib_util not found! Check config.log for more information.
Решение:
# yum install curl*
Configure: error: freetype.h not found.
Решение:
#yum install freetype-devel

Configure: error: Unable to locate gmp.h
Решение:
# yum install gmp-devel

Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Решение:
# yum install mysql-devel

Configure: error: libjpeg.(also) not found.
Решение:
# yum install libjpeg libjpeg-devel

Configure: error: libpng.(also) not found.
Решение:
# yum install libpng libpng-devel
Configure: error: Cannot find pspell
Решение:
# yum install pspell-devel

configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Решение:
# yum install libmcrypt libmcrypt-devel

Configure: error: snmp.h not found. Check your SNMP installation.
Решение:
# yum install net-snmp net-snmp-devel

Error: libmhash
Решение:
# yum install libmhash mhash-devel

configure: error: Cannot find MySQL header files under /usr.
Решение:
Note that the MySQL client library is not bundled anymore!
#yum install mysql-devel

configure: error: Please reinstall ming distribution. libming.(a|so) not found
- temp remove the config for ‘–with-ming=/opt/ming/’

configure: error: Cannot find pspell
Решение:
#yum install pspell-devel

configure: error: cannot find mm library
Решение:
wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz
Распаковать: tar -zxvf mm-1.4.2.tar.gz
./configure
make
make install

configure: error: Cannot find libtidy
Решение:
# yum install libtidy-develyum install libtidy
изменить путь у параметра: ‘–with-tidy=/usr’

configure: error: not found. Please reinstall the expat distribution.
Решение:
# yum install expat-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution)
Решение:
# yum install libxslt-devel

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

или

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing.
Решение:
# yum install libc-client-devel
Но у вас должен быть подключен либо EPL либо IOS репозиторий.
Эта ошибка может возникать при подключении IMAP. Как вариант либо от него отказаться, либо доставить все необходимое.

Если стоит флаг

--with-libdir=lib64

то может ругаться что не находит c-client.a библиотеку. Добавляем символическую ссылку на файл из /usr/lib


/usr/bin/ld: cannot find -lgcrypt
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Err
Решение:
# yum install libgcrypt-*

configure: error: Kerberos libraries not found.
Решение:
# yum install krb5-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
Решение:
# yum install libxslt-devel

configure: error: xml2-config not found. Please check your libxml2 installation.
Решение: install libxml2 libxml2-devel

checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL’s
Решение:
#yum install openssl openssl-devel

configure: error: Please reinstall the BZip2 distribution
Решение:
# yum install bzip2 bzip2-devel

configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/
Решение:
# yum install curl curl-devel

Комментариев нет:

Отправить комментарий