ubuntu 安装nginx,php,mysql。常见错误解决

sudo apt-get install -y libpcre3 libpcre3-dev zlib1g-dev
./configure --prefix=/usr/local/nginx     
 make
 sudo make install
 sudo ln -s /usr/local/nginx/sbin/nginx /etc/init.d/nginx
 sudo /etc/init.d/nginx

   

  PHP编译过程中常见错误信息的解决方法

http://lyp.cn/350_how-to-fix-php-compile-errors

    

  • What we are interested in here is libxml2-dev, let's install it then:

    sudo apt-get install libxml2-dev


    The same procedure applies to all other missing libraries as well, so I will include only final install calls from now on.

  • CONFIGURE: ERROR: COULD NOT FIND PCRE.H IN /USR

    sudo apt-get install libpcre3-dev

  • CONFIGURE: ERROR: PLEASE REINSTALL THE BZIP2 DISTRIBUTION

    sudo apt-get install libbz2-dev

  • CONFIGURE: ERROR: PLEASE REINSTALL THE LIBCURL DISTRIBUTION - EASY.H SHOULD BE IN /INCLUDE/CURL/

    sudo apt-get install libcurl4-openssl-dev

  • CONFIGURE: ERROR: DBA: COULD NOT FIND NECESSARY HEADER FILE(S).
    CHECKING FOR DB4 MAJOR VERSION... CONFIGURE: ERROR: HEADER CONTAINS DIFFERENT VERSION

    sudo apt-get install libdb4.8-dev

  • CONFIGURE: ERROR: LIBJPEG.(A|SO) NOT FOUND.

    sudo apt-get install libjpeg-dev

  • CONFIGURE: ERROR: LIBPNG.(A|SO) NOT FOUND.

    sudo apt-get install libpng12-dev

  • CONFIGURE: ERROR: LIBXPM.(A|SO) NOT FOUND.

    sudo apt-get install libxpm-dev

  • CONFIGURE: ERROR: FREETYPE.H NOT FOUND.

    sudo apt-get install libfreetype6-dev

  • YOU NEED TO INSTALL POSTGRESQL-SERVER-DEV-X.Y FOR BUILDING A SERVER-SIDE EXTENSION OR LIBPQ-DEV FOR BUILDING A CLIENT-SIDE APPLICATION.
    CONFIGURE: ERROR: CANNOT FIND LIBPQ-FE.H. PLEASE SPECIFY CORRECT POSTGRESQL INSTALLATION PATH

    sudo apt-get install postgresql-server-dev-9.1


    Make sure you check result of apt-cache search especially in case of this error, as there could be later version of PostgreSQL available.

  • CHECKING FOR FREETYPE 1 SUPPORT... NO - FREETYPE 2.X IS TO BE USED INSTEAD
    CONFIGURE: ERROR: YOUR T1LIB DISTRIBUTION IS NOT INSTALLED CORRECTLY. PLEASE REINSTALL IT.

    sudo apt-get install libt1-dev

  • CONFIGURE: ERROR: UNABLE TO FIND GD.H ANYWHERE UNDER /USR

    sudo apt-get install libgd2-xpm-dev

  • CONFIGURE: ERROR: UNABLE TO LOCATE GMP.H

    sudo apt-get install libgmp-dev

  • CONFIGURE: ERROR: CANNOT FIND MYSQL HEADER FILES UNDER /USR.
    NOTE THAT THE MYSQL CLIENT LIBRARY IS NOT BUNDLED ANYMORE!

    sudo apt-get install libmysqlclient-dev

  • CONFIGURE: ERROR: SASL.H NOT FOUND!

    sudo apt-get install libsasl2-dev

  • CONFIGURE: ERROR: PLEASE REINSTALL LIBMHASH - I CANNOT FIND MHASH.H

    sudo apt-get install libmhash-dev

  • CHECKING FOR UNIXODBC SUPPORT... CONFIGURE: ERROR: ODBC HEADER FILE '/USR/INCLUDE/SQLEXT.H' NOT FOUND!

    sudo apt-get install unixodbc-dev

  • CONFIGURE: ERROR: DIRECTORY /USR IS NOT A FREETDS INSTALLATION DIRECTORY

    sudo apt-get install freetds-dev

  • CONFIGURE: ERROR: CANNOT FIND PSPELL

    sudo apt-get install libpspell-dev

  • CONFIGURE: ERROR: SNMP SANITY CHECK FAILED. PLEASE CHECK CONFIG.LOG FOR MORE INFORMATION.

    sudo apt-get install libsnmp-dev

  • CONFIGURE: ERROR: CANNOT FIND LIBTIDY

    sudo apt-get install libtidy-dev

  • CONFIGURE: ERROR: XSLT-CONFIG NOT FOUND. PLEASE REINSTALL THE LIBXSLT >= 1.1.0 DISTRIBUTION

    sudo apt-get install libxslt1-dev

  • CONFIGURE: ERROR: MCRYPT.H NOT FOUND. PLEASE REINSTALL LIBMCRYPT.

    sudo apt-get install libmcrypt-dev




你可能感兴趣的:(ubuntu 安装nginx,php,mysql。常见错误解决)