<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Rubynaut: Typo installation on Ubuntu Dapper</title>
    <link>http://www.rubynaut.net/articles/2006/09/02/typo-installation-on-ubuntu-dapper</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Typo installation on Ubuntu Dapper</title>
      <description>&lt;p&gt;I have currently an ubuntu dapper running ruby, rails and gem.&lt;/p&gt;


	&lt;p&gt;As gem will need to compile some stuff you should do :&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;$ apt-get install build-essential&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Then at first try I had an error :&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;Building native extensions.  This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:1
ERROR:  While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;I found my ruby installation was not complete, then you shall install following packages :&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;$ apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 /
libreadline-ruby1.8 libruby1.8&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Installation of typo also needs sqlite3 (you will see, by default the installer creates a database and launchs mongrel)&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;$ apt-get install libsqlite3-0
$ apt-get install libsqlite3-dev
$ apt-get install sqlite3&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Install the ruby sqlite debian packages.&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;$ apt-get install swig
$ apt-get install libsqlite3-ruby&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Now it should work fine :)&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;$ sudo gem install typo --include-dependencies&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;$ typo install directory&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;At this step, the typo installer creates a directory with a full version of typo and embedded rails, creates a database and launch the blog behind mongrel.&lt;/p&gt;


	&lt;p&gt;To configure Apache, you can find in &lt;i&gt;installer&lt;/i&gt; directory and example of the config file need to put in apache. For my configuration with Apache 2 I did the two commands : &lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;$ ap2enmod proxy
$ ap2enmod proxy_http&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;and change the servername and proxy pass instruction :&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;ProxyPass / http://localhost:4434/
ProxyPassReverse / http://localhost:4434/&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Where 4434 is the port configured by typo during installtion. Now just reload apache and you should see your website with a beautiful azure typo.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Sep 2006 18:37:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:7a0afddb-10d3-47cb-b078-ba8ff94dbcaf</guid>
      <author>stephane</author>
      <link>http://www.rubynaut.net/articles/2006/09/02/typo-installation-on-ubuntu-dapper</link>
    </item>
  </channel>
</rss>
