<?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>mind can has mountains &#187; install</title>
	<atom:link href="http://www.gnostai.org/journal/tag/install/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gnostai.org/journal</link>
	<description>gnostai development journal</description>
	<lastBuildDate>Tue, 16 Jun 2009 20:36:12 +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>Getting started with Alexandria development</title>
		<link>http://www.gnostai.org/journal/2007/12/28/getting-started-with-alexandria-development/</link>
		<comments>http://www.gnostai.org/journal/2007/12/28/getting-started-with-alexandria-development/#comments</comments>
		<pubDate>Fri, 28 Dec 2007 05:25:54 +0000</pubDate>
		<dc:creator>cathalmagus</dc:creator>
				<category><![CDATA[alexandria]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.gnostai.org/journal/?p=3</guid>
		<description><![CDATA[Alexandria is a GNOME application written in Ruby. It is free software developed primarily for GNU/Linux systems, and is also developed on GNU/Linux. Almost everything you need for developing Alexandria will be available for easy installation on most distributions. This is a guide to setting up your system so you can work with the Alexandria [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://alexandria.rubyforge.org/" title="Alexandria web site">Alexandria</a> is a GNOME application written in Ruby. It is free software developed primarily for GNU/Linux systems, and is also developed on GNU/Linux. Almost everything you need for developing Alexandria will be available for easy installation on most distributions. This is a guide to setting up your system so you can work with the Alexandria source code.</p>
<p><span id="more-3"></span></p>
<p>If you just want to have a look at the code, you could simply download the <a href="http://http://rubyforge.org/frs/download.php/29501/alexandria-0.6.2.tar.gz" title="Source archive for Alexandria 0.6.2">latest tar.gz package</a>. However, if you want to keep up to date with the developers as they work, you should do a check-out of the <strong>Subversion</strong> repository. If you don&#8217;t know anything about Subversion, there is an excellent introduction in the free book <a href="http://svnbook.red-bean.com/en/1.4/index.html" title="Version Control with Subversion">Version Control with Subversion</a>. But, to begin with, you can just install the <tt>subversion</tt> package and issue the following command from the terminal (all on one line):</p>
<p><tt>svn checkout svn://rubyforge.org/var/svn/alexandria/trunk/alexandria alexandria</tt></p>
<p>This will create a new <tt>alexandria</tt> directory containing the current source of the main development branch of Alexandria, we often call this <strong>alexandria SVN</strong> for short.. If you just unpacked the tar.gz archive, the directory will be called <tt>alexandria-0.6.2</tt> but in any case I shall refer to it as the <em>alexandria</em> directory.</p>
<p>Move into that directory and look around. In particular, the <tt>INSTALL</tt> file describes the various dependencies of Alexandria. The main requirements are, of course <tt>ruby</tt> (Ruby 1.8 in particular) and <tt>ruby-gnome2</tt> (the bindings library which allows us to use Ruby with GTK+ and GNOME). Also required is <tt>ruby-gettext</tt> which allows the program interface to be translated into multiple human languages. Make sure you have these packages installed. If you&#8217;ve installed the binary of Alexandria already, most of the dependencies listed will have been installed automatically.</p>
<p>If you are on a Debian or Ubuntu-based system you should also install <tt>irb</tt> the Interactive Ruby shell (for experimenting with small fragments of Ruby code quickly).</p>
<p>Also in the <em>alexandria</em> directory is a <tt>Rakefile</tt> for building the code. <strong>Rake</strong> is the Ruby equivalent of <strong>make</strong>, install it with the <tt>rake</tt> package. Because Ruby is still very much a scripting language, the source files are not compiled. The building of the software only involves two stages: automatically generating some Ruby files and compiling the <strong>gettext</strong> translation files. For the latter task, you will need <tt>gettext</tt> and <tt>intltool</tt> packages, as described in the <tt>INSTALL</tt> file. Running the simple command <tt>rake</tt> in the <em>alexandria</em> directory will build the software.</p>
<p>To install the development version of Alexandria, run the command <tt>rake install</tt> as <tt>root</tt>: either quickly <tt>su</tt> to <tt>root</tt> and issue the command, run <tt>su -c 'rake install'</tt> or, more usually, run <tt>sudo rake install</tt>.</p>
<p>You should now be able to see the Ruby files, program resources and documentation being installed. Note that if you&#8217;re on a Debian or Ubuntu-based system, <tt>rake install</tt> will install the Ruby files in <tt>/usr/local/lib/site_ruby/1.8/</tt> which is different from the location used by the <strong>deb</strong> installation. This is because of the way Debian handles Ruby. It means that you may end up with two competing copies of Alexandria on your system, and the development version will usually be detected first. Unfortunately, there is no <tt>rake uninstall</tt> task, but you can just remove all the alexandria files from <tt>/usr/local/lib/site_ruby/1.8/</tt> by hand with: <tt>sudo rm -rf /usr/local/lib/site_ruby/1.8/alexandria*</tt> if you want to remove the development version.</p>
<p>Once you have installed Alexandria, you can launch it with the command <tt>alexandria</tt> or using <tt>alexandria -<!-- -->-debug</tt> if you want to see more logging information. To see what another translation of the Alexandria looks like you can set the <tt>LANG</tt> environment variable as you launch the program: <tt>LANG=nl_NL.utf8 alexandria</tt></p>
<p>You are now working with the development version of Alexandria.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gnostai.org/journal/2007/12/28/getting-started-with-alexandria-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
