| 1 | = Installing and running Trac on Mac OSX = |
| 2 | |
| 3 | Fink (http://fink.sf.net/) can be used to install most of Trac's dependencies: |
| 4 | {{{ |
| 5 | $ apt-get install sqlite |
| 6 | $ fink install svn-client svn-swig-py |
| 7 | }}} |
| 8 | |
| 9 | Subversion is currently in fink's unstable tree (this will probably change soon). |
| 10 | This means that you have to use fink to compile the packages instead of simply using |
| 11 | apt-get to download the binaries directly. This will take some time but should work. |
| 12 | |
| 13 | The last two dependencies (pysqlite and clearsilver) can't be installed using fink, |
| 14 | you have to download and install them manually. |
| 15 | |
| 16 | == clearsilver == |
| 17 | |
| 18 | Download latest version from http://www.clearsilver.net/. Compile it with Python |
| 19 | support and install it in the fink prefix. |
| 20 | {{{ |
| 21 | $ ./configure --prefix=/sw/ --with-python=/sw/bin/python2.3 |
| 22 | $ make install |
| 23 | }}} |
| 24 | You might have to modify some some hard coded /usr/local/bin/python path to /sw/bin/python2.3 |
| 25 | in some file when running {{{make install}}}. |
| 26 | |
| 27 | == pysqlite == |
| 28 | |
| 29 | The file {{{setup.py}}} in the pysqlite distribution doesn't recognize the darwin platform so you'll |
| 30 | have to add the following lines to {{{setup.py}}} (it should be quite obvious where): |
| 31 | {{{ |
| 32 | elif sys.platform == "darwin": |
| 33 | include_dirs = ['/sw/include/'] |
| 34 | library_dirs = ['/sw/lib/'] |
| 35 | libraries = [sqlite] |
| 36 | runtime_library_dirs = [] |
| 37 | extra_objects = [] |
| 38 | }}} |
| 39 | |
| 40 | After that modification the installation should simply be: |
| 41 | {{{ |
| 42 | $ /sw/bin/python2.3 ./setup.py install |
| 43 | }}} |
| 44 | |
| 45 | == Installing Trac itself == |
| 46 | |
| 47 | You should now be all set to install Trac using the TracInstall instructions. Make sure to use |
| 48 | {{{/sw/bin/python2.3}}} when running the {{{setup.py}}} script. |
| 49 | |
| 50 | I had some problems getting apples personal web-server (apache 1.3) to run trac.cgi with the correct |
| 51 | python interpreter (/sw/bin/python2.3) so I placed this dummy {{{trac.cgi}}} in |
| 52 | {{{/Library/WebServer/CGI-Executables/}}}: |
| 53 | {{{ |
| 54 | #! /bin/sh |
| 55 | /sw/bin/python2.3 /somewhere/cgi-bin/trac.cgi |
| 56 | }}} |
| 57 | |
| 58 | |
| 59 | Keep in mind that these instructions were written from the top of my mind and might be |
| 60 | incomplete and contain some errors. If you find any errors please correct them by |
| 61 | editing this page and/or contacting me -- JonasBorgstrom |