apache安装
1,
no SSL-C headers found
configure: error: ...No recognized SSL/TLS toolkit detected
configure: error: ...No recognized SSL/TLS toolkit detected
解决办法:
安装openssl-devel
2,
........................
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/httpd-2.2.11/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
查看了一下原来是错误开始于srclib/apr文件,检查gcc编译器时提示没发现并且在系统环境变量$PATH中没有合适的c编译器,以是使用yum -y install gcc来安装gcc编译器/或者用rpm包安装,就可继续安装了
cmake安装
1,Cannot find appropriate C++ compiler on this system.
说明缺少c++编译器,因此安装 yum -y install gcc-c++
用cmake安装mysql
1,
Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
先安装 ncurses-devel 包
yum install ncurses-devel
再删除刚才编译生成的 CMakeCache.txt 文件
rm CMakeCache.txt
再次执行一次cmake ...
安装php
please check your libxml2 installation
说明没有安装libxml2,没有找到配置文件
可下载libxml2安装包,并设置--prefix=/usr/local/libxml2.在安装php是,在configure后,-with-libxml-dir=/usr/local/libxml2
或者使用yum安装 : yum -y install libxml2 libxml2-devel yum安装后,php安装configure后面可以不加--with-libxml