pgrouting icon indicating copy to clipboard operation
pgrouting copied to clipboard

pgrouting extension not creating on OS X

Open JamesLMilner opened this issue 9 years ago • 4 comments

Expected behavior and actual behavior

using

brew install pgrouting

after

brew install postgis

and using

CREATE EXTENSION postgis
CREATE EXTENSION pgrouting

to install the respective extensions. In this case the command to install pgrouting gives the error:

ERROR: could not open extension control file "/Library/PostgreSQL/9.5/share/postgresql/extension/pgrouting.control": No such file or directory

I have also tried building manually and get the same error. Any ideas?

Specifications like the version of pgRouting/PostGIS and PostgreSQL as well as Operating System

OS: Mac 10.11.2 (15C50)

PG and PostGIS:

"POSTGIS="2.2.2 r14797" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 1.11.2, released 2015/02/10 GDAL_DATA not found" LIBXML="2.9.2" LIBJSON="0.12" RASTER"

JamesLMilner avatar Sep 27 '16 18:09 JamesLMilner

@JamesMilnerUK I wonder if you can give also which version of pgRouting you are trying to install.

cvvergara avatar Sep 27 '16 20:09 cvvergara

@JamesMilnerUK

I'm wondering if you have multiple versions of PostgreSQL and brew installed into a different location.

I thought brew installed PostgreSQL in something like Cellar, which doesn't seem to match what you have.

Did you install your PostgreSQL using homebrew as well, or did you get that elsewhere?

robe2 avatar Sep 27 '16 21:09 robe2

@cvvergara it will be the latest version available on brew so:

https://homebrew.bintray.com/bottles/pgrouting-2.2.4_1.el_capitan.bottle.tar.gz

I assume that's 2.2.4

@robe2 I think you might be on to something. I installed PostgreSQL from the official website using the Enterprise DB installer / Stackbuilder, which might put PostgreSQL in a different location to what pgrouting expects. Postgres appears in:

/Library/PostgreSQL/9.5/data

Where as PostGIS and pgrouting seems to be installed to:

/usr/local/Cellar/postgis/2.2.2_2 /usr/local/Cellar/pgrouting/2.2.4_1

I think brew sets up a symbolic link however?

JamesLMilner avatar Sep 28 '16 09:09 JamesLMilner

latest: 2.3.0 https://github.com/pgRouting/pgrouting/releases/tag/pgrouting-2.3.0 was released on monday, I dont know who makes the OS packages

cvvergara avatar Sep 28 '16 22:09 cvvergara