LAMP 1.4 PHP编译安装问题解决

在这一步,遇到如下错误:
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法是:
# yum install -y libxml2-devel
还有错误:
configure: error: Cannot find OpenSSL‘s <evp.h>
解决办法是:
# yum install -y openssl openssl-devel
错误:
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解决办法:

# yum install -y bzip2 bzip2-devel
错误:
configure: error: png.h not found.
解决办法:
# yum install -y libpng libpng-devel
错误:
configure: error: freetype.h not found.
解决办法:
# yum install -y freetype freetype-devel
错误:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法:
# yum install -y epel-release
# yum install -y libmcrypt-devel
因为 centos6 默认的 yum 源没有 libmcrypt-devel 这个包,只能借助 epel 的 yum 源。

configure: error: jpeglib.h not found.错误

安装 yum install libjpeg-devel

时间: 2024-08-03 23:06:36

LAMP 1.4 PHP编译安装问题解决的相关文章

LAMP纯源码编译安装日志

一.LAMP构架的安装与经验技巧(源码安装好处.是便于管理,可以选定参数,可以使用新版本) 相关软件列表: # ls /soft/ | grep -E "*.gz|*.zip|*.xz|*.bz2"    apr-1.4.5.tar.gz    apr-util-1.3.12.tar.gz    autoconf-2.61.tar.gz    freetype-2.3.12.tar.gz    httpd-2.4.18.tar.bz2    jpegsrc.v6b.tar.gz    

LAMP中的php编译安装

下载安装包:wget  http://cn2.php.net/distributions/php-5.6.29.tar.gz php编译安装步骤: 一,配置编译参数./configure ./configure   \ >--prefix=/usr/local/php  \ >--with-apxs2=/usr/local/apache2/bin/apxs  \     //安装该参数后会出现php_module模块 >--with-config-file-path=/usr/local

centos下LAMP之源码编译安装httpd

1 最好先安装组件 [[email protected] ~]# yum groupinstall additional development [[email protected] ~]# yum groupinstall development tool 2 安装ap1.5.2r(Apache Portable Runtime),安装apr-util 1.5.4工具 [[email protected] ~]wget http://mirrors.cnnic.cn/apache//apr/a

lamp环境搭建之编译安装php

1,PRC (People's republic of China) timezone中设置的时间为中国时间. 2,php的官方镜像源,使用linux时可以直接下载的 http://cn2.php.net/distributions/php-5.6.30.tar.gz 3,编译安装php报错如下 configure: error: no acceptable C compiler found in $PATH 解决:yum安装gcc套件. 4,编译安装 ./configure 时报错,如下: c

lamp环境搭建之编译安装mysql

mysql 编译安装1,在网站上下载: wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.15.tar.gz 2,安装cmake yum安装即可.("CMake"这个名字是"cross platform make"的缩写,) 3,cmake使用报错: -- The CXX compiler identification is unknown CMake Error: your CXX compil

LAMP架构部署-- 三.编译安装PHP

LAMP组件介绍 LAMP是指Linux.Apache,Mysql以及PHP的简称,目前许多生产环境的都是用的LAMP架构,在网络应用和开发环境方面,LAMP组合是非常棒的,它们的结合提供了强大的功能. Linux作为底层的操作系统,提供了灵活且安全的应用平台,为其他的组件稳定运行提供了保障: Apache作为web服务器,提供了功能强大.稳定与支撑能力突出的web平台: Mysql也是一款优秀的数据库软件: PHP是一种开发脚本语言,可以嵌入HTML中,适用于web开发: 准备工作 操作系统:

LAMP 1.4 PHP编译安装

1.下载                                                                                                                                                                         切换到指定目录下 cd /usr/local/src 下载php wget http://cn2.php.net/distributions/php-5.

Centos6.6编译安装apache2.4.9

本系列教程感谢linux大神马哥提供指导: Centos6.7编译安装httpd 2.4.9 + mysql-5.5.33 + php-5.4.26 (LAMP) 一.编译安装apache2.4.9 httpd-2.4: 新特性: (1) MPM支持运行DSO机制:以模块形式按需加载: (2) 支持eventMPM: (3) 支持异步读写: (4) 支持每模块及每个目录分别使用各自的日志级别: (5) 每请求配置:<If> (6) 增强版的表达式分析器: (7) 支持毫秒级的keepalive

编译安装LAMP[两种结合方式]

本文旨在实践编译安装LAMP环境,搭建Zblog系统,使用Xcache为PHP加速,分离PHP与Apache Server LAMP基础知识 Linux + Apache + MySQL[MariaDB] + PHP[Perl|Pyton] 是一套基础的web环境: Apache有2.2版本,和最新的2.4版本,2.4版本支持Event MPM可用作生产环境,在http2.2中有3种MPM,为不同的进程文件,切换需要重启Apache服务:而2.4中MPM做成了DSO,可动态加载切换: Apach