编译lamp环境

2018-11-12 09:07:00
wyd621
原创 0

编译Openssl

./config --prefix=/usr/local/openssl shared

make depend && make && make install


编译Apache

checking for pcre-config... false

yum -y install pcre-devel

apt-get install libpcre3-dev


xml/apr_xml.c:35:19: 致命错误:expat.h:没有那个文件或目录

缺少expat-devel包

yum install -y expat-devel

apt-get install libexpat1-dev


编译Mariadb

apt-get install gnutls-dev libncurses5-dev bison cmake automake autoconf libtool bison libbison-dev libjemalloc-dev build-essential libssl-dev build-essential zlibc libidn11-dev libidn11 libev-libevent-dev



Curses library not found.  Please install appropriate package,

yum install -y ncurses-devel 


编译PHP

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

yum install -y libxml2-devel

apt-get install libxml2-dev libbz2-dev libmcrypt-dev zlib1g-dev libmysql++-dev libldap2-dev libsasl2-dev


configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

yum install -y libc-client-devel

http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/u/uw-imap-devel-2007f-16.el7.x86_64.rpm

http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libc-client-2007f-16.el7.x86_64.rpm


apt-get install libc-client-dev libkrb5-dev


configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so


configure: error: Cannot find ldap.h

yum install openldap-devel


configure: error: Cannot find ldap libraries in /usr/lib.

ln -s /usr/lib64/libldap* /usr/lib


checking for BZip2 in default path... not found

yum install -y bzip2-devel


yum install -y libcurl libcurl-devel

apt-get install curl libcurl4-gnutls-dev

yum install -y libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel

apt-get install libjpeg-dev libpng-dev libfreetype6-dev


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源,所以先安装epel,再安装libmcrypt。


usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line

 vim Makefile      #在以EXTRA_LIBS开头的一行结尾添加‘-llber’

发表评论
评论通过审核后显示。