{"id":66,"date":"2015-09-02T08:34:06","date_gmt":"2015-09-02T08:34:06","guid":{"rendered":"https:\/\/jongarrido.es\/?p=66"},"modified":"2015-09-02T08:34:06","modified_gmt":"2015-09-02T08:34:06","slug":"analisis-network-con-open-source-i-instalando-pgrouting-en-ubuntu-12-04","status":"publish","type":"post","link":"https:\/\/jongarrido.es\/?p=66","title":{"rendered":"An\u00e1lisis network con open source (I): instalando pgrouting en ubuntu 12.04"},"content":{"rendered":"<p>Este post forma parte de un conjunto en el que se pretende:<\/p>\n<p>-Instalar pgrounting (I)<\/p>\n<p>-Generacion de una red OSM (II)<\/p>\n<p>&#8211; Creacion una aplicacion web demo de analisis network (III)<\/p>\n<p><!--more--><\/p>\n<p>Si tienes una versi\u00f3n de postgresql anterior a 9.x es muy recomendable que te actualices&#8230; la instalaci\u00f3n ser\u00e1 mucho m\u00e1s sencilla. En nuesto caso contamos con la versi\u00f3n 9.1.<\/p>\n<p>En primer lugar instalaremos la clave ppa del repositorio que utilizaremos. Necesitamos para ello tener instalado el siguiente paquete. Con nuestro apt-get:<\/p>\n<blockquote><p>sudo apt-get install python-software-properties<\/p><\/blockquote>\n<p>Instalamos la clave ppa:<\/p>\n<blockquote><p>sudo add-apt-repository ppa:georepublic\/pgrouting-unstable<\/p><\/blockquote>\n<p>Aparecer\u00e1 este mensaje:<\/p>\n<blockquote>\n<h6>You are about to add the following PPA to your system:<\/h6>\n<h6>Software repository for unstable pgRouting and related packages<\/h6>\n<h6>Reference: http:\/\/www.pgrouting.org<\/h6>\n<h6>More info: https:\/\/launchpad.net\/~georepublic\/+archive\/pgrouting-unstable<\/h6>\n<h6>Press [ENTER] to continue or ctrl-c to cancel adding it<\/h6>\n<h6><\/h6>\n<h6>gpg: keyring `\/tmp\/tmpPcmrtH\/secring.gpg&#8217; created<\/h6>\n<h6>gpg: keyring `\/tmp\/tmpPcmrtH\/pubring.gpg&#8217; created<\/h6>\n<h6>gpg: requesting key B65ADE33 from hkp server keyserver.ubuntu.com<\/h6>\n<h6>gpg: \/tmp\/tmpPcmrtH\/trustdb.gpg: trustdb created<\/h6>\n<h6>gpg: key B65ADE33: public key \u00abLaunchpad PPA for Georepublic\u00bb imported<\/h6>\n<h6>gpg: Total number processed: 1<\/h6>\n<h6>gpg: imported: 1 (RSA: 1)<\/h6>\n<h6>OK<\/h6>\n<\/blockquote>\n<p>A\u00f1adimos un nuevo repositorio editando\u00a0\u00a0nuestro sources.list:<\/p>\n<blockquote><p>sudo vim \/etc\/apt\/sources.list<\/p><\/blockquote>\n<p>Y a\u00f1adimos las fuentes, para Ubuntu 12.04:<\/p>\n<blockquote><p>deb http:\/\/ppa.launchpad.net\/georepublic\/pgrouting-unstable\/ubuntu precise main<\/p>\n<p>deb-src http:\/\/ppa.launchpad.net\/georepublic\/pgrouting-unstable\/ubuntu precise main<\/p><\/blockquote>\n<p>Para otras versiones de ubuntu visita la p\u00e1gina de pgRouting <a title=\"PgRouting deb\" href=\"https:\/\/launchpad.net\/~georepublic\/+archive\/pgrouting-unstablehttp:\/\/\">aqu\u00ed<\/a>.<\/p>\n<p>Solo nos queda instalar postgis, pgrotuing y de paso la herramienta de conversi\u00f3n desde osm:<\/p>\n<blockquote><p>sudo apt-get install postgresql-9.1-postgis-2.0 postgresql-9.1-pgrouting osm2pgrouting<\/p><\/blockquote>\n<p>Eso es todo. Lo siguiente ser\u00e1 crear nuestras b\u00e1se de datos con capacidad postgis y pgrouting, que veremos en el siguiente post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Este post forma parte de un conjunto en el que se pretende: -Instalar pgrounting (I) -Generacion de una red OSM (II) &#8211; Creacion una aplicacion web demo de analisis network (III)<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[17,20,21,22,23,27],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-open-street-map","tag-osm","tag-pgrouting","tag-postgis","tag-postresql","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":0,"href":"https:\/\/jongarrido.es\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jongarrido.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}