<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DevOnLinux &#187; dreamhost</title>
	<atom:link href="http://blog.devonlinux.net/tag/dreamhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.devonlinux.net</link>
	<description>ICT solutions that work</description>
	<lastBuildDate>Tue, 02 Feb 2010 23:54:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Install Trac on DreamHost</title>
		<link>http://blog.devonlinux.net/2008/04/21/install-trac-on-dreamhost/</link>
		<comments>http://blog.devonlinux.net/2008/04/21/install-trac-on-dreamhost/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 21:36:10 +0000</pubDate>
		<dc:creator>ed0t</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[clearsilver]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[pysqlite]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[swig]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[virtual-python]]></category>

		<guid isPermaLink="false">http://blog.devonlinux.net/2008/04/21/install-trac-on-dreamhost/</guid>
		<description><![CDATA[Since we wanted to install Trac on our DreamHost domain we have followed the Natmaster tutorial. Anyway we came in trouble so here we describe how we have installed Trac. The proceeding is quite similar to Natmaster one, but we found some missing pieces that we describe below. Here is the list of programs that [...]]]></description>
			<content:encoded><![CDATA[<p>Since we wanted to install Trac on our DreamHost domain we have followed the <a href="http://natmaster.com/articles/installing_trac_0.10.php" title="Read the Natmaster howto">Natmaster tutorial</a>. Anyway we came in trouble so here we describe how we have installed Trac. The proceeding is quite similar to Natmaster one, but we found some missing pieces that we describe below.</p>
<p>Here is the list of programs that we have installed:</p>
<ul>
<li>virtual-python</li>
<li>Trac 0.10.4</li>
<li>Clearsilver 0.10.3</li>
<li>SQLite 3.5.2</li>
<li>PySqlite 2.3.5</li>
<li>Swig 1.3.31</li>
</ul>
<p>If you have already tried to install Trac remove all installed programs in your directory (ex: <strong>packages</strong>) and remove the other files created (ex: <strong>.pydistutils.cfg</strong>) or paths setted in <strong>.bash_profile</strong> or <strong>.bash_rc</strong>.</p>
<p>Let&#8217;s start with a new installation!<span id="more-3"></span></p>
<p>First of all we have to create in our Home folder three directories</p>
<ul>
<li>packages: the directory where we will install all programs</li>
<li>install_files: the directory in which we put downloaded tarballs</li>
<li>trac_sites:  the directory where we put all Trac environments</li>
</ul>
<p>so:</p>
<pre>
mkdir packages
mkdir install_files
mkdir trac_sites</pre>
<h3>Install Virtual-Python</h3>
<blockquote><p>If you are on a Linux, BSD, Cygwin, or other similar Unix-like operating system, but don&#8217;t have root access, you can create your own &#8220;virtual&#8221; Python installation, which uses its own library directories and some symlinks to the site-wide Python.</p></blockquote>
<ul>
<li>cd ~/install_files</li>
<li>wget http://peak.telecommunity.com/dist/virtual-python.py</li>
<li>python virtualpython.py &#8211;prefix=$HOME/packages</li>
</ul>
<h3>Install Trac</h3>
<ul>
<li>cd ~/install_files</li>
<li>wget http://ftp.edgewall.com/pub/trac/trac-0.10.4.tar.gz</li>
<li>tar zxvf trac-0.10.4.tar.gz</li>
<li>cd trac-0.10.4</li>
<li>python setup.py install &#8211;prefix=$HOME/packages</li>
</ul>
<h3>Install ClearSilver</h3>
<ul>
<li> cd ~/install_files</li>
<li> wget http://www.clearsilver.net/downloads/clearsilver-0.10.3.tar.gz</li>
<li>tar zxvf clearsilver-0.10.3.tar.gz</li>
<li>cd clearsilver-0.10.3</li>
<li> PYTHON_SITE=`~/packages/bin/python -c \<br />
&#8220;import sys; print [path for path in sys.path if path.find('site-packages') != -1][0]&#8220;` ./configure &#8211;with-python=~/packages/bin/python &#8211;prefix=$HOME/packages &#8211;disable-ruby &#8211;disable-java &#8211;disable-apache &#8211;disable-csharp &#8211;disable-perl</li>
<li>make</li>
<li>make install</li>
</ul>
<h3>Install SQLite</h3>
<ul>
<li> cd ~/install_files</li>
<li> wget http://www.sqlite.org/sqlite-3.5.2.tar.gz</li>
<li>tar zxvf sqlite-3.5.2.tar.gz</li>
<li>cd sqlite-3.5.2</li>
<li> ./configure &#8211;prefix=$HOME/packages</li>
<li>make</li>
<li>make install</li>
<li>ln -s $HOME/packages/bin/sqlite3 $HOME/packages/bin/sqlite</li>
</ul>
<h3>Install PySQLite</h3>
<ul>
<li>unlink $HOME/packages/lib/python2.3/site-packages/pysqlite2</li>
<li> cd ~/install_files</li>
<li> wget http://initd.org/pub/software/pysqlite/releases/2.3/2.3.5/pysqlite-2.3.5.tar.gz</li>
<li>tar zxvf pysqlite-2.3.5.tar.gz</li>
<li>cd pysqlite-2.3.5</li>
<li> python setup.py install &#8211;prefix=$HOME/packages</li>
</ul>
<p>The first command is an unlink. This is needed because  pysqlite is already installed on DreamHost. But with the default pysqlite the trac-admin command fails.</p>
<h3>Install SWIG</h3>
<ul>
<li> cd ~/install_files</li>
<li>wget http://dl.sourceforge.net/sourceforge/swig/swig-1.3.31.tar.gz</li>
<li>tar zxvf swig-1.3.31.tar.gz</li>
<li>cd swig-1.3.31</li>
<li> ./configure &#8211;prefix=$HOME/packages/ &#8211;with-python=/$HOME/packages/bin/python</li>
<li>make</li>
<li>make install</li>
</ul>
<p>Now we have to create a new Trac environment, but before we have to edit the .bash_profile and add this rows:</p>
<pre>
export PYTHONPATH="$HOME/packages/lib/python2.3/site-packages"
export LD_LIBRARY_PATH="$HOME/packages/lib"
export PATH="$HOME/packages/bin:$PATH"</pre>
<p>then reload the .bash_profile:</p>
<pre>source .bash_profile</pre>
<p>To create a Trac environment use this command:</p>
<pre>trac-admin $HOME/trac_sites/PROJECTNAME initenv</pre>
<p>as you can see trac_sites folder is the third directory that we have created above. Here we store all projects.  The trac-admin command asks you some questions and we it is ended a new Trac environment is set up!</p>
<p>Now follow the Natmaster tutorial beginning at <a href="http://natmaster.com/articles/installing_trac_0.10.php" title="Read the rest of the tutorial">&#8220;Make Trac Web Accessible&#8221;</a> section.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.devonlinux.net/2008/04/21/install-trac-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.274 seconds -->
