Note: Quick Trac install on Ubuntu.

Installing

(I assume you’ve got the `universe` repository added on your `/etc/apt/sources.list`, if not do it now)

We will install Trac and then we’ll remove it ...

apt-get install trac; apt-get remove trac

So now we have all the dependencies of Trac installed and we can install Trac from the `trunk`. We need to install the `python` development libraries. So we install them:

  apt-get install python-dev

And now we checkout that last version from the `trunk` and then we install it ...

svn co http://svn.edgewall.com/repos/trac/trunk /usr/src/trac
cd /usr/src/trac/
./setup.py install

Note that you have to run setup.py from the /usr/src/trac directory, so it is required that you change to that directory first, as shown above.

We create a new `Trac` instance and start it with the build in server.

  trac-admin /home/xxxxx/trac_project1 initenv
  tracd --port 8000 /home/xxxxx/trac_project1 -d      <==== The `-d` detaches the server.

We can change the `Trac` properties editing the `trac.ini` file.

  vim /home/xxxxx/trac_project1/conf/trac.ini

To add/remove/change permissions we have to run

  trac-admin /home/xxxxx/trac_project1

Troubleshooting

1. If you get “ImportError: No module named setuptools” then you’ll need to install the setuptools. If you need further assistance visit [http://trac.edgewall.org/wiki/TracPlugins]

  a. Create a file called ez_setup.py in the /usr/src/trac directory.  
  b. Copy this text and save -> [http://peak.telecommunity.com/dist/ez_setup.py]. 
  c. sudo python ez_setup.py
  d. sudo ./setup.py install 

2. If you get an error that looks like:

  No local packages or download links found for Genshi>=0.4dev-r493,<0.4dev-r510
  error: Could not find distribution for Requirement.parse('Genshi>=0.4dev-r493,<0.4dev-r510')

Then you’ll need to manually install the correct version of Genshi:

  svn co -r509 http://svn.edgewall.org/repos/genshi/trunk/ /usr/src/genshi
  python /usr/src/genshi/setup.py install

And then proceed as stated above for installing Trac.

 
/var/www/dokuwiki/data/pages/install_trac_on_ubuntu.txt · Last modified: 2007/08/22 02:46 by 72.86.66.36
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
© Slicehost 2006-2007