Changes between Initial Version and Version 1 of TracOnOsx


Ignore:
Timestamp:
03/10/04 08:16:18 (17 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracOnOsx

    v1 v1  
     1= Installing and running Trac on Mac OSX =
     2
     3Fink (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
     9Subversion is currently in fink's unstable tree (this will probably change soon).
     10This means that you have to use fink to compile the packages instead of simply using
     11apt-get to download the binaries directly. This will take some time but should work.
     12
     13The last two dependencies (pysqlite and clearsilver) can't be installed using fink,
     14you have to download and install them manually.
     15
     16== clearsilver ==
     17
     18Download latest version from http://www.clearsilver.net/. Compile it with Python
     19support and install it in the fink prefix.
     20{{{
     21 $ ./configure --prefix=/sw/ --with-python=/sw/bin/python2.3
     22 $ make install
     23}}}
     24You might have to modify some some hard coded /usr/local/bin/python path to /sw/bin/python2.3
     25in some file when running {{{make install}}}.
     26
     27== pysqlite ==
     28
     29The file {{{setup.py}}} in the pysqlite distribution doesn't recognize the darwin platform so you'll
     30have to add the following lines to {{{setup.py}}} (it should be quite obvious where):
     31{{{
     32elif 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
     40After that modification the installation should simply be:
     41{{{
     42 $ /sw/bin/python2.3 ./setup.py install
     43}}}
     44
     45== Installing Trac itself ==
     46
     47You 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
     50I had some problems getting apples personal web-server (apache 1.3) to run trac.cgi with the correct
     51python 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
     59Keep in mind that these instructions were written from the top of my mind and might be
     60incomplete and contain some errors. If you find any errors please correct them by
     61editing this page and/or contacting me -- JonasBorgstrom