| 1 | = Installing Trac on !ArchLinux for Multiple Projects using Mod_Python = |
| 2 | [http://www.archlinux.org ArchLinux] is powered by a simple and lightweight package management system. It is release by rolling binary system. Keep update by command line '''pacman -Syu''' will get the most recent version. |
| 3 | |
| 4 | == install depend packages from binary == |
| 5 | {{{ |
| 6 | pacman -S mod_python python-pysqlite |
| 7 | }}} |
| 8 | == Download trac from binary == |
| 9 | Trac is already on community repository, check /etc/pacman.conf, make sure uncomment the following. |
| 10 | {{{ |
| 11 | [community] |
| 12 | # Add your preferred servers here, they will be used first |
| 13 | Include = /etc/pacman.d/community |
| 14 | }}} |
| 15 | |
| 16 | SUPFILES=(arch extra !unstable community !testing) |
| 17 | |
| 18 | download and install it |
| 19 | {{{ |
| 20 | pacman -S trac |
| 21 | }}} |
| 22 | |
| 23 | == or, build trac from source == |
| 24 | if want the newest version trac. |
| 25 | |
| 26 | edit the /etc/abs/abs.conf, unmark the community |
| 27 | {{{ |
| 28 | SUPFILES=(arch extra !unstable community !testing) |
| 29 | }}} |
| 30 | |
| 31 | {{{ |
| 32 | cd /var/abs/community/network/trac |
| 33 | vi PKGBUILD # modify the version to the newest version |
| 34 | makepkg -g # modify PKGBUILD with the correct md5 checksum |
| 35 | makepkg -c # build binary package file, and clean up work files after build |
| 36 | sudo pacman -A *.pkg.tar.gz # install it |
| 37 | sudo pacman -U *.pkg.tar.gz # or, upgrade it, if already installed |
| 38 | }}} |
| 39 | |
| 40 | == configure mod_python == |
| 41 | edit /etc/httpd/conf/httpd.conf, append following line |
| 42 | {{{ |
| 43 | LoadModule python_module /usr/lib/apache/mod_python.so |
| 44 | }}} |
| 45 | |
| 46 | to be continue... |