Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running into a problem once I try

[cmake_dir]/bin/cmake .

I get these errors:

Boost headers were found here: /usr/include
Output directory for libraries is set to sh: /usr/bin/postgres/pg_config: Not a directory
Installation directory for libraries is set to sh: /usr/bin/postgres/pg_config: Not a directory and for SQL files is set to /usr/share/pgrouting
-- Configuring done
-- Generating done

I'm running CentOS 6.3 and all I know is that my postgresql data folder is at /var/lib/pgsql/data

share|improve this question

You also had a similar error and to resolve it I made a modification in the CMakeCache.txt file. Look at the line which contains POSTGRESQL_EXECUTABLE:FILEPATH and update with your real postgresql filepath.

Hopefully it will help you

share|improve this answer
jesus christ, my file PATH was an error message (with no self-explanation that this is the default setting). Thanks a lot pgrouting guide, you never mentioned that **** – boulder_ruby Sep 10 '13 at 2:33

Building on baudinseb's answer, I changed my POSTGRESQL_EXECUTABLE:FILEPATH from POSTGRESQL_EXECUTABLE-NOTFOUND to /usr/bin. Found that using which psql.

Anyway. Also installed postgresql-server-dev-9.1 with apt-get. I'm on to the next step.

Shame on somebody for this. How on earth could you set up an install package to FAIL NO MATTER WHAT and leave NO REASONABLE NOTIFICATION to your user that you have done so. WHY THE ** DOESN'T THIS DEFAULT TO UBUNTU/apt-get default paths? Regardless, "POSTGRESQL_EXECUTABLE-NOTFOUND" looks like a species of error message, not a "friendly reminder" to set the path. A simple error message for this situation would go a long way.

Anyway, congratulations on attempting to cross the rubicon that is installing pgrouting

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.