LAMP编译安装遇到的问题

apache安装

1,

no SSL-C headers found
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

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值