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. |
| 24 | sudo rm -rf /usr/local/apr |
| 25 | sudo rm -f /usr/local/lib/libneon* |
| 26 | sudo rm -f /usr/local/lib/libsvn* |
| 27 | sudo rm -f /usr/local/lib/pkgconfig/neon.pc |
| 28 | sudo rm -f /usr/local/bin/swig |
| 29 | sudo rm -f /usr/local/bin/neon-config |
| 30 | sudo rm -f /usr/local/bin/svn* |
| 31 | |
| 32 | |
| 33 | # make a new directory to download all the source into |
| 34 | cd |
| 35 | mkdir source |
| 36 | cd source |
| 37 | |
| 38 | # download the source tarballs |
| 39 | curl http://apache.mirror.pacific.net.au/apr/apr-util-0.9.13.tar.gz > apr-util-0.9.13.tar.gz |
| 40 | curl http://apache.mirror.pacific.net.au/apr/apr-0.9.13.tar.gz > apr-0.9.13.tar.gz |
| 41 | curl http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz > subversion-1.4.3.tar.gz |
| 42 | curl http://downloads.sourceforge.net/swig/swig-1.3.31.tar.gz > swig-1.3.31.tar.gz |
| 43 | curl http://www.webdav.org/neon/neon-0.25.5.tar.gz > neon-0.25.5.tar.gz |
| 44 | curl http://www.clearsilver.net/downloads/clearsilver-0.9.14.tar.gz > clearsilver-0.9.14.tar.gz |
| 45 | curl http://optusnet.dl.sourceforge.net/sourceforge/docutils/docutils-0.4.tar.gz > docutils-0.4.tar.gz |
| 46 | curl http://ftp.edgewall.com/pub/trac/trac-0.10.3.tar.gz > trac-0.10.3.tar.gz |
| 47 | |
| 48 | # expand them |
| 49 | tar -zxf apr-util-0.9.13.tar.gz |
| 50 | tar -zxf apr-0.9.13.tar.gz |
| 51 | tar -zxf subversion-1.4.3.tar.gz |
| 52 | tar -zxf swig-1.3.31.tar.gz |
| 53 | tar -zxf neon-0.25.5.tar.gz |
| 54 | tar -zxf clearsilver-0.9.14.tar.gz |
| 55 | tar -zxf docutils-0.4.tar.gz |
| 56 | tar -zxf trac-0.10.3.tar.gz |
| 57 | |
| 58 | |
| 59 | # make 'apr' |
| 60 | cd apr-0.9.13 |
| 61 | ./configure |
| 62 | make |
| 63 | sudo make install |
| 64 | |
| 65 | cd .. |
| 66 | |
| 67 | |
| 68 | # make 'apr-util' |
| 69 | |
| 70 | cd apr-util-0.9.13 |
| 71 | ./configure --with-apr=/usr/local/apr |
| 72 | sudo make |
| 73 | sudo make install |
| 74 | |
| 75 | cd .. |
| 76 | |
| 77 | |
| 78 | |
| 79 | # make 'neon' |
| 80 | |
| 81 | cd neon-0.25.5 |
| 82 | ./configure --with-ssl |
| 83 | make |
| 84 | sudo make install |
| 85 | |
| 86 | cd .. |
| 87 | |
| 88 | |
| 89 | |
| 90 | # make 'swig' |
| 91 | |
| 92 | cd swig-1.3.31 |
| 93 | ./configure --with-python=/usr/bin/python |
| 94 | make |
| 95 | sudo make install |
| 96 | |
| 97 | cd .. |
| 98 | |
| 99 | |
| 100 | |
| 101 | # make 'subverion' |
| 102 | |
| 103 | cd 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 |
| 109 | make |
| 110 | sudo make install |
| 111 | |
| 112 | make swig-py |
| 113 | sudo make install-swig-py |
| 114 | echo /usr/local/lib/svn-python > /Library/Python/2.3/site-packages/svn-python.pth |
| 115 | |
| 116 | cd .. |
| 117 | |
| 118 | |
| 119 | |
| 120 | # make 'clearsilver' |
| 121 | |
| 122 | cd 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 |
| 126 | make |
| 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 |
| 129 | if [ -f /usr/bin/python -a ! -e /usr/local/bin/python ]; |
| 130 | then |
| 131 | sudo ln -s /usr/bin/python /usr/local/bin/python |
| 132 | fi |
| 133 | sudo make install |
| 134 | |
| 135 | cd .. |
| 136 | |
| 137 | |
| 138 | |
| 139 | # make 'docutils' |
| 140 | |
| 141 | cd docutils-0.4 |
| 142 | sudo python setup.py install |
| 143 | |
| 144 | cd .. |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | # and now for the finale!!! |
| 150 | # making 'trac' |
| 151 | |
| 152 | cd trac-0.10.3 |
| 153 | sudo ./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 |
| 157 | sudo ln -s /System/Library/Frameworks/Python.framework/Versions/Current/bin/trac* /usr/local/bin |
| 158 | |
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 | | |
| 162 | Contact the author of this page: Matt Connolly at matt-at-soundevolution.com.au for updates/comments. |