GreenWave Software
© Copyright 2003-2010, Chip Cooons

Trac on Snow Leopard

Chip | Cocoa | Thursday, March 4th, 2010

I love Trac, but am moving my scm to git (instead of Subversion). My problem is getting a functional install of Trac with the git-Trac plugin working on my remote server. To solve that problem, I’m going to make sure first that I can get a fully functional version running locally. Here are my notes….Starting point

Prereqs:

Python : I’m running version 2.6.1 that is included in Snow Leopard.

SetupTools :

$ svn co http://svn.python.org/projects/sandbox/trunk/setuptools

$ cd setuptools

$ sudo python setup.py install

Genshi :

$ easy_install Genshi

Subversion : I’m already running version 1.6.5

Trac Install

$ sudo easy_install Trac

Test it out with:

tracd –port 8000 /Path/to/Trac/Porject/Site

Everything looks good, but I want the latest version, not version 0.11, so….

$ sudo easy_install –upgrade Trac

And now everything looks good. Time for new territory with GitPlugin.

GitPlugin

Download the source.

$ python setup.py build

$ sudo python setup.py install

Enable the plugin in the trac.ini file for the site:

[components]

# for plugin version 0.11.0.1+

tracext.git.* = enabled

Point the trac at the git repository:

[trac]

repository_dir = /var/git/Test.git

repository_type = git

## the following is only for the 0.11 branch

[git]

## let Trac cache meta-data via CachedRepository wrapper; default: false

##cached_repository = true

## disable automatic garbage collection for in-memory commit-tree cache; default: false

persistent_cache = true

## length revision sha-sums should be tried to be abbreviated to (must be >= 4 and <= 40); default: 7

shortrev_len = 6

## executable file name (optionally with path) of git binary; default: ‘git’

git_bin = /usr/local/libexec/git-core/git

NOTE: the Test.git above needs to be the .git repository directory (i.e. the one containing the file HEAD and config), not the working tree directory that holds the .git/ folder.

Enabling the cached_repository causes an error on Mac OS X 10.6. Not sure why.

Success

I now have an instance of Trac running locally via tracd with git repository support. I’ll look at running it under Apache later.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress | Theme by Roy Tanck