Created
October 3, 2014 08:46
-
-
Save duythien/cfd806c6ee28b10d5f0e to your computer and use it in GitHub Desktop.
Multi version php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Configure: error: Cannot find openssl's <evp.h> | |
| # yum install openssl-devel | |
| Could not find pcre.h in /usr | |
| # yum install pcre-devel | |
| Configure: error: Please reinstall the BZip2 distribution | |
| # yum install bzip2-devel | |
| Configure: error : Please reinstall the libcurl distribution. | |
| # yum install curl-devel | |
| DBA: Could not find necessary header file(s) | |
| # yum install db2-devel | |
| Configure: error: Unable to locate gmp.h | |
| # yum install gmp-devel | |
| Configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information | |
| # yum install libc-client-devel | |
| Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path | |
| # yum install postgresql-devel | |
| Configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution | |
| # yum install libxslt-devel | |
| Configure: error: freetype.h not found | |
| # yum install freetype-devel | |
| Configure: error: Cannot find ldap.h | |
| # yum install openldap-devel | |
| Could not find pspell | |
| # yum install aspell-devel | |
| Configure: error: xml2-config not found. Please check your libxml2 installation. | |
| # yum install libxml2-devel | |
| Configure: error: Cannot find MySQL header files under /usr. | |
| Note that the MySQL client library is not bundled anymore! | |
| Install the MySQL-devel package corresponding to your MySQL version | |
| Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found! | |
| # yum install unixODBC-devel | |
| Configure: error: snmp.h not found. Check your SNMP installation | |
| # yum install net-snmp-devel | |
| Note :- The following error occur while performing 'make' | |
| php-5.3.9/sapi/cli/php: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory | |
| make: *** [ext/phar/phar.php] Error 127 | |
| The solution was the libpq.so.5 library file which was present inside the lib directory of the PostgreSQL installation directory was copied to /usr/lib64 | |
| yum install libxml2-devel | |
| sudo yum install bison | |
| sudo yum install curl-devel | |
| sudo yum install libpng-devel -y | |
| yum install libc-client-devel | |
| yum install postgresql-devel | |
| ./configure \ | |
| --prefix=/opt/php-5.6 \ | |
| --with-pdo-pgsql \ | |
| --with-zlib-dir \ | |
| --with-freetype-dir \ | |
| --enable-mbstring \ | |
| --with-libxml-dir=/usr \ | |
| --enable-soap \ | |
| --enable-calendar \ | |
| --with-curl \ | |
| --with-mcrypt \ | |
| --with-zlib \ | |
| --with-gd \ | |
| --with-pgsql \ | |
| --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-mysql \ | |
| --with-pdo-mysql \ | |
| --with-mysqli \ | |
| --with-png-dir=/usr \ | |
| --enable-gd-native-ttf \ | |
| --with-openssl \ | |
| --with-fpm-user=duythien \ | |
| --with-fpm-group=duythien \ | |
| --with-libdir=lib64 \ | |
| --enable-ftp \ | |
| --with-imap \ | |
| --with-imap-ssl \ | |
| --with-kerberos \ | |
| --with-gettext \ | |
| --enable-fpm \ | |
| --with-gd \ | |
| --with-jpeg-dir=/usr/lib/ | |
| Wrote PEAR system config file at: /opt/php-5.6/etc/pear.conf | |
| You may want to add: /opt/php-5.6/lib/php to your php.ini include_path | |
| /usr/local/src/php5.6-build/php-src/build/shtool install -c ext/phar/phar.phar /opt/php-5.6/bin | |
| ln -s -f /opt/php-5.6/bin/phar.phar /opt/php-5.6/bin/phar | |
| Installing PDO headers: /opt/php-5.6/include/php/ext/pdo/ | |
| $ sudo cp /usr/share/doc/php-fpm/php-fpm.conf.default /opt/php-5.6/etc/php-fpm.conf | |
| $ sudo cp /usr/share/doc/php-common/php.ini-production /opt/php-5.6/lib/php.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment