Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes from Version 1 of TracOnOsx

Show
Ignore:
Author:
trac (IP: 127.0.0.1)
Timestamp:
11/22/05 05:15:11 (18 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracOnOsx

    v0 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 $ apt-get install svn-client svn-swig-py23 
     7}}} 
     8 
     9If 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 
     14The last two dependencies (pysqlite and clearsilver) can't be installed using fink,  
     15you have to download and install them manually. 
     16 
     17== Clearsilver == 
     18 
     19Download latest version from http://www.clearsilver.net/. Compile it with Python  
     20support and install it in the fink prefix. 
     21{{{ 
     22 $ ./configure --prefix=/sw/ --with-python=/sw/bin/python2.3 
     23 $ make install 
     24}}} 
     25You might have to modify some some hard coded /usr/local/bin/python path to /sw/bin/python2.3  
     26in some file when running {{{make install}}}. 
     27 
     28== pysqlite == 
     29 
     30The file {{{setup.py}}} in the pysqlite distribution doesn't recognize the darwin platform so you'll 
     31have to add the following lines to {{{setup.py}}} (it should be quite obvious where): 
     32{{{ 
     33elif 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 
     41After that modification the installation should simply be: 
     42{{{ 
     43 $ /sw/bin/python2.3 ./setup.py install 
     44}}} 
     45 
     46== Installing Trac itself == 
     47 
     48You 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 
     51I had some problems getting apples personal web-server (apache 1.3) to run trac.cgi with the correct 
     52python 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 
     60Keep in mind that these instructions were written from the top of my mind and might be 
     61incomplete and contain some errors. If you find any errors please correct them by 
     62editing this page and/or contacting me -- [http://projects.edgewall.com/trac/wiki/JonasBorgstrom JonasBorgstrom] 
     63 
     64== Alternative install method: pkgsrc == 
     65 
     66As 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 
     68See TracOnNetBsd for more information.