psql doesn't work on the pulp2-nightly-pulp3-source-centos7 box
Pulp 3 functions fine, it's just postgresql client which doesn't work.
(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 ~]$ psql psql: error while loading shared libraries: libpq.so.rh-postgresql96-5: cannot open shared object file: No such file or directory
#3 Updated by ttereshc about 2 months ago
Creating a symlink to the expected location helped. I guess adding /opt/rh/rh-postgresql96/root/ to the path will also help. Though I'm surprised why installation doesn't create symlink in /usr/lib64. :/
sudo ln -s /opt/rh/rh-postgresql96/root/usr/lib64/libpq.so.rh-postgresql96-5 /usr/lib64/libpq.so.rh-postgresql96-5
I don't think this is a bug per-se, it's just how SCLs work, since you can have multiple installed in parallel and to accommodate that you are forced to explicitly specify which version you want.
What we should do is
scl enable rh-postgresql96 -- psql
Since we are only using one version of the SCL, we could possibly set it up to be permanently enabled by adding it to the bashprofile.
- Status changed from POST to MODIFIED
Applied in changeset ansible-pulp3|98c552274e462b1455c4396528f4533542600618.
Please register to edit this issue