First, configure error 1. Type of error: Configure:error:Please Reinstall the Libcurl distribution-easy.h should be in <curl-dir>/include/curl/ Workaround: sudo apt-get install Libcurl4-gnutls-dev Libcurl4-openssl-dev 2. Type of error: Configure:error:sasl.h not found! Workaround: sudo apt-get install Libsasl2-dev 3. Type of error: Configure:error:Please Reinstall the ncurses distribution Workaround: sudo apt-get install Libncurses5-dev 4. Type of error: Configure:error:xml2-config not found. Please check your LIBXML2 installation. Workaround: sudo apt-get install Libxml2-dev 5. Type of error: Configure:error:Cannot find OpenSSL ' s <evp.h> Workaround: sudo apt-get install OpenSSL 6. Type of error: Configure:error:Please Reinstall the BZIP2 distribution Workaround: sudo apt-get install bzip2 7. Error Type: library is missing at compile time configure:error:libXpm. (a|so) not found Workaround: sudo apt-get install Libxpm-dev 8. Type of error: Configure:error:libjpeg. (also) not found. Configure:error:libpng. (also) not found. (These 2 errors in the version after 5.3 should not have, cancel this thing) Workaround: sudo apt-get install Libjpeg-dev Libpng12-dev 9. Type of error: Configure:error:Cannot find MySQL header files under/usr. Note that the MySQL client library isn't bundled anymore! The workaround (if it is in the order of my LNMP this error will not happen, because the database is already installed): sudo apt-get install Libmysql++-dev 10. Error Type: Gmp.h file is missing at compile time Configure:error:Unable to locate Gmp.h Workaround: sudo apt-get install Libgmp-dev Libgmp3-dev 11. Type of error: Configure:error:Cannot Find Pspell Workaround: sudo apt-get install Libpspell-dev 12. Type of error: Configure:error:mcrypt.h not found. Please reinstall Libmcrypt. Workaround: sudo apt-get install Libmcrypt-dev mcrypt 13. Type of error: Configure:error:snmp.h not found. Check your SNMP installation. Workaround: sudo apt-get install Libsnmp-dev 14. Configure:error:Cannot Find Ldap.h The popular method on the Internet is to install OPENLDAP. Workaround: Ubuntu under the LDAP package name is Libldap-2.4-2, Ldap-utils, Libldap2-dev, installation can 15. Type of error: Configure:error:xslt-config not found. Please reinstall the LIBXSLT >= 1.1.0 distribution Workaround: sudo apt-get install Libxslt1-dev 16. Type of error: Configure:error:Could not find libevent >=1.4.11 in/usr/local/php Workaround: Install libevent-1.4.11 or above to/usr/local Tar xzvf libevent-1.4.14-stable.tar.gz CD libevent-1.4.14-stable ./configure--prefix=/usr/local Make&&make Install Add--with-libevent-dir=/usr/local when compiling./configure 17. Type of error: Configure:error:Could not find pcre.h in/usr Workaround: sudo apt-get install Libpcre3-dev 18. Type of error: Configure:error:DBA:Could not find necessary header file (s). Checking for DB4 major version ... Configure:error:Header Contains different version Workaround: sudo apt-get install Libdb4.8-dev 19. Type of error: Configure:error:freetype.h not found. Workaround: sudo apt-get install Libfreetype6-dev 20. Type of error: Configure:error:Cannot find Libpq-fe.h. Please specify correct PostgreSQL installation path Workaround: sudo apt-get install postgresql-server-dev-9.1 21. Type of error: Configure:error:Your t1lib distribution is not installed correctly. Please reinstall it. Workaround: sudo apt-get install Libt1-dev 22. Type of error: Configure:error:Unable to find gd.h anywhere UNDER/USR Workaround: sudo apt-get install Libgd2-xpm-dev 23. Type of error: Configure:error:ODBC header file '/usr/include/sqlext.h ' not found! Workaround: sudo apt-get install Unixodbc-dev 24. Type of error: CONFIGURE:ERROR:DIRECTORY/USR is not a FreeTDS installation Directory Workaround: sudo apt-get install Freetds-dev 25. Type of error: Configure:error:Cannot Find Libtidy Workaround: sudo apt-get install Libtidy-dev 26. Type of error: Configure:error:You ' ve configured extension pdo_sqlite to build statically, but it depends on extension PDO, which you ' V E configured to build shared. You either need to build pdo_sqlite gkfx or build PDO statically for the build to be successful. Workaround: Add following switches to your./configure options: --with-pdo-sqlite=shared --with-sqlite=shared 27. Type of error: Configure:error:Cannot Find OpenSSL ' s libraries Workaround: Add following switch to your./configure options (optionally updating the path to reflect your system): --with-libdir=/lib/x86_64-linux-gnu So many errors from above can be seen mostly due to the incomplete installation of the library, and you will be prompted to know which packages are installed. Second, make error
1. Type of error: Error while loading shared Libraies:libmysqlclient.so.20:cannot open Shared object file:no such file or directory Workaround: Shell> Find/-name "libmysqlclient.so.20" /usr/local/mysql/lib/libmysqlclient.so.20 /usr/local/src/mysql-5.7.9/libmysql/cmakefiles/cmakerelink.dir/libmysqlclient.so.20 /usr/local/src/mysql-5.7.9/libmysql/libmysqlclient.so.20 shell> echo "/usr/local/lib" >>/etc/ld.so.conf shell> echo "/usr/local/mysql/lib" >>/etc/ld.so.conf shell> sudo ldconfig Or: Ln-s/usr/local/mysql/lib/libmysqlclient.so.20/usr/lib64 2. Type of error: CHMOD: Unable to access "Ext/phar/phar.phar": No file or directory Workaround: Mkdir-p Ext/phar/phar.phar 3. Type of error: usr/bin/ld:ext/ldap/.libs/ldap.o:undefined reference to symbol ' [email protected] @OPENLDAP_2.4_2 '//usr/lib/x86_64- Linux-gnu/liblber-2.4.so.2:error adding symbols:dso missing from command line Workaround: In this similar situation, it is stated that "./configure" does not grasp some environmental variable values. In the PHP source directory, vi Makefile find extra_libs line, add '-llber ' at the end of the save exit again make can. cd/usr/local/src/php/php-5.6.15 Vim Makefile Find Extra_libs line, add--llber at the end 4. Type of error: Cc1:out of memory allocating 2036 bytes after a total of 81846272 bytes /usr/bin/ld:cannot Find-lltdl Collect2:ld returned 1 exit status Workaround: sudo apt-get install Libltdl-dev Third, start the server error
1. Type of error: ERROR: [Pool www] cannot get GID for group ' nobody ' Workaround: Groupadd Nobody 2. Type of error: Connect () to Unix:/var/run/php-fpm/php-fpm.sock failed (13:permission denied) while connecting to upstream Workarounds (owner and group are written according to the runner): sudo vim/usr/local/php/etc/php-fpm.conf Listen.owner = www Listen.group = www Listen.mode = 0660 |