Saturday, November 8, 2008

Install Trac on Solaris 10

1. test if python is installed.
Python 2.4.4 (#1, Jan  9 2007, 23:31:33) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.

  1.a I want python 2.5, then remove 2.4.
      #pkgchk -l -p `which python`
      #pkgrm SMCpython
      #pkg-get install python

2. install setuptools 0.6c9 which is a tool makes download, build, install, upgrade, and uninstall Python packages easier!
  setuptools-0.6c9-py2.5.egg (md5)
  (match the version)

3. install trac by using following command, it will install trac-0.11 (Reference to Trac Installation)
easy_install Trac
  3.a Before install Trac, I have to install SQLite, I have tried to use MySQL, but have trouble to find some library.
   #pkg-get install sqlite
  3.b Install Python to SqLIte engine
    #pkg-get install pyslite
  3.c Prerequired packages
    #easy-install Genshi

4. run trac-admin to create project environment
 # trac-admin /path/to/myproject initenv
It will ask a series of questions. Since I use SQLite, all use default.
change owner of /path/to/myproject to web user. I check the file /etc/apache2/httpd.conf, find User and Group, which is webservd.
#chown -R webservd:webservd /path/to/myproject

5. Start stand-alone Trac server
#tracd --port 8998 /path/to/myproject

No comments: