128 | | * '''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. |
| 128 | * '''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. |
| 129 | * '''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. |
164 | | Specifying {{{fs-type}}} is actually not necessary, as we have built without bdb, thus making {{{fsfs}}} the default backend file system. |
165 | | |
166 | | {{{ |
167 | | svnadmin create --fs-type=fsfs /var/svn/test |
168 | | }}} |
169 | | |
170 | | To make sure the repository is ok, play with it a little: |
171 | | {{{ |
172 | | cd /tmp |
173 | | mkdir proj |
174 | | cd proj |
175 | | mkdir trunk branches tags |
176 | | cd .. |
177 | | svn import proj file:///var/svn/test -m "Import First" |
178 | | rm -r proj |
179 | | svn co file:///var/svn/test proj |
180 | | cd proj |
181 | | svn update |
182 | | }}} |
183 | | |
184 | | === trac environment === |
185 | | |
186 | | {{{ |
187 | | trac-admin /var/trac/test initenv |
188 | | }}} |
189 | | |
190 | | You may need to manage access rights on the trac env directory tree. This may be done by first creating a unix group dedicated to this trac project, e.g. {{{trac}}}, and assigning the various users to this group. The apache {{{web}}} user should be one of these. If you need a nice description of how to do this, look at the [http://developer.apple.com/internet/opensource/cvsoverview.html Apple CVSOverview] (then search for the text "create a new group" or "!NetInfo Manager"). |
191 | | |
192 | | Your {{{trac-admin}}} binary may not be in your search path - if {{{trac-admin}}} isn't found, try: |
193 | | |
194 | | {{{ |
195 | | sudo ln -s /System/Library/Frameworks/Python.framework/Versions/Current/bin/trac* /usr/local/bin |
196 | | }}} |
197 | | |
198 | | to create links to them in {{{/usr/local/bin}}}. |
199 | | |
200 | | To apply {{{chgrp}}} and {{{chmod}}} recursively, you may do: |
201 | | {{{ |
202 | | cd /var/trac/test |
203 | | find . -name "*" -exec chgrp trac {} \; -ls |
204 | | find . -name "*" -exec chmod g+sw {} \; -ls |
205 | | }}} |
206 | | |
207 | | For further trac configuration, see TracGuide. |
208 | | |
209 | | ''mario@ruggier.org'' |
210 | | |
211 | | ---- |
212 | | See also: TracGuide, TracInstall, TracOnOsx, TracInstallPlatforms |
| 165 | Specifying {{{fs-type}}} is actually not necessary, as we have built |