Server Fault is a question and answer site for system and network administrators. 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 installed Gdal on my centos 6 machine with command

  yum install gdal

But when I try to run

$ ogrinfo 

I get following error

ogrinfo: error while loading shared libraries: cannot open shared object file: No such file or directory

Here is a output of

$ldd /usr/bin/ogrinfo

(Since output was big passted on pastebin)

Repo list

adobe-linux-i386    Adobe Systems Incorporated                               
base                CentOS-6 - Base                                          
elgis               EL GIS 6 - x86_64                                        
epel                Extra Packages for Enterprise Linux 6 - x86_64           
extras              CentOS-6 - Extras                                        
google-chrome       google-chrome                                            
remi                Les RPM de remi pour Enterprise Linux 6 - x86_64         
remi-test           Les RPM de remi en test pour Enterprise Linux 6 - x86_64 
rpmforge            RHEL 6 - - dag                          
updates             CentOS-6 - Updates
share|improve this question
Please give the yum repolist output. – ewwhite Feb 2 '13 at 14:22
I have updated with repolist, I did not understood why downvote? – Mukesh Yadav Feb 4 '13 at 7:17

Do you have libhdf5 installed? It's part of the hdf5 package.

Please run which ogrinfo and ldd /path/to/orginfo and post the output.

You need the file. It's part of hdf5.

Can just you run yum install hdf5 ?

Also you may have need to add your hdf5 library path to your LD_LIBRARY_PATH.

share|improve this answer
When I do locate I get locate libhdf5 /usr/lib64/mpich2/lib/ /usr/lib64/mpich2/lib/ /usr/lib64/mpich2/lib/ /usr/lib64/mpich2/lib/ /usr/lib64/mpich2/lib/ /usr/lib64/mpich2/lib/ /usr/lib64/mpich2/lib/ /usr/lib64/mpich2/lib/ – Mukesh Yadav Feb 2 '13 at 13:44
See edit above. – ewwhite Feb 2 '13 at 13:47
I have added my output in my question. – Mukesh Yadav Feb 2 '13 at 13:54
You just need to install hdf5. See above. – ewwhite Feb 2 '13 at 14:00
Did you install hdf5? – ewwhite Feb 2 '13 at 14:21

Maybe the database file /etc/ wasn't updated automatically try run ldconfig as root and see if it works now

share|improve this answer
up vote 0 down vote accepted

Resolved I had to install it again. This time I build it from source code.

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.