1、ubuntu安装nginx后,测试配置文件总出现如下错误:

   /usr/local/nginx/sbin/nginx -t

   /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

解决办法:

  1. ln -s /usr/local/lib/libpcre.so.0 /usr/lib/libpcre.so.0 

2、MySQL编译过程中提示:

     /bin/rm: cannot remove `libtoolt': No such file or directory

   1、安装libtool包
  1. # yum -y install libtool 
    2、分别执行以下三条命令:
  1. # autoreconf --force --install 
  2. # libtoolize --automake --force 
  3. # automake --force --add-missing 

    再重新编译

3、error: Sorry expat.h not found, is libexpat and libexpat-dev installed?

   If not already installed, install automake, autoconf, libtool 

  1. $ sudo yum install automake autoconf libtool  

   If not already installed, install xsltproc

  1. $ sudo yum install xsltproc  

   If not already installed, install expat library and devel packages

  1. $ sudo yum install expat expat-devel