Edgewall Software

Changes between Version 3 and Version 4 of TracOnOsxMacPorts


Ignore:
Timestamp:
Apr 8, 2008, 1:02:16 AM (16 years ago)
Author:
cybertoast
Comment:

fix for xcode3 errors

Legend:

Unmodified
Added
Removed
Modified
  • TracOnOsxMacPorts

    v3 v4  
    1111
    1212Note 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
     14Also note that on Leopard with XCode 3.0 you might run into an error when you try to install mod_python25 using macports:
     15{{{
     16nih$ 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
     22Error: 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
     23Command output:
     24Compiling 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
     28libtool: compile: unable to infer tagged configuration
     29libtool: compile: specify a tag with `--tag'
     30apxs:Error: Command failed with rc=65536
     31.
     32make[1]: *** [mod_python.so] Error 1
     33make: *** [do_dso] Error 2
     34
     35Error: Status 1 encountered during processing.
     36}}}
     37
     38The 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}}}
     42to
     43{{{
     44$ltflags or $ltflags = "--silent --tag=CC";
     45}}}
     46
     47Then re-run
     48{{{
     49sudo port install mod_python25
     50}}}
    1351
    1452After installing mod_python you may need to add