Linux下編譯安裝Apache、php和svn

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

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.22mysql

# 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.39c++

# ./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

svnsql

# 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

可能遇到的問題和解決方案apache

  • 這裏是列表文本這裏是列表文本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
相關文章
相關標籤/搜索