Edgewall Software

Changes between Version 4 and Version 5 of TracOnOsxFromSources


Ignore:
Timestamp:
Feb 26, 2007, 10:22:28 PM (17 years ago)
Author:
matt@…
Comment:

more comprehensive installation

Legend:

Unmodified
Added
Removed
Modified
  • TracOnOsxFromSources

    v4 v5  
    1 This page describes how to install trac 0.10.2 on a standard OS X system. Everything is installed in a dedicated directory (namely '/trac'). There's no need to be root. Just copy and past the given instructions in the given order.
     1= Building Trac on OS X from Sources =
    22
     3Here are some revised instructions on building trac 0.10.3 (including subversion 1.4.3 and some of the required dependencies) on Mac OS X (10.4.8 is the system I ran this on).
     4
     5This does not build Python, Apache or SQL Lite as these are already pre-installed in the Mac OS and work just fine.
     6
     7Copy the below code snippet as a shell script, and it should all run in one big hit. You'll need to sit and enter your admin password for the commands prefixed with '`sudo`'. Alternatively you could sudo the execution of the whole script. (I prefer to not have the root user doing downloads and compilations).
     8
     9Special note: most of these components are the latest at the time of writing this page and work fine. Except for neon. Subversion has a problem with the latest version of neon, so stick with neon 0.25.5 until you know that Subversion will work with something newer.
     10
     11Here it is:
    312-------------------------------------
    413
    5 == python 2.4.4 ==
     14{{{
     15#!/bin/sh
     16#
     17#       installing trac on mac os x
     18#
     19#       including subversion, and other needed components
     20#
    621
    7 {{{
    8 ./configure --prefix=/trac --with-threads --disable-framework --disable-toolbox-glue --disable-ipv6 && make -j 4 && make install
     22
     23# first clean out any of the old stuff.
     24sudo rm -rf /usr/local/apr
     25sudo rm -f /usr/local/lib/libneon*
     26sudo rm -f /usr/local/lib/libsvn*
     27sudo rm -f /usr/local/lib/pkgconfig/neon.pc
     28sudo rm -f /usr/local/bin/swig
     29sudo rm -f /usr/local/bin/neon-config
     30sudo rm -f /usr/local/bin/svn*
     31
     32
     33# make a new directory to download all the source into
     34cd
     35mkdir source
     36cd source
     37
     38# download the source tarballs
     39curl http://apache.mirror.pacific.net.au/apr/apr-util-0.9.13.tar.gz > apr-util-0.9.13.tar.gz
     40curl http://apache.mirror.pacific.net.au/apr/apr-0.9.13.tar.gz > apr-0.9.13.tar.gz
     41curl http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz > subversion-1.4.3.tar.gz
     42curl http://downloads.sourceforge.net/swig/swig-1.3.31.tar.gz > swig-1.3.31.tar.gz
     43curl http://www.webdav.org/neon/neon-0.25.5.tar.gz > neon-0.25.5.tar.gz
     44curl http://www.clearsilver.net/downloads/clearsilver-0.9.14.tar.gz > clearsilver-0.9.14.tar.gz
     45curl http://optusnet.dl.sourceforge.net/sourceforge/docutils/docutils-0.4.tar.gz > docutils-0.4.tar.gz
     46curl http://ftp.edgewall.com/pub/trac/trac-0.10.3.tar.gz > trac-0.10.3.tar.gz
     47
     48# expand them
     49tar -zxf apr-util-0.9.13.tar.gz
     50tar -zxf apr-0.9.13.tar.gz
     51tar -zxf subversion-1.4.3.tar.gz
     52tar -zxf swig-1.3.31.tar.gz
     53tar -zxf neon-0.25.5.tar.gz
     54tar -zxf clearsilver-0.9.14.tar.gz
     55tar -zxf docutils-0.4.tar.gz
     56tar -zxf trac-0.10.3.tar.gz
     57
     58
     59# make 'apr'
     60cd apr-0.9.13
     61./configure
     62make
     63sudo make install
     64
     65cd ..
     66
     67
     68# make 'apr-util'
     69
     70cd apr-util-0.9.13
     71./configure --with-apr=/usr/local/apr
     72sudo make
     73sudo make install
     74
     75cd ..
     76
     77
     78
     79# make 'neon'
     80
     81cd neon-0.25.5
     82./configure --with-ssl
     83make
     84sudo make install
     85
     86cd ..
     87
     88
     89
     90# make 'swig'
     91
     92cd swig-1.3.31
     93./configure --with-python=/usr/bin/python
     94make
     95sudo make install
     96
     97cd ..
     98
     99
     100
     101# make 'subverion'
     102
     103cd subversion-1.4.3
     104./configure --with-apr=/usr/local/apr \
     105--with-apr-util=/usr/local/apr \
     106--with-zlib --with-ssl --with-neon=/usr/local \
     107--without-berkeley-db --enable-swig-bindings=python \
     108--with-swig=/usr/local/bin/swig PYTHON=/usr/bin/python
     109make
     110sudo make install
     111
     112make swig-py
     113sudo make install-swig-py
     114echo /usr/local/lib/svn-python > /Library/Python/2.3/site-packages/svn-python.pth
     115
     116cd ..
     117
     118
     119
     120# make 'clearsilver'
     121
     122cd clearsilver-0.9.14
     123# ruby is disabled here. you may wish to disable other parts of clearsilver
     124# type "./configure --help" for more info.
     125./configure --prefix=/usr/local --with-python=/usr/bin/python --disable-ruby
     126make
     127# this is a hack to fix the files that want to run '/usr/local/bin/python'
     128# when it should just be '/usr/bin/python' as per the configure line above
     129if [ -f /usr/bin/python -a ! -e /usr/local/bin/python ];
     130then
     131        sudo ln -s /usr/bin/python /usr/local/bin/python
     132fi
     133sudo make install
     134
     135cd ..
     136
     137
     138
     139# make 'docutils'
     140
     141cd docutils-0.4
     142sudo python setup.py install
     143
     144cd ..
     145
     146
     147
     148
     149# and now for the finale!!!
     150# making 'trac'
     151
     152cd trac-0.10.3
     153sudo ./setup.py install
     154
     155# make these available in '/usr/local/bin/'
     156# this assumes that '/usr/local/bin/' is in the user's path to run tracd / trac-admin
     157sudo ln -s /System/Library/Frameworks/Python.framework/Versions/Current/bin/trac* /usr/local/bin
     158
    9159}}}
    10160
    11 -------------------------------------
    12161
    13 == Apache 2.2.3 ==
    14 
    15 {{{
    16 make clean && ./configure --prefix=/trac --enable-so --enable-dav --enable-ssl --enable-rewrite --enable-cgi --with-included-apr --with-mpm=worker && make -j 4 && make install
    17 }}}
    18 
    19 -------------------------------------
    20 == Swig 1.3.30 ==
    21 
    22 {{{
    23 ./configure --prefix=/trac --with-python=/trac/bin/python --without-ocaml --without-php4 --without-guile --without-java --without-java --without-perl5 --without-tcl --without-x --without-ruby --without-mzscheme --without-pike --without-gcj --without-chicken --without-csharp --without-lua --without-allegrocl --without-clisp  && make -j 4 && make install
    24 }}}
    25 
    26 -------------------------------------
    27 == Neon 0.25.5 ==
    28 
    29 ''This version is required, otherwise subversion won't recognize it.''
    30 
    31 {{{
    32 ./configure --prefix=/trac --disable-nls --disable-debug --with-ssl=openssl && make -j 4 && make install
    33 }}}
    34 
    35 -------------------------------------
    36 
    37 == Subversion 1.4.2 ==
    38 
    39 {{{
    40 ./configure --prefix=/trac --with-apxs=/trac/bin/apxs --with-apr=/trac/bin/apr-1-config --with-apr-util=/trac/bin/apu-1-config --without-berkeley-db --enable-swig-bindings=python --with-ssl --with-swig=/trac/bin/swig && make -j 4 && make install && make -j 4 swig-py && make install-swig-py
    41 }}}
    42 
    43 Add
    44 {{{
    45 /trac/lib/svn-python
    46 }}}
    47 In
    48 {{{
    49 /trac/lib/python2.4/site-packages/svn.pth
    50 }}}
    51 
    52 -----------------------------
    53 
    54 == Mod_Python 3.2.10 ==
    55 
    56 {{{
    57 ./configure --with-apxs=/trac/bin/apxs --with-python=/trac/bin/python --with-max-locks=64 && make -j 4 && make install
    58 }}}
    59 -----------------------------
    60 
    61 == ez_setup.py ==
    62 
    63 {{{
    64 curl -O http://peak.telecommunity.com/dist/ez_setup.py && python ez_setup.py
    65 }}}
    66 
    67 -----------------------------
    68 
    69 == SQLite 3.3.8 ==
    70 
    71 {{{
    72 ./configure --prefix=/trac --enable-threadsafe --disable-tcl && make -j 4 && make install
    73 }}}
    74 
    75 -----------------------------
    76 
    77 == Pysqlite 2.3.2 ==
    78 
    79 {{{
    80 python setup.py install
    81 }}}
    82 
    83 ------------------------------
    84 
    85 == Clearsilver 0.9.14 ==
    86 
    87 {{{
    88 ./configure --prefix=/trac --with-python=/trac/bin/python --disable-java --disable-csharp --disable-ruby --disable-perl --disable-apache && make -j 4
    89 }}}
    90 
    91 Now, replace the first line of 'scripts/document.py' with
    92 {{{
    93 #!/trac/bin/python
    94 }}}
    95 
    96 Then (it produces an error):
    97 {{{
    98 make install
    99 }}}
    100 
    101 Finally, go into python and then:
    102 {{{
    103 python setup.py install
    104 }}}
    105 
    106 ------------------------------
    107 
    108 == docutils ==
    109 
    110 {{{
    111 python setup.py install
    112 }}}
    113 
    114 ------------------------------
    115 
    116 == trac 0.10.2 ==
    117 
    118 {{{
    119 python setup.py install
    120 }}}
    121 
     162Contact the author of this page: Matt Connolly at matt-at-soundevolution.com.au for updates/comments.