Open baderstine opened 1 month ago
Thanks. Do you need
export PATH=$PATH:/usr/pgsql-15/bin
? I do wonder why it's not put on the PATH automatically.
FWIW I was able to install in rocky-8 using only dnf install libpq-devel
without customizing any paths.
Aha! This seems to have worked:
export PATH=$PATH:/usr/pgsql-15/bin
(I also tried: export PKG_CONFIG_PATH=/usr/lib64
but this didn't work. I can confirm that the export PATH ...
fix above was thing that actually got it to work.)
Thanks, Jeroen. Should we then add:
* rpm: libpq-devel (RedHat, Rocky)
or similar to the configure
output?
When I try that, it doesn't seem to change anything:
$ sudo dnf install libpq-devel
Updating Subscription Management repositories.
github_git-lfs 691 B/s | 833 B 00:01
github_git-lfs-source 673 B/s | 833 B 00:01
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 193 kB/s | 4.5 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 170 kB/s | 4.1 kB 00:00
rhel8 epel 147 kB/s | 2.3 kB 00:00
Package postgresql12-devel-12.19-1PGDG.rhel8.x86_64 is already installed.
Package postgresql13-devel-13.15-1PGDG.rhel8.x86_64 is already installed.
Package postgresql14-devel-14.12-1PGDG.rhel8.x86_64 is already installed.
Package postgresql15-devel-15.7-1PGDG.rhel8.x86_64 is already installed.
Package postgresql16-devel-16.3-3PGDG.rhel8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
I modified my .bashrc file to include export PATH=$PATH:/usr/pgsql-15/bin
so that this would persist across sessions, although other users on the machine would need to modify their own .bashrc file. However, I would have thought that this would be added to the path by the dnf/yum install? Am I missing something?
Should this be raised with the maintainers of the relevant RHEL packages? It seems that we have a workaround here.
Apologies @jeroen and @krlmlr for bringing this up as it seems to have been addressed previously: #118 and #350
I am running RHEL 8.9 using R 4.3.3 and attempted to install RPostgres, which failed with the following error:
I attempted the following:
sudo yum install postgresql-devel
sudo yum install libpq
which did install these things, but did not resolve the install error.I tried
export PATH=$PATH:/usr/pgsql-15/bin/pg_config
as well (thinking this would address (ii) above, by adding pg_config to my PATH) but this also did not resolve the error. I can confirm that neither condition in (i) is true, nor do I know how to address them.Other output requested in the referenced issues:
... and the closest I can find to libpq.pc appears to be /usr/lib64/libpq.so