编译lamp时错误

在编译安装lamp时出现的错误及解决方法。
apache
执行了configure,make后
make install时出错:
/bin/sh /usr/local/httpd-2.2.3/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache22/lib
make[2]: *** [install] Error 1

先make clean,再configure ; make;make install

mysql

在make时遇到
 -fno-rtti -c -o my_new.o my_new.cc
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] Error 127
make[2]: Leaving directory `/root/mysql-5.0.67/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql-5.0.67'
make: *** [all] Error 2

解决办法
yum install gcc-c++

一般都是缺东西造成的,可以查看错误信息,然后yum install 安装。再进行编译。


hph:
configure: error: xml2-config not found. Please check your libxml2 installation.

解决:
yum install libxml2 libxml2-devel

你可能感兴趣的:(职场,休闲,编译lamp时错误)