Changes between Version 46 and Version 47 of TracOnOsxNoFink
- Timestamp:
- Jan 11, 2016, 11:43:38 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnOsxNoFink
v46 v47 1 [[PageOutline ]]2 3 = Installing Trac on Mac OS X, without Fink or MacPorts =4 5 == Subversion the easy way ==6 7 If you are using Python 2.5.x (from http://python.org/download/ or pre-installed on Leopard) and either use Apache 2.2.4 or don't need `mod_dav_svn`, your best bet is going to be get the [http://downloads.open.collab.net/binaries.html opencollab precompiled Subversion]. It has a nice installer and in my experience ''just works''. You will still need to install the other prereqs as detailed in the [#Otherprerequisites section after next].8 9 Its Python modules seem to work with Python 2.3.5 on Tiger but emit several warnings about a C api mismatch on startup (they still pass the Trac tests though).If you want seamless integration with 2.3 or Apache 2.0, read on.10 11 == Subversion the slightly harder way ==12 13 These instructions are written specifically for building Python 2.3 bindings when you have another Python (say 2.5) installed as default. Adjust the instances of python2.3 for another Python as appropriate (specify path if necessary).This will install under `/usr/local` which allows it to coexist with the opencollab bindings, above.14 15 Note 1: These steps require using the Terminal (`/Applications/Utilities/Terminal.app`). Some basic commands are left out, namely extracting (for `.tgz` or `.tar.gz`, `tar -xvzf FILENAME_HERE`; for `.tbz2` or `.tar.bz2`, `tar -xvjf FILENAME_HERE`) and directory changing. You also must be in the `admin` group, so you can run `sudo`.If you need help with these steps, just hop on our IrcChannel.16 17 Note 2: if you have a muscle memory to use `wget` to download things, you can either [http://www.statusq.org/archives/2005/02/22/610 install it] or set up a quick bash function that'll do the equivalent with curl:18 19 {{{ 1 [[PageOutline(2-5,Contents,pullout)]] 2 3 = Installing Trac on Mac OS X, without Fink or !MacPorts 4 5 == Subversion the easy way 6 7 If you are using Python 2.5.x (from http://python.org/download/ or pre-installed on Leopard) and either use Apache 2.2.4 or don't need `mod_dav_svn`, your best bet is going to be get the [http://downloads.open.collab.net/binaries.html opencollab precompiled Subversion]. It has a nice installer and in my experience ''just works''. You will still need to install the other prerequisites as detailed in the [#Otherprerequisites section after next]. 8 9 Its Python modules seem to work with Python 2.3.5 on Tiger but emit several warnings about a C API mismatch on startup. They still pass the Trac tests though. If you want seamless integration with 2.3 or Apache 2.0, read on. 10 11 == Subversion the slightly harder way 12 13 These instructions are written specifically for building Python 2.3 bindings when you have another Python (say 2.5) installed as default. Adjust the instances of Python 2.3 for another Python as appropriate (specify path if necessary). This will install under `/usr/local` which allows it to coexist with the opencollab bindings, above. 14 15 '''Note 1''': These steps require using the Terminal (`/Applications/Utilities/Terminal.app`). Some basic commands are left out, namely extracting (for `.tgz` or `.tar.gz`, `tar -xvzf FILENAME_HERE`; for `.tbz2` or `.tar.bz2`, `tar -xvjf FILENAME_HERE`) and directory changing. You also must be in the `admin` group, so you can run `sudo`. If you need help with these steps, just hop on our IrcChannel. 16 17 '''Note 2''': if you have a muscle memory to use `wget` to download things, you can either [http://www.statusq.org/archives/2005/02/22/610 install it] or set up a quick bash function that'll do the equivalent with curl: 18 19 {{{#!sh 20 20 $ alias wget="curl -O" 21 21 }}} 22 22 23 Note 3: if you want to use Apache 2.0, [http://developer.apple.com/tools/subversionxcode.html go ahead and build it separately]. You will lose the ability to start/stop it in the Sharing pane though. Apache 2.2 comes with Leopard and `mod_dav_svn` can evidently be built against that without recompiling Apache.However the package above comes with a precompiled 2.2 module that may work.23 '''Note 3''': If you want to use Apache 2.0, [http://developer.apple.com/tools/subversionxcode.html go ahead and build it separately]. You will lose the ability to start/stop it in the Sharing pane though. Apache 2.2 comes with Leopard and `mod_dav_svn` can evidently be built against that without recompiling Apache. However the package above comes with a precompiled 2.2 module that may work. 24 24 25 25 Let's begin. 26 26 27 1. If you're on Tiger, get the [https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=19681 XCode 2.4.1 dmg] (free ADC login required, check bugmenot) and install it. XCode 2.5 seems to have a [http://osflash.org/pipermail/swfmill_osflash.org/2008-January/001665.html broken/missing libtool on Tiger].If on Leopard, use XCode 3.0, it should work correctly. ('''FIXME: Verify''')27 1. If you're on Tiger, get the [https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=19681 XCode 2.4.1 dmg] (free ADC login required, check bugmenot) and install it. XCode 2.5 seems to have a [http://osflash.org/pipermail/swfmill_osflash.org/2008-January/001665.html broken/missing libtool on Tiger]. If on Leopard, use XCode 3.0, it should work correctly. ('''FIXME: Verify''') 28 28 29 29 2. [http://www.swig.org/download.html Download] and build SWIG. 30 30 31 {{{ 31 {{{#!sh 32 32 $ ./configure --with-python=python2.3 33 33 $ make … … 37 37 With version 1.3.34, this took under 4 minutes on a lowly G4. 38 38 39 3. [http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74 Download] and extract both `subversion` and `subversion-deps` from the same folder. 40 41 {{{ 39 3. [http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74 Download] and extract both `subversion` and `subversion-deps` from the same folder. They will end up overlaying. 40 41 {{{#!sh 42 42 $ ./configure --without-berkeley-db --with-ssl --with-zlib PYTHON=python2.3 43 43 $ make … … 46 46 }}} 47 47 48 The configure step is recursive and may look like it is looping. Just let it sit for a while and **be patient**. Expect a message at the end of configure about not being build with bdb support.That's fine, you don't want bdb anyway!49 50 If you want to build `mod_dav_svn`, you need to add some additional arguments here, check [http://developer.apple.com/tools/subversionxcode.html the Apple install doc] for examples as you will want to use the `apxs` and `apr` options from it. .48 The configure step is recursive and may look like it is looping. Just let it sit for a while and expect a message at the end of configure about not being build with bdb support. That's fine, you don't want bdb anyway! 49 50 If you want to build `mod_dav_svn`, you need to add some additional arguments here, check [http://developer.apple.com/tools/subversionxcode.html the Apple install doc] for examples as you will want to use the `apxs` and `apr` options from it. 51 51 52 52 With Subversion 1.4.6, the `make` steps took approximately 15 minutes each on a lowly G4. 53 53 54 4. Add the svn bindings to your `$PYTHONPATH`. 55 56 {{{ 54 4. Add the svn bindings to your `$PYTHONPATH`. The easiest way to do this is detailed in [http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/INSTALL the install doc] for Subversion: 55 56 {{{#!sh 57 57 $ echo /usr/local/lib/svn-python > /Library/Python/2.3/site-packages/svn-python.pth 58 58 }}} … … 60 60 If you are not using the bundled 2.3, figure out where your site-packages directory lives: 61 61 62 {{{ 62 {{{#!sh 63 63 $ python -c 'import site; print site.sitedirs[0]' 64 64 }}} 65 65 66 5. Enjoy! 67 68 == Other prerequisites == 69 70 1. setuptools (required for 0.11, doesn't hurt for 0.10) 71 72 {{{ 66 == Other prerequisites 67 68 1. setuptools (required for 0.11, doesn't hurt for 0.10): 69 70 {{{#!sh 73 71 $ wget http://peak.telecommunity.com/dist/ez_setup.py 74 72 $ sudo python2.3 ez_setup.py … … 77 75 Then add `/System/Library/Frameworks/Python.framework/Versions/2.3/bin` to '''the end''' of your path (presuming you want a coresident 2.5 to be primary, and will suffix all commands with the Python version). 78 76 79 {{{ 77 {{{#!sh 80 78 echo 'PATH="${PATH}:/System/Library/Frameworks/Python.framework/Versions/2.3/bin"' >> ~/.bash_profile 81 79 echo 'export PATH' >> ~/.bash_profile 82 80 }}} 83 81 84 '''Do not''' forget the doubled greater-than, otherwise you'll overwrite existing commands in your `.bash_profile`. 85 86 2. pysqlite2 (both 0.10 and 0.11) can build against the bundled libsqlite3 on Tiger. [http://pysqlite.org Download the sources], extract, and87 88 {{{ 82 '''Do not''' forget the doubled greater-than, otherwise you'll overwrite existing commands in your `.bash_profile`. Now type `source ~/.bash_profile` to make it take effect immediately. 83 84 2. pysqlite2 (both 0.10 and 0.11) can build against the bundled libsqlite3 on Tiger. [http://pysqlite.org Download the sources], extract, and run: 85 86 {{{#!sh 89 87 $ python2.3 setup.py build 90 88 $ sudo python2.3 setup.py install … … 93 91 This just takes less than a minute with pysqlite 2.4.1 on a G4. 94 92 95 3. clearsilver (0.10)96 97 {{{ 93 3. Clearsilver (0.10): 94 95 {{{#!sh 98 96 $ ./configure --prefix=/usr/local --disable-ruby --with-python=`which python2.3` 99 97 $ make … … 101 99 $ sudo python python/setup.py install 102 100 }}} 103 The make step will take approximately a minute to complete. If you do not supply the full path to a python binary, it will fall back to a broken section of configure (at least using clearsilver 0.10.5) which will result in site-packages being in the install path twice. 104 105 '''Note:''' On Intel-Based Mac's running Leopard, you may need to configure with "./configure --build=i386 --with-python=`which python` --disable-ruby" if it fails to guess the architecture of neo_cgi.so during make. 106 107 108 4. Genshi (0.11) 109 110 {{{ 101 102 The make step will take approximately a minute to complete. If you do not supply the full path to a python binary, it will fall back to a broken section of configure (at least using clearsilver 0.10.5) which will result in site-packages being in the install path twice. 103 104 '''Note:''' On Intel-Based Mac's running Leopard, you may need to configure with "./configure --build=i386 --with-python=`which python` --disable-ruby" if it fails to guess the architecture of neo_cgi.so during make. 105 106 4. Genshi (0.11): 107 108 {{{#!sh 111 109 $ sudo easy_install-2.3 Genshi 112 110 }}} 113 111 114 5. Pygments for syntax highlighting (0.10 with TH:TracPygments plugin, automatic on 0.11) 115 116 {{{ 112 5. Pygments for syntax highlighting (0.10 with TH:TracPygments plugin, automatic on 0.11): 113 114 {{{#!sh 117 115 $ sudo easy_install-2.3 Pygments 118 116 }}} 119 117 120 == Subversion the old way ==121 122 '''These are advanced instructions.''' You should be familiar with the Terminal, the standard configure/make process, and be intimately aware of what python versions you have on your system and the order they are in your path.If you're using Tiger/Leopard and want a simpler solution, scroll back up.118 == Subversion the old way 119 120 '''These are advanced instructions.''' You should be familiar with the Terminal, the standard configure/make process, and be intimately aware of what python versions you have on your system and the order they are in your path. If you're using Tiger/Leopard and want a simpler solution, scroll back up. 123 121 124 122 ---- 125 123 126 127 I have found that trying to install Trac and all its dependencies, notably subversion and the swig bindings, on OS X 10.3 without using [http://fink.sf.net/ Fink], to be surprisingly difficult and full of gotchas. With some perseverance, and considerable help from kind folks on the trac and subversion users lists, I have succeeded. In the hope that this may help others, I am documenting here what has worked for me. 124 I have found that trying to install Trac and all its dependencies, notably Subversion and the swig bindings, on OS X 10.3 without using [http://fink.sf.net/ Fink], to be surprisingly difficult and full of caveats. With some perseverance, and considerable help from kind folks on the Trac and Subversion users lists, I have succeeded. In the hope that this may help others, I am documenting here what has worked for me. 128 125 129 126 This procedure intentionally specifies that subversion be installed without Berkeley DB, thus svn repositories will be only [http://svn.collab.net/repos/svn/trunk/notes/fsfs FSFS], as per current recommendation. … … 131 128 The details here are quite tightly bound to the specific version of each package installed, and therefore are likely to change quickly. Please take this into account, and do not follow them blindly! Also, if you discover any incorrectness, or obsoleteness, please be so kind as to either update this document yourself, or just contact me on ''mario@ruggier.org'' about it. 132 129 133 You should allow yourself a comfortable hour or so for this installation procedure. .. and that is real quick and easy when compared to the few days of frustration I spent figuring out why things were not working, due to incomplete, inconsistent, or just contradictory documentation that is currently available!134 135 == Requirements ==130 You should allow yourself a comfortable hour or so for this installation procedure. 131 132 == Requirements 136 133 137 134 * Apache 1.3, the one bundled with OS X 10.3 138 135 * [http://www.python.org/ Python], use the stock python 2.3 that comes with your OS X 10.3 system (in {{{/usr/bin/python}}}) 139 136 * [http://www.webdav.org/neon/ neon], version 0.25.x (0.25.3 is OK) 140 * [http://www.swig.org/ swig], version '''=''' 1.3.21, and '''not''' 1.3.24 ! !137 * [http://www.swig.org/ swig], version '''=''' 1.3.21, and '''not''' 1.3.24 ! 141 138 * [http://subversion.tigris.org/ Subversion], version 1.x.x (1.2.3 is OK) (1.4 not recommended with XCode <= 2.4 see [#subversion below]) 142 139 * [http://www.sqlite.org/ SQLite], version 3.x.x (3.2.5 is OK) 143 * [http://pysqlite.org/ PySQLite], version 1.1.6, and '''not''' 2.0 and up 140 * [http://pysqlite.org/ PySQLite], version 1.1.6, and '''not''' 2.0 and up 144 141 * [http://clearsilver.net/ Clearsilver], version 0.9.14, and '''not''' 0.10.1 145 142 * [http://docutils.sourceforge.net/ docutils], version 0.3.x (0.3.9 is OK) 146 143 * [http://projects.edgewall.com/trac/ trac], version 0.8.x 147 144 148 ''Andrew Durdin says:'' I'm using OS X 10.4, and successfully installed trac with the following library versions (somewhat contrary to the notes above):145 ''Andrew Durdin says:'' I'm using OS X 10.4, and successfully installed Trac with the following library versions (somewhat contrary to the notes above): 149 146 150 147 ||Trac||0.9.5|| … … 158 155 ||docutils||0.4|| 159 156 160 "Paul Yu says:" I'm using OS X 10.4.7 Server, and successfully install trac with the following library versions:157 ''Paul Yu says:'' I'm using OS X 10.4.7 Server, and successfully installed Trac with the following library versions: 161 158 162 159 ||Trac||0.9.6|| … … 169 166 ||Clearsilver||0.10.3|| 170 167 ||docutils||Latest snapshot (8/17/2006)|| 171 I did have to mv /usr/lib/libsqlite3.0.dylib and /usr/lib/sqlite3 (directory) to *.old. This overcame a problem with the PySQLite installation and test. see this link. [http://lists.initd.org/pipermail/pysqlite/2006-April/000484.html] 172 173 174 "(2007-07-23) Nico C says:" Successfully installed on OS X 10.4.10 (Xcode 2.4.1 installed) with these versions: 168 I did have to mv /usr/lib/libsqlite3.0.dylib and /usr/lib/sqlite3 (directory) to *.old. This overcame a problem with the PySQLite installation and test. see this link. [http://lists.initd.org/pipermail/pysqlite/2006-April/000484.html] 169 170 ''Nico C (2007-07-23) says:'' Successfully installed on OS X 10.4.10 (Xcode 2.4.1 installed) with these versions: 175 171 176 172 ||Trac||0.10.4|| … … 184 180 ||docutils||0.4|| 185 181 186 "(2008-03-10) Ryan Morales says: " Successfully configured TRAC 0.10.4 on MacOSX 10.4.10 with Xcode 2.5 installed. 187 Installer versions: 182 ''Ryan Morales (2008-03-10) says:'' Successfully configured Trac 0.10.4 on MacOSX 10.4.10 with Xcode 2.5 installed: 188 183 189 184 ||Apache||2.2.6|| … … 199 194 ||docutils||0.4|| 200 195 201 202 203 204 205 206 207 I'm running Trac with the supplied ''tracd'' server because CGI is realy too slow and the Apache installed by Apple doesn't include ''mod_python''. 208 209 == Preliminaries == 210 211 === no fink === 196 I'm running Trac with the supplied ''tracd'' server, because the Apache installed by Apple doesn't include ''mod_python''. 197 198 == Preliminaries 199 200 === no fink 212 201 213 202 Preferably you do not have fink in your environment, to avoid that the various configure scripts pick up libraries to link to from under fink. So, make sure that your env path does not include any {{{/sw}}} dirs, and that the file {{{/sw/bin/init.sh}}} is not being executed from anywhere in your {{{.profile}}}. 214 203 215 === tar over zip ===204 === tar over zip 216 205 217 206 When downloading the various packages, and have the choice between zip or tar source archives, prefer the tar distributions as zip has sometimes given carriage return problems, resulting in bizarre errors later on. 218 207 219 === clean-up ===208 === clean-up 220 209 221 210 '''Note:''' you may prefer to do this clean-up step only if a first installation attempt fails. 222 211 223 212 Clean out any previously installed libs and executables prior to doing the installation process. The files to remove (or rename) are: 224 {{{ 213 {{{#!sh 225 214 sudo rm -rf /usr/local/apr 226 215 sudo rm -f /usr/local/lib/libneon* … … 234 223 235 224 Plus, if you happen to have any previous installations of the swig svn python bindings in your site packages, then remove (or rename) them: 236 {{{ 225 {{{#!sh 237 226 sudo rm -rf /Library/Python/2.3/libsvn 238 227 sudo rm -rf /Library/Python/2.3/svn 239 228 }}} 240 229 241 242 == Installing the Packages == 230 == Installing the Packages 243 231 244 232 I will only describe the essentials that are particular to OS X, and to installing without Fink. Please substitute any steps not detailed here with their generic equivalents in TracInstall. 245 233 246 === neon ===234 === neon 247 235 248 236 In theory you should not need to install this separately, but doing so may avoid some confusing warnings when installing subversion, due to missing entry for darwin in the neon configure script (the neon currently bundled with subversion). See this [http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=26484 note on the svn users list] as to why we may want to install neon separately. 249 237 250 * Get latest source tarball from (http://www.webdav.org/neon/) 251 {{{ 238 * Get latest source tarball from (http://www.webdav.org/neon/): 239 {{{#!sh 252 240 cd <neon-distribution-top-dir> 253 241 ./configure --with-ssl … … 257 245 * For OS 10.4, if it doesn't install try commenting out NE_HAVE_I18N and HAVE_TIMEZONE in config.h 258 246 259 === swig ===260 261 The latest version of swig (1.3.24) will '''not''' work! You need version 1.3.21, as stated in this [http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=26451 message on the svn users list]: 247 === swig 248 249 The latest version of swig (1.3.24) will '''not''' work! You need version 1.3.21, as stated in this [http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=26451 message on the svn users list]: "subversion 1.1.x currently REQUIRES swig >= 1.3.19 and <= 1.3.21. Swig1.3.24 is _not_ supported." 262 250 263 251 * Get source tarball for '''1.3.21''' from (http://www.swig.org/) 264 252 * See the generalized [http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/INSTALL INSTALL] procedure, from which highlights are extracted below: 265 {{{ 253 {{{#!sh 266 254 cd <swig-distribution-top-dir> 267 255 ./configure --with-python=/usr/bin/python … … 272 260 }}} 273 261 274 275 === subversion === 276 277 Get latest source tarball from (http://subversion.tigris.org/). Note that you may get a prepared package for subversion from (http://www.codingmonkeys.de/mbo/), thanks to Martin Ott. You probably will anyhow still need the tarball above though for compiling the python bindings. Note: The Ott package does not have everything that is needed to work with trac, so it is better to just follow the make install instructions below. I was able to install Ott's package and then make install from the source with no ill effects. 262 === subversion 263 264 Get latest source tarball from (http://subversion.tigris.org/). Note that you may get a prepared package for subversion from (http://www.codingmonkeys.de/mbo/), thanks to Martin Ott. You probably will still need the tarball above though for compiling the python bindings. Note: The Ott package does not have everything that is needed to work with Trac, so it is better to just follow the make install instructions below. I was able to install Ott's package and then make install from the source with no ill effects. 278 265 279 266 For 10.3: 280 {{{ 267 {{{#!sh 281 268 cd <subversion-distribution-top-dir> 282 269 ./configure --with-zlib --with-ssl --with-neon=/usr/local --without-berkeley-db --enable-swig-bindings=python --with-swig=/usr/local/bin/swig PYTHON=/usr/bin/python … … 286 273 287 274 For Mac OS X 10.4, the following works: 288 {{{ 275 {{{#!sh 289 276 cd <subversion-distribution-top-dir> 290 277 GXX=yes ./configure --without-berkeley-db --enable-swig-bindings=python --with-swig=/usr/local/bin/swig PYTHON=/usr/bin/python PYTHON2=/usr/bin/python2.3 … … 293 280 }}} 294 281 295 '''N OTE''': make sure you download the tar archive as the zip (for subversion 1.2.3) gave problems with carraige returns, specifically in the file {{{ac-helpers/install-sh}}}. You should see something like the output below (no bizarre chars) when you do:296 {{{ 282 '''Note''': make sure you download the tar archive as the zip (for subversion 1.2.3) gave problems with carraige returns, specifically in the file {{{ac-helpers/install-sh}}}. You should see something like the output below (no bizarre chars) when you do: 283 {{{#!sh 297 284 $ grep -n ^# ac-helpers/* | grep ':1:' | grep /bin/sh | cat -vte 298 285 ac-helpers/config.guess:1:#! /bin/sh$ … … 302 289 }}} 303 290 304 '''''COMPATIBILITY''''': Subversion 1.4 has changed the format of the .svn/entries files in a way that XCode version <= 2.4 does not understand. 291 '''''COMPATIBILITY''''': Subversion 1.4 has changed the format of the .svn/entries files in a way that XCode version <= 2.4 does not understand. Your options are as follows: 305 292 * You can stay at 1.3.2 306 293 * See [http://www.macupdate.com/info.php/id/22882 this workaround]. 307 294 * Upgrade XCode to 2.4.1 308 295 309 === swig svn python bindings ===296 === swig svn python bindings 310 297 311 298 For 10.3 do: 312 {{{ 299 {{{#!sh 313 300 cd <subversion-distribution-top-dir> 314 301 make swig-py … … 318 305 319 306 For 10.4 do: 320 {{{ 307 {{{#!sh 321 308 cd <subversion-distribution-top-dir> 322 309 make swig-py … … 325 312 }}} 326 313 327 === sqlite, pysqlite ===314 === sqlite, pysqlite 328 315 329 316 * Get sqlite latest source tarball from (http://www.sqlite.org/) and pysqlite latest source tarball from (http://pysqlite.org/) 330 317 * Follow their respectives installation instructions. 331 * '''NOTE (sqlite)''': The sqlite OS X install instructions that I found said to configure with the '--disable-shared' option, claiming that OS X's libtool is busted and thus generates bad dynamic/shared libraries. However, disabling shared libraries generated an error during the make install step, because one of the install scripts looks for a shared library (identified by extension .dylib) regardless of the configure options. So, in good UNIX fashion, I ignored the instructions and tried it with the shared libraries.I did a 'make test' and all the regression tests passed, so it seems that the problem with libtool has been fixed and '--disable-shared' is no longer necessary.332 * '''NOTE (pysqlite)''': The build step ('python setup.py build') failed with a "No such file or directory" error on "/opt/local/lib". I opened up setup.py and found that for OS X (and only OS X), it sets the lib path to /opt/local/lib.On my system, this was wrong, so I changed it to /usr/local/lib.318 * '''NOTE (sqlite)''': The sqlite OS X install instructions that I found said to configure with the '--disable-shared' option, claiming that OS X's libtool is busted and thus generates bad dynamic/shared libraries. However, disabling shared libraries generated an error during the make install step, because one of the install scripts looks for a shared library (identified by extension .dylib) regardless of the configure options. So, in good UNIX fashion, I ignored the instructions and tried it with the shared libraries. I did a 'make test' and all the regression tests passed, so it seems that the problem with libtool has been fixed and '--disable-shared' is no longer necessary. 319 * '''NOTE (pysqlite)''': The build step ('python setup.py build') failed with a "No such file or directory" error on "/opt/local/lib". I opened up setup.py and found that for OS X (and only OS X), it sets the lib path to /opt/local/lib. On my system, this was wrong, so I changed it to /usr/local/lib. 333 320 * '''NOTE (pysqlite)''': Just to clear up any confusion regarding API versions - and this probably only applies if you're going to use SQLite 3, either installed by hand or as shipped with OS X 10.4 - PySQLite v2.0x will not work with Trac (as of 0.9-pre). Instead, get the latest stable 1.1.x (1.1.6 as of this writing) version. '''DO NOT''' install PySQLite 2.x as it is a new version that will not work with Trac. 334 321 335 === clearsilver ===322 === clearsilver 336 323 337 324 * Get the 0.9.14 ('''not the latest''') tarball from (http://www.clearsilver.net/) 338 * Installation procedure slightly different from those given by TracOnOsx 339 {{{ 325 * Installation procedure slightly different from those given by TracOnOsx: 326 {{{#!sh 340 327 cd <clearsilver-distribution-top-dir> 341 328 ./configure --prefix=/usr/local --with-python=/usr/bin/python --disable-ruby … … 347 334 2007-11-06 Andy W says: I have been using clearsilver 0.10.4 successfully on OS-X 10.4 installations. But On OS-X Server 10.4.10 (i386), clearsilver 0.10.4 could not build neo_cgi.so. Clearsilver 0.10.5 built and installed neo_cgi.so, but put it in a funky directory {{{/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/site-packages}}} (note the double site-packages). When I moved the library to just python2.3/site-packages, it worked. 348 335 349 2008- 3-14 Zach says: Run "sudo python python/setup.py install" after "sudo make install" and it installs to the right location. Also, On Intel-Based Mac's running Leopard (And maybe Tiger Server from Andy's error message), you may need to configure with "./configure --build-i386 --with-python=`which python` --disable-ruby" if it fails to guess the architecture of neo_cgi.so during make. It defaults to /usr/local, so theres no need to tell it to install there.350 351 === docutils ===336 2008-03-14 Zach says: Run "sudo python python/setup.py install" after "sudo make install" and it installs to the right location. Also, On Intel-Based Mac's running Leopard (And maybe Tiger Server from Andy's error message), you may need to configure with "./configure --build-i386 --with-python=`which python` --disable-ruby" if it fails to guess the architecture of neo_cgi.so during make. It defaults to /usr/local, so theres no need to tell it to install there. 337 338 === docutils 352 339 353 340 * Get latest source tarball from (http://docutils.sourceforge.net/). 354 341 * Standard setuptools installation. 355 342 356 === trac ===343 === trac 357 344 358 345 * Standard setuptools installation … … 365 352 For setting up access from Apache, see TracInstall, TracOnOsx, TracMultipleProjects. 366 353 367 == Creating a trac environment ==354 == Creating a trac environment 368 355 369 356 First choose a location for your subversion repository, e.g. {{{/var/svn/test}}}, and one for you trac environment, e.g. {{{/var/trac/test}}}. 370 357 371 === svn repository ===358 === svn repository 372 359 373 360 Specifying {{{fs-type}}} is actually not necessary, as we have built without bdb, thus making {{{fsfs}}} the default backend file system. … … 378 365 379 366 To make sure the repository is ok, play with it a little: 380 {{{ 367 {{{#!sh 381 368 cd /tmp 382 369 mkdir proj … … 391 378 }}} 392 379 393 === trac environment ===380 === trac environment 394 381 395 382 {{{ … … 419 406 ''mario@ruggier.org'' 420 407 421 == OS X 10.5, basic Trac + clearsilver + bundled Apache ==408 == OS X 10.5, basic Trac + clearsilver + bundled Apache 422 409 423 410 By Toby Thain, mailto:toby@telegraphics.com.au 424 411 425 === Trac === 412 === Trac 413 426 414 Download and extract 0.10.4, then as root, 427 415 {{{ … … 434 422 }}} 435 423 436 === clearsilver === 424 === clearsilver 425 437 426 Typically, the build is problematic. I did: 438 427 {{{ … … 447 436 }}} 448 437 449 === Apache2 === 438 === Apache2 439 450 440 Edit {{{ /etc/apache2/httpd.conf }}}, at line 115 enable '''mod_fastcgi''': 451 441 {{{ … … 489 479 Browse to http://localhost/trac/ 490 480 491 492 == OSX 10.5.x Leopard, SVN 1.5.x and Trac 0.11.x == 481 == OSX 10.5.x Leopard, SVN 1.5.x and Trac 0.11.x 493 482 494 483 By Dennis Burger 495 484 496 One addition to Toby Thain excellent tutorial about Trac on MacOS X Leopard. 485 One addition to Toby Thain excellent tutorial about Trac on MacOS X Leopard. When you're updating to SVN 1.5.x you'll receive the following Trac error when opening a Trac page in you're webbrowser: 497 486 498 487 {{{ … … 518 507 }}} 519 508 520 Now refresh you 're webbrowser (with a Trac page) and you're good to go!509 Now refresh your web browser with a Trac page to clear the cache. 521 510 522 511 ---- 523 See also: 512 See also: TracGuide, TracInstall, TracOnOsx, TracInstallPlatforms, [http://www.mac-how.net Mac How]