After using Trac for a little while I was impressed with how it worked, but not so much with the installation. So I compiled a list of things to do to make a smooth installation, and here's my instructions for Installing Trac on Mac OS X:
Download from here.
or copy and paste from below.
This requires an admin user, and you will be required to type in the admin password.
Enjoy.
#!/bin/sh
#
# installing trac on mac os x
#
# including subversion, and other needed components
#
# first clean out any of the old stuff.
sudo rm -rf /usr/local/apr
sudo rm -f /usr/local/lib/libneon*
sudo rm -f /usr/local/lib/libsvn*
sudo rm -f /usr/local/lib/pkgconfig/neon.pc
sudo rm -f /usr/local/bin/swig
sudo rm -f /usr/local/bin/neon-config
sudo rm -f /usr/local/bin/svn*
# make a new directory to download all the source into
cd
mkdir source
cd source
# download the source tarballs
curl http://apache.mirror.pacific.net.au/apr/apr-util-0.9.13.tar.gz > apr-util-0.9.13.tar.gz
curl http://apache.mirror.pacific.net.au/apr/apr-0.9.13.tar.gz > apr-0.9.13.tar.gz
curl http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz > subversion-1.4.3.tar.gz
curl http://downloads.sourceforge.net/swig/swig-1.3.31.tar.gz > swig-1.3.31.tar.gz
curl http://www.webdav.org/neon/neon-0.25.5.tar.gz > neon-0.25.5.tar.gz
curl http://www.clearsilver.net/downloads/clearsilver-0.9.14.tar.gz > clearsilver-0.9.14.tar.gz
curl http://optusnet.dl.sourceforge.net/sourceforge/docutils/docutils-0.4.tar.gz > docutils-0.4.tar.gz
curl http://ftp.edgewall.com/pub/trac/trac-0.10.3.tar.gz > trac-0.10.3.tar.gz
#expand them
tar -zxf apr-util-0.9.13.tar.gz
tar -zxf apr-0.9.13.tar.gz
tar -zxf subversion-1.4.3.tar.gz
tar -zxf swig-1.3.31.tar.gz
tar -zxf neon-0.25.5.tar.gz
tar -zxf clearsilver-0.9.14.tar.gz
tar -zxf docutils-0.4.tar.gz
tar -zxf trac-0.10.3.tar.gz
# make 'apr'
cd apr-0.9.13
./configure
make
sudo make install
cd ..
# make 'apr-util'
cd apr-util-0.9.13
./configure --with-apr=/usr/local/apr
sudo make
sudo make install
cd ..
# make 'neon'
cd neon-0.25.5
./configure --with-ssl
make
sudo make install
cd ..
# make 'swig'
cd swig-1.3.31
./configure --with-python=/usr/bin/python
make
sudo make install
cd ..
# make 'subverion'
cd subversion-1.4.3
./configure --with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr \
--with-zlib --with-ssl --with-neon=/usr/local \
--without-berkeley-db --enable-swig-bindings=python \
--with-swig=/usr/local/bin/swig PYTHON=/usr/bin/python
make
sudo make install
make swig-py
sudo make install-swig-py
echo /usr/local/lib/svn-python > /Library/Python/2.3/site-packages/svn-python.pth
cd ..
# make 'clearsilver'
cd clearsilver-0.9.14
./configure --prefix=/usr/local --with-python=/usr/bin/python --disable-ruby
make
# this is a hack to fix the files that want to run '/usr/local/bin/python'
# when it should just be '/usr/bin/python' as per the configure line above
if [ -f /usr/bin/python -a ! -e /usr/local/bin/python ];
then
sudo ln -s /usr/bin/python /usr/local/bin/python
fi
sudo make install
cd ..
# make 'docutils'
cd docutils-0.4
sudo python setup.py install
cd ..
# and now for the finale!!!
# making 'trac'
cd trac-0.10.3
sudo ./setup.py install
# make these available in '/usr/local/bin/'
# this assumes that '/usr/local/bin/' is in the user's path to run tracd / trac-admin
sudo ln -s /System/Library/Frameworks/Python.framework/Versions/Current/bin/trac* /usr/local/bin
No comments:
Post a Comment