您的位置:首页 > 运维架构 > Linux

LNMP安装问题实录

2011-01-13 23:03 423 查看
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
解决办法:
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包
# yum -y install libtool

2、分别执行以下三条命令:
# autoreconf --force --install
# libtoolize --automake --force
# 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

$ sudo yum install automake autoconf libtool

If not already installed, install xsltproc

$ sudo yum install xsltproc

If not already installed, install expat library and devel packages

$ sudo yum install expat expat-devel
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息