- OS on which I’ve isntalled pgAdmin: Centos 6.3
- Postgresql 9.2 is installed on another machine (not sure if this matters)
Have installed pgadmin3_92 via postgresql repo.
When I go: Applications > Programming > pgAdminIII, and select, nothing happens.
When I enter pgadmin3_92 into the terminal I get
pgadmin3_92: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
I’ve tried a Google search for this error and it came back with no results. I’m only new with Linux/Centos so I’ve reached the limit of what to do next to figure out how to get pgAdminIII working.
Any ideas on what to look for/do next?
The error is caused by Centos not being able to find the shared libraries to run the application.
My
pgadmin3library files are installed at:/usr/pgsql-9.2/libI ran
ldd pgadmin3as per hints here, this confirmed that the shared library could not be found to runpgadmin.Also on the same link it shows to change to root user:
su - root, and then create a.conffile that points Centos to where the libraries are forpgadmin3. The command to create this file is:For someone else this would be:
I then ran:
cat /etc/ld.so.conf.d/pgsql-9.2.confto confirm the file had been created and the location of the libraries had been written to the file.I then ran the following to ensure Centos was refreshed with this new configuration info:
I was able to run
pgadmin3after this.