Edgewall Software

Changes between Version 4 and Version 5 of TracOnOsxMacPorts


Ignore:
Timestamp:
Sep 14, 2010, 12:36:42 AM (12 years ago)
Author:
raimue@…
Comment:

Update

Legend:

Unmodified
Added
Removed
Modified
  • TracOnOsxMacPorts

    v4 v5  
    88
    99Optional:
    10   1. sudo port install mod_python25
     10  1. sudo port install mod_python26
    1111
    12 Note that you must ensure that you have installed the right version of mod_python for the python version upon which trac depends.  As of late August, 2007 this is python25, and thus you have to use mod_python25.
    13 
    14 Also note that on Leopard with XCode 3.0 you might run into an error when you try to install mod_python25 using macports:
    15 {{{
    16 nih$ sudo port install mod_python25
    17 --->  Fetching mod_python25
    18 --->  Verifying checksum(s) for mod_python25
    19 --->  Extracting mod_python25
    20 --->  Configuring mod_python25
    21 --->  Building mod_python25 with target all
    22 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python25/work/mod_python-3.3.1" && make all " returned error 2
    23 Command output:
    24 Compiling for DSO.
    25 
    26 /opt/local/apache2/bin/apxs -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python25/work/mod_python-3.3.1/src/include -I/opt/local/apache2/include -I/opt/local/include/python2.5 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c finfoobject.c -L/opt/local/lib -Wl,-F/opt/local/Library/Frameworks -L/opt/local/lib/python2.5/config  -u _PyMac_Error   -L/opt/local/lib   -lm  -lpython2.5   -ldl                   
    27 /opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0 -prefer-pic -O2  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/opt/local/include -I/opt/local/apache2/include  -I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python25/work/mod_python-3.3.1/src/include -I/opt/local/apache2/include -I/opt/local/include/python2.5  -c -o mod_python.lo mod_python.c && touch mod_python.slo
    28 libtool: compile: unable to infer tagged configuration
    29 libtool: compile: specify a tag with `--tag'
    30 apxs:Error: Command failed with rc=65536
    31 .
    32 make[1]: *** [mod_python.so] Error 1
    33 make: *** [do_dso] Error 2
    34 
    35 Error: Status 1 encountered during processing.
    36 }}}
    37 
    38 The fix (from [http://boorad.weebly.com/1/post/2008/01/wrastling-macports-mod_python25.html here]) seems to be to edit /opt/local/apache2/bin/apxs and change (near line 50):
    39 {{{
    40 $ltflags or $ltflags = "--silent";
    41 }}}
    42 to
    43 {{{
    44 $ltflags or $ltflags = "--silent --tag=CC";
    45 }}}
    46 
    47 Then re-run
    48 {{{
    49 sudo port install mod_python25
    50 }}}
     12Note that you must ensure that you have installed the right version of mod_python for the python version upon which trac depends.  As of September, 2010 this is python26, and thus you have to use mod_python26.
    5113
    5214After installing mod_python you may need to add
    53 {{{LoadModule python_module modules/mod_python.so}}} to your httpd.conf file.
     15{{{LoadModule python_module modules/mod_python.so}}} to your /opt/local/apache2/conf/httpd.conf file.
    5416
    5517
     
    11981== If you installed Subversion without Berkeley DB support ==
    12082
    121 If you installed Subversion without Berkeley DB support and the rest as above you get an Trac error:
     83If you installed Subversion with the variant +no_bdb, but the rest as above you get a Trac error:
    12284
    12385{{{
     
    12991Either start again and follow the above instructions exactly or fix as follows:
    13092
    131  1. sudo port uninstall trac
    132  1. sudo port uninstall subversion-python25bindings
    133  1. sudo port install subversion-python25bindings +no_bdb
    134  1. sudo port install trac
    135 
     93{{{
     94sudo port upgrade --enforce-variants subversion-python26bindings +no_bdb
     95}}}