| | 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 | $ apt-get install svn-client svn-swig-py23 |
|---|
| | 7 | }}} |
|---|
| | 8 | |
|---|
| | 9 | If you need to use a secure protocol with subversion, you need to install the -ssl variants: |
|---|
| | 10 | {{{ |
|---|
| | 11 | $ apt-get install svn-client-ssl svn-ssl-swig-py23 |
|---|
| | 12 | }}} |
|---|
| | 13 | |
|---|
| | 14 | The last two dependencies (pysqlite and clearsilver) can't be installed using fink, |
|---|
| | 15 | you have to download and install them manually. |
|---|
| | 16 | |
|---|
| | 17 | == Clearsilver == |
|---|
| | 18 | |
|---|
| | 19 | Download latest version from http://www.clearsilver.net/. Compile it with Python |
|---|
| | 20 | support and install it in the fink prefix. |
|---|
| | 21 | {{{ |
|---|
| | 22 | $ ./configure --prefix=/sw/ --with-python=/sw/bin/python2.3 |
|---|
| | 23 | $ make install |
|---|
| | 24 | }}} |
|---|
| | 25 | You might have to modify some some hard coded /usr/local/bin/python path to /sw/bin/python2.3 |
|---|
| | 26 | in some file when running {{{make install}}}. |
|---|
| | 27 | |
|---|
| | 28 | == pysqlite == |
|---|
| | 29 | |
|---|
| | 30 | The file {{{setup.py}}} in the pysqlite distribution doesn't recognize the darwin platform so you'll |
|---|
| | 31 | have to add the following lines to {{{setup.py}}} (it should be quite obvious where): |
|---|
| | 32 | {{{ |
|---|
| | 33 | elif sys.platform == "darwin": |
|---|
| | 34 | include_dirs = ['/sw/include/'] |
|---|
| | 35 | library_dirs = ['/sw/lib/'] |
|---|
| | 36 | libraries = [sqlite] |
|---|
| | 37 | runtime_library_dirs = [] |
|---|
| | 38 | extra_objects = [] |
|---|
| | 39 | }}} |
|---|
| | 40 | |
|---|
| | 41 | After that modification the installation should simply be: |
|---|
| | 42 | {{{ |
|---|
| | 43 | $ /sw/bin/python2.3 ./setup.py install |
|---|
| | 44 | }}} |
|---|
| | 45 | |
|---|
| | 46 | == Installing Trac itself == |
|---|
| | 47 | |
|---|
| | 48 | You should now be all set to install Trac using the TracInstall instructions. Make sure to use |
|---|
| | 49 | {{{/sw/bin/python2.3}}} when running the {{{setup.py}}} script. |
|---|
| | 50 | |
|---|
| | 51 | I had some problems getting apples personal web-server (apache 1.3) to run trac.cgi with the correct |
|---|
| | 52 | python interpreter (/sw/bin/python2.3) so I placed this dummy {{{trac.cgi}}} in |
|---|
| | 53 | {{{/Library/WebServer/CGI-Executables/}}}: |
|---|
| | 54 | {{{ |
|---|
| | 55 | #! /bin/sh |
|---|
| | 56 | /sw/bin/python2.3 /somewhere/cgi-bin/trac.cgi |
|---|
| | 57 | }}} |
|---|
| | 58 | |
|---|
| | 59 | |
|---|
| | 60 | Keep in mind that these instructions were written from the top of my mind and might be |
|---|
| | 61 | incomplete and contain some errors. If you find any errors please correct them by |
|---|
| | 62 | editing this page and/or contacting me -- [http://projects.edgewall.com/trac/wiki/JonasBorgstrom JonasBorgstrom] |
|---|
| | 63 | |
|---|
| | 64 | == Alternative install method: pkgsrc == |
|---|
| | 65 | |
|---|
| | 66 | As an alternative to fink and compiling by hand, you can install from pkgsrc (http://www.netbsd.org/Documentation/software/packages.html). Yes, pkgsrc runs on Mac OS X just as well as it runs on NetBSD or Linux. |
|---|
| | 67 | |
|---|
| | 68 | See TracOnNetBsd for more information. |