apachedir=/home/local/apache
subvdir=/home/local/subversion
aprdir=/home/local/apr
aprutdir=/home/local/apr-util
swigdir=/home/local/swig
neondir=/home/local/neon
jdkdir=/usr/jdk1.5.0_06
tcldir=/home/local/tcl
sqlitedir=/home/local/sqlite
gzip -d -c tcl8.5.4-src.tar.gz | tar xvf -
cd tcl8.5.4
cd unix
./configure --prefix=${tcldir} --enable-threads --enable-shared --enable-symbols
make
make test
make install
gzip -d -c sqlite-3.6.1.tar.gz | tar xvf -
cd sqlite-3.6.1
cd /home/local
mkdir bld
cd bld
${TOOL_DIR}/sqlite-3.6.1/configure --prefix=${sqlitedir} --with-tcl=${tcldir}/lib
make
make install
gzip -d -c apr-1.3.3.tar.gz | tar xvf -
cd apr-1.3.3
./buildconf
./configure --prefix=${aprdir}
make
make test
make install
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/include/db4
export LD_LIBRARY_PATH
gzip -d -c apr-util-1.3.4.tar.gz | tar xvf -
cd apr-util-1.3.4
./configure --prefix=${aprutdir} --with-apr=${aprdir} --with-dbm=db4 --with-berkeley-db=/usr --with-sqlite3=${sqlitedir}
make
make test
make install
rpm -ivh openssl-devel-0.9.7d-15.10.i586.rpm
gzip -d -c neon-0.28.4.tar.gz | tar xvf -
cd neon-0.28.4
./configure --prefix=${neondir} --with-ssl=openssl
make
make install
cd /usr
chmod +x jdk-1_5_0_06-linux-i586.bin
./jdk-1_5_0_06-linux-i586.bin
gzip -d -c Python-2.6.2.tgz | tar xvf -
cd Python-2.6.2
./configure --prefix=/home/local/python
make
make install
LD_LIBRARY_PATH=/usr/include:/usr/include/db4:/usr/jdk1.5.0_06/include/:/home/local/python/lib:/home/local/ruby/lib:/home/local/python/lib/python2.6:$LD_LIBRARY_PATH
PYTHON=/home/local/python/bin
PYTHONPATH=/home/local/python/bin
PATH=/home/local/ruby/bin:${PYTHON}:$PATH:/usr/bin:/usr/jdk1.5.0_06/bin
export LD_LIBRARY_PATH PATH PYTHON PYTHONPATH
gzip -d -c swig-1.3.24.tar.gz | tar xvf -
cd SWIG-1.3.24
./configure --prefix=${swigdir} --with-python=/home/local/python/bin/python --with-java=${jdkdir}/bin --with-javac=${jdkdir}/bin --with-tcl=${tcldir}
make
make install
gzip -d -c httpd-2.2.9.tar.gz | tar xvf -
cd httpd-2.2.9
CFLAGS="-O6 -mpentiumpro -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6 -mpentiumpro -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=${apachedir} --enable-mods-shared=most --enable-so --with-mpm=worker --enable-deflate --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache --enable-rewrite --enable-info --enable-cgi --enable-cgid --enable-mime-magic --enable-vhost-alias --enable-proxy --enable-suexec --with-apr=${aprdir} --with-apr-util=${aprutdir} --enable-authn-dbm --enable-authz-dbm --enable-dbd --enable-dav
make
make install
gzip -d -c ruby-1.8.6-p368.tar.gz | tar xvf -
cd ruby-1.8.6-p368
./configure --prefix=/home/local/ruby
make
make install
gzip -d -c subversion-1.6.1.tar.gz | tar xvf -
cd subversion-1.6.1
./configure --prefix=${subvdir} --with-apxs=${apachedir}/bin/apxs --with-apr=${aprdir} --with-apr-util=${aprutdir} --with-neon=${neondir} --with-ssl --with-jdk=${jdkdir} --with-swig=${swigdir} --with-berkeley-db=db.h:/usr/include:/usr/lib:db-4 --with-sqlite=${sqlitedir}
make
make install
本文出自 “晨曦第一缕阳光照耀的地方” 博客,谢绝转载!