<?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>mobile and gis dev notes &#187; routing</title>
	<atom:link href="http:///wordpress/tag/routing/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>by rupert</description>
	<lastBuildDate>Wed, 08 Feb 2012 22:26:15 +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>Creating Road Topology</title>
		<link>/wordpress/2007/08/creating-road-topology/</link>
		<comments>/wordpress/2007/08/creating-road-topology/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 12:40:35 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">/wordpress/?p=104</guid>
		<description><![CDATA[Im trying out ways to create a topology of edges and vertices for a road network. Currently, there are three ways I know of: 1. Using ArcGIS build coverage line. &#8211; This includes the use of ArcGIS. Exporting the feature into tics, arcs and nodes, then afterwards assembling them all together. Its functional but have [...]]]></description>
			<content:encoded><![CDATA[<p>Im trying out ways to create a topology of edges and vertices for a road network. Currently, there are three ways I know of:<br />
<strong><br />
1. Using ArcGIS build coverage line.</strong><br />
&#8211; This includes the use of ArcGIS. Exporting the feature into tics, arcs and nodes, then afterwards assembling them all together. Its functional but have not fully tested the quality of the road topology. Also, assembling them back together through the spatial objects comparison will take some time. It would be better <strong>*If*</strong> ArcGIS could create the nodes wrt to the base table.</p>
<p><strong>2. Using PostGres, postlbs functions.</strong><br />
&#8211; Use of SELECT ASSIGN_VERTEX_ID(&#8216;table_name&#8217;, double_precision_distance. So far this bails on me on my first test on my win-xp laptop. We can test this on Linux if the response is the same.</p>
<p><strong>3. Using Mapinfo Basic Scripts provided by J.</strong><br />
&#8211; Haven&#8217;t gone indepth with these for now, but looking forward to it.</p>
<p><strong>4. Using Grass</strong><br />
&#8211; As documented in <a href="pgrouting.postlbs.org">pgrouting.postlbs.org</a> site&#8217;s <a href="http://pgrouting.postlbs.org/wiki/TopologyCreation">Topology Creation</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/creating-road-topology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing QNavigator in QGIS</title>
		<link>/wordpress/2007/06/installing-qnavigator-in-qgis/</link>
		<comments>/wordpress/2007/06/installing-qnavigator-in-qgis/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 18:09:08 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[GIS]]></category>
		<category><![CDATA[qgis]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">/wordpress/?p=65</guid>
		<description><![CDATA[[root@rupert-linux qnavigator]# mkdir build &#38;amp;&#38;amp; cd build [root@rupert-linux build]# cmake -D QGIS_PREFIX=/usr/local/qgis .. -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[root@rupert-linux qnavigator]# mkdir build &amp;amp;&amp;amp; cd build
[root@rupert-linux build]# cmake -D QGIS_PREFIX=/usr/local/qgis ..
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.2.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/install/qgis-svn/src/plugins/qnavigator/build
[root@rupert-linux build]# make
Scanning dependencies of target dglib
[  9%] Building CXX object dglib/CMakeFiles/dglib.dir/dgraph.o
[ 18%] Building CXX object dglib/CMakeFiles/dglib.dir/dijkstra.o
[ 27%] Building CXX object dglib/CMakeFiles/dglib.dir/fheap.o
[ 36%] Building CXX object dglib/CMakeFiles/dglib.dir/routing_core.o
Linking CXX static library libdglib.a
Creating makefiles...
[ 36%] Built target dglib
Scanning dependencies of target dgbuild
[ 45%] Building CXX object dglib/CMakeFiles/dgbuild.dir/dgbuild.o
Linking CXX executable dgbuild
[ 45%] Built target dgbuild
Scanning dependencies of target dgpath
[ 54%] Building CXX object dglib/CMakeFiles/dgpath.dir/dgpath.o
Linking CXX executable dgpath
[ 54%] Built target dgpath
[ 54%] Generating ../../python/ui/mainwindow_ui.py
[ 54%] Generating ../../python/ui/findstreetdialog_ui.py
[ 54%] Generating ../../python/ui/aboutdialog_ui.py
[ 54%] Generating ../../python/ui/roadinfodialog_ui.py
[ 54%] Generating ../../python/ui/qnavigator_rc.py
[100%] Built target ui
[root@rupert-linux build]#</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/06/installing-qnavigator-in-qgis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preparing routing data for pgRouting</title>
		<link>/wordpress/2007/04/preparing-routing-data-for-pgrouting/</link>
		<comments>/wordpress/2007/04/preparing-routing-data-for-pgrouting/#comments</comments>
		<pubDate>Tue, 10 Apr 2007 09:23:35 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[mapinfo]]></category>
		<category><![CDATA[pgRouting]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">/wordpress/?p=49</guid>
		<description><![CDATA[1. It is important that you already have postgres, postgis, pgRouting installed in your machine. A. The schema. Below is the sample schema that is a derivative of the kanagawa sample data from pgRouting. Take note of the source and target nodes, as well as the length and the node coordinates (x1,y1; x2,y2) of the [...]]]></description>
			<content:encoded><![CDATA[<p>1. It is important that you already have <a href="/wordpress/?p=45">postgres, postgis, pgRouting installed in your machine.</a></p>
<p>A. The schema. Below is the sample schema that is a derivative of the <a href="http://www.postlbs.org/postlbs-cms/files/downloads/pgRouting-sampleapp.tar.bz">kanagawa sample data from pgRouting</a>. Take note of the <em>source and target nodes</em>, as well as the length and the node coordinates (x1,y1; x2,y2) of the line.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">cybersoftbj<span style="color: #66cc66;">=</span><span style="color: #808080; font-style: italic;"># \dt</span>
List of relations
 Schema <span style="color: #66cc66;">|</span>       Name       <span style="color: #66cc66;">|</span> Type  <span style="color: #66cc66;">|</span>  Owner
<span style="color: #808080; font-style: italic;">--------+------------------+-------+----------</span>
 public <span style="color: #66cc66;">|</span> geometry_columns <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #66cc66;">|</span> postgres
 public <span style="color: #66cc66;">|</span> roads            <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #66cc66;">|</span> postgres
 public <span style="color: #66cc66;">|</span> spatial_ref_sys  <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #66cc66;">|</span> postgres
<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">3</span> rows<span style="color: #66cc66;">&#41;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">cybersoftbj<span style="color: #66cc66;">=</span><span style="color: #808080; font-style: italic;"># \d roads</span>
<span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">&quot;public.roads&quot;</span>
<span style="color: #993333; font-weight: bold;">COLUMN</span>   <span style="color: #66cc66;">|</span>          Type          <span style="color: #66cc66;">|</span>                      Modifiers
<span style="color: #808080; font-style: italic;">------------+------------------------+-----------------------------------------------------</span>
gid        <span style="color: #66cc66;">|</span> integer                <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">NEXTVAL</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'roads_gid_seq'</span>::regclass<span style="color: #66cc66;">&#41;</span>
rd_id      <span style="color: #66cc66;">|</span> bigint
yutu_id    <span style="color: #66cc66;">|</span> integer
block_id   <span style="color: #66cc66;">|</span> bigint
heirarchy  <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#41;</span>
cn_name    <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">75</span><span style="color: #66cc66;">&#41;</span>
py_name    <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
source     <span style="color: #66cc66;">|</span> bigint
target     <span style="color: #66cc66;">|</span> bigint
x1         <span style="color: #66cc66;">|</span> numeric
y1         <span style="color: #66cc66;">|</span> numeric
x2         <span style="color: #66cc66;">|</span> numeric
y2         <span style="color: #66cc66;">|</span> numeric
costlength <span style="color: #66cc66;">|</span> numeric
the_geom   <span style="color: #66cc66;">|</span> geometry</pre></div></div>

<p>A. Extracting the coordinates of the line segments from Mapinfo.</p>
<p>1. I have to format the data structure as follows&#8230;</p>
<p>&#8230;here is the roads table after weeding out some unnecessary columns&#8230;<br />
<img src="/wordpress/images/routing_mapinfo_1.png" /></p>
<p>&#8230; adding the source,target,x1,y1,x2,y2,costlength&#8230;<br />
<img src="/wordpress/images/routing_mapinfo_2.png" /></p>
<p>2. Using ObjectGeography. <a href="http://reference.mapinfo.com/software/mapbasic/english/8.5/MB_Ref.pdf">Download the MapBasic Reference</a></p>
<p>ObjectGeography( object, attribute )</p>
<p>ObjectGeography( object, &#8220;1&#8243; ) &lt;&#8211; gives you the beginning x coord of the point</p>
<p><img src="/wordpress/images/routing_mapinfo_3.png" /></p>
<p>3. Export the tab file to a shape file for ArchMap.</p>
<p><img src="/wordpress/images/routing_mapinfo_4.png" /></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/04/preparing-routing-data-for-pgrouting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PostGres, PostGIS, pgRouting in Linux</title>
		<link>/wordpress/2007/04/installing-postgres-and-postgis-in-linux/</link>
		<comments>/wordpress/2007/04/installing-postgres-and-postgis-in-linux/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 15:05:09 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[prRouting]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">/wordpress/?p=45</guid>
		<description><![CDATA[A. Installing PostGres A.1. Download and install the source: postgresql-8.2.3.tar.gz &#91;root@rupert-linux routing&#93;tar -xvzf postgresql-8.1.2.tar.gz &#91;root@rupert-linux routing&#93;LDFLAGS=-lstdc++ &#91;root@rupert-linux routing&#93;./configure --prefix=/usr/local/pgsql --with-perl --with-python --with-krb5 --with-openssl &#91;root@rupert-linux routing&#93;make &#91;root@rupert-linux routing&#93;make install &#160; A.2. Post Compile Operations: &#160; &#91;root@rupert-linux routing&#93;/usr/sbin/adduser postgres &#160; &#91;root@rupert-linux routing&#93;mkdir /usr/local/pgsql/data &#160; &#91;root@rupert-linux routing&#93;chown postgres /usr/local/pgsql/data/ &#160; &#91;root@rupert-linux routing&#93;su - postgres &#160; &#91;root@rupert-linux routing&#93;/usr/local/pgsql/bin/initdb -D [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A. Installing PostGres</strong></p>
<p>A.1. Download and install the source: <a href="http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2Fsource%2Fv8.2.3%2Fpostgresql-8.2.3.tar.gz">postgresql-8.2.3.tar.gz</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> postgresql-8.1.2.tar.gz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #007800;">LDFLAGS</span>=-lstdc++
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span>.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql <span style="color: #660033;">--with-perl</span> <span style="color: #660033;">--with-python</span> <span style="color: #660033;">--with-krb5</span> <span style="color: #660033;">--with-openssl</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
&nbsp;
A.2. Post Compile Operations:
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>adduser postgres
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">chown</span> postgres <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">su</span> - postgres
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>initdb <span style="color: #660033;">-D</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Note: If youre default locale is not EN, say chinese, then you would get:</p>
<blockquote><p> The files belonging to this database system will be owned by user &#8220;postgres&#8221;.<br />
This user must also own the server process.</p>
<p>The database cluster will be initialized with locale zh_CN.GB18030.<br />
initdb: could not find suitable encoding for locale &#8220;zh_CN.GB18030&#8243;</p></blockquote>
<p>A.3. Edit environment variables. Add the ff to your .bash_profile</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.bash_profile
<span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGLIB</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGDATA</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGPORT</span>=<span style="color: #000000;">5432</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGOPTS</span>=<span style="color: #ff0000;">&quot;-i&quot;</span></pre></div></div>

<p>A.4. Start PostGres Automatically on Startup. <a href="/wordpress/wp-content/uploads/2007/06/postgresql.txt">Postgres Startup Script</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>postgresql
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>postgresql</pre></div></div>

<p>PostGres Startup Script</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># postgresql    This is the init script for starting up the PostgreSQL</span>
<span style="color: #666666; font-style: italic;">#               server</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># chkconfig: - 85 15</span>
<span style="color: #666666; font-style: italic;"># description: Starts and stops the PostgreSQL backend daemon that handles all database requests.</span>
<span style="color: #666666; font-style: italic;"># processname: postmaster</span>
<span style="color: #666666; font-style: italic;"># pidfile: /usr/local/pgsql/data/postmaster.pid</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Source function library.</span>
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>functions
&nbsp;
<span style="color: #666666; font-style: italic;"># Get config.</span>
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysconfig<span style="color: #000000; font-weight: bold;">/</span>network
&nbsp;
<span style="color: #666666; font-style: italic;"># Check that networking is up.</span>
<span style="color: #666666; font-style: italic;"># Pretty much need it for postmaster.</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${NETWORKING}</span> = <span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>postmaster <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># See how we were called.</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">pid</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">pidof</span> postmaster<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$pid</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Postmaster already running.&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Starting postgresql service: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-l</span> postgres <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'/usr/local/pgsql/bin/pg_ctl -o -i -D /usr/local/pgsql/data/ -l /usr/local/pgsql/data/logfile start'</span>
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">echo</span>
<span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Stopping postgresql service: &quot;</span>
killproc postmaster
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">2</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>postmaster.pid
<span style="color: #7a0874; font-weight: bold;">echo</span>
<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
restart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
$<span style="color: #000000;">0</span> stop
$<span style="color: #000000;">0</span> start
<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: postgresql {start|stop|restart}&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>A.5. PostGres Testing</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># su - postgres</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>createdb <span style="color: #7a0874; font-weight: bold;">test</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>psql <span style="color: #7a0874; font-weight: bold;">test</span></pre></div></div>

<p><strong>B. Installing PostGIS.</strong></p>
<p>B.1. Download <a href="http://geos.refractions.net/">Geos</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># bzip2 -d geos-3.0.0rc4.tar.bz2</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -xvf geos-3.0.0rc4.tar</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p>B.2. Download <a href="http://www.postgis.org/download/">PostGIS.</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp postgis-1.2.1.tar.gz /home/installers/postgresql-8.2.3/contrib/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -zxvf postgis-1.2.1.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /home/installers/postgresql-8.2.3/contrib/postgis-1.2.1/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure --with-pgsql=/usr/local/pgsql/bin/pg_config</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p>B.3 Reload ldconfig</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/ld.so.conf</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>include
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ldconfig</span></pre></div></div>

<p>B.4. Testing PostGIS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">su</span> - postgres
$ createlang plpgsql <span style="color: #7a0874; font-weight: bold;">test</span>
$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>psql <span style="color: #660033;">-d</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>lwpostgis.sql
BEGIN
psql:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>postgresql<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>lwpostgis.sql:<span style="color: #000000;">39</span> NOTICE:  <span style="color: #7a0874; font-weight: bold;">type</span> <span style="color: #ff0000;">&quot;histogram2d&quot;</span> is not yet defined
DETAIL:  Creating a shell <span style="color: #7a0874; font-weight: bold;">type</span> definition.
.
.
.
COMMIT
$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>psql <span style="color: #660033;">-d</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>spatial_ref_sys.sql
BEGIN
INSERT <span style="color: #000000;">0</span> <span style="color: #000000;">1</span>
INSERT <span style="color: #000000;">0</span> <span style="color: #000000;">1</span>
.
.
.
VACUUM</pre></div></div>

<p><strong>C. Installing pgRouting.</strong></p>
<p>C.1 Install Boost Library if you don&#8217;t have it. Download <a href="http://sourceforge.net/project/showfiles.php?group_id=7586">boost</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -jxvf boost_1_33_1.tar.bz2</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/local/include/boost1.3.3</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -Rf boost /usr/local/include/</span></pre></div></div>

<p>C.2 Download and install <a href="http://www.cgal.org/download/">CGAL</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zxvf CGAL-3.2.1.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd CGAL-3.2.1</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux CGAL-3.2.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./install_cgal --prefix=/usr/local/cgal --with-boost=n --without-autofind -ni /usr/bin/g++</span>
Copy libCGAL.so to the pgsql<span style="color: #000000; font-weight: bold;">/</span>lib directory...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux CGAL-3.2.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#  cp -Rf /usr/local/cgal/lib/i686_Linux-2.6_g++-3.4.3/libCGAL.so /usr/local/pgsql/lib/</span></pre></div></div>

<p>C.3 Download and install <a href="http://sourceforge.net/projects/gaul/">GAUL</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zxvf gaul-devel-0.1849.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure -prefix=/usr/local/gaul</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/local/gaul (Note: Copy gaul includes and libraries to standard directories...)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -Rf include/* /usr/include/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -Rf lib/* /usr/local/lib/</span></pre></div></div>

<p>C.4 Download and install <a href="http://www.postlbs.org/postlbs-cms/files/downloads/pgRouting-0.9.9.tgz">pgRouting</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -jxvf pgRouting-0.9.9.tgz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi configure</span>
<span style="color: #666666; font-style: italic;">##########################################</span>
Edit line 3036...
<span style="color: #007800;">CGAL_MKF</span>=<span style="color: #ff0000;">'find /usr/local/cgal/include/CGAL.....'</span>
<span style="color: #666666; font-style: italic;">##########################################</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure --with-cgal=/usr/local/cgal --with-gaul=/usr/local/gaul --with boost=/usr/local --pg-sql=/usr/local/pgsql</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p><ins datetime="2007-06-07T01:28:02+00:00"></ins></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/04/installing-postgres-and-postgis-in-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

