天天看点

linux 部署php svn,Linux下编译安装Apache、php和svn

CentOS release 6.5/6 (Final) is OK! preparation

yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel ssse2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gettext-devel libXpm-devel libtool cmake

apache2.2.22

# tar -zxvf httpd-2.2.22.tar.gz

# cd httpd-2.2.22

# ./configure --prefix=/system/apache2 -enable-dav --enable-mods-shared=all --enable-proxy --enable-proxy-http --enable-so --enable-ssl --enable-rewrite

# make && make install

php-5.4.39

# ./configure --prefix=/usr/local/php --with-apxs2=/system/apache2/bin/apxs --enable-shared --with-openssl --enable-mbstring --with-mysql=/usr/local/mysql --enable-sockets --enable-mysqlnd --enable-zip --with-zlib-dir --with-pdo-mysql --with-jpeg-dir --with-freetype-dir --with-curl --with-gd

# make && make install

#cp php.ini-development /usr/local/php/lib/php.ini

svn

# yum install expat-devel

# tar -zxvf neon-0.30.1.tar.gz

# tar -zxvf subversion-1.6.12.tar.gz

# tar -zxvf subversion-deps-1.6.12.tar.gz

# cd subversion-1.6.12

# rm -rf apr

# rm -rf neon

# rm -rf apr-util

# mv ../neon-0.30.1 ./neon

# ./configure --prefix=/usr/local/svn --with-apxs=/system/apache2/bin/apxs --with-apr=/system/apache2/bin/apr-1-config --with-apr-util=/system/apache2/bin/apu-1-config --with-ssl --with-zlib=/usr/local/lib --enable-maintainer-mode

# make

# make install

可能遇到的问题和解决方案

这里是列表文本这里是列表文本svn 安装过程出现/usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status make: *** [subversion/svn/svn] Error 1 解决方法 yum install expat-devel

这里是列表文本svn 安装过程出现undefined reference to `SSL_SESSION_cmp'解决方法 下载neon0.30.1,替换svn解压后目录中的neon