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 am running PostgreSQL 9.1 with Postgis 2.0 on Fedora 15.

When trying to install the raster support,

psql -d mydb -f rtpostgis.sql -v ON_ERROR_STOP=1

I get the following error

psql:rtpostgis.sql:46: ERROR:  
     could not load library "/usr/pgsql-9.1/lib/": 
     cannot open shared object file: No such file or directory

A locate gives the following paths.


Reinstalling the GDAL from the repositories did not solve the problem. The version of the installed GDAL.

gdal.x86_64                                1.7.3-14.fc15                @updates
share|improve this question
up vote 5 down vote accepted

You'll want to check that /etc/ has a referencence to the path /usr/lib64/mpich2/lib. If you add the path to, make sure to run ldconfig. You can then see what is in the ld cache using "ldconfig -p".

share|improve this answer
/etc/ had include*.conf one of the file was /etc/ which contained /usr/lib64/atlas. A ldconfig -p | grep libhdf5 did not return anything. So I created a file gdal.conf and added the path /usr/lib64/mpich2/lib. Ran ldconfig. Now, ldconfig -p | grep libhdf5 had the paths to llibhdf5 files. After doing this, postgis raster suppot installation went smoothly. Thanks you for the input. – ThinkingMonkey Aug 9 '12 at 19:27

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.