[Bug 1175643] New: server:database:postgresql/postgresql11: Bug pg_config is not symlinked to /usr/bin/pg_config after installing
http://bugzilla.opensuse.org/show_bug.cgi?id=1175643 Bug ID: 1175643 Summary: server:database:postgresql/postgresql11: Bug pg_config is not symlinked to /usr/bin/pg_config after installing Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: max@suse.com Reporter: sergio@fenoll.be QA Contact: screening-team-bugs@suse.de Found By: --- Blocker: --- The binary pg_config is provided by the postgresql{version}-server-devel package, and should be installed in /usr/bin/pg_config, but after installing postgresql11-server-devel, it's only availabe in /usr/lib/postgresql11/bin/pg_config, which is not in the user's PATH by default. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1175643 http://bugzilla.opensuse.org/show_bug.cgi?id=1175643#c1 Reinhard Max <max@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Reinhard Max <max@suse.com> --- We maintain PostgreSQL through the update-alternatives mechanism and the symlink pointing from /usr/bin/pg_config to the respective /usr/lib/postgresqlXX/bin/pg_config file will only be created for the PostgreSQL version that is currently "active", and only if the server-devel package of that version is installed. In order to get the pg_config symlink pointing to the postgresql11 version you either need to uninstall all newer PostgreSQL packages (i.e. postgresql12*), so that postgresql11* becomes the default automatically, or you can manually set the default version to postgresql11: # update-alternatives --set postgresql /usr/lib/postgresql11 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1175643 http://bugzilla.opensuse.org/show_bug.cgi?id=1175643#c2 --- Comment #2 from Sergio Fenoll <sergio@fenoll.be> --- (In reply to Reinhard Max from comment #1)
We maintain PostgreSQL through the update-alternatives mechanism and the symlink pointing from /usr/bin/pg_config to the respective /usr/lib/postgresqlXX/bin/pg_config file will only be created for the PostgreSQL version that is currently "active", and only if the server-devel package of that version is installed.
In order to get the pg_config symlink pointing to the postgresql11 version you either need to uninstall all newer PostgreSQL packages (i.e. postgresql12*), so that postgresql11* becomes the default automatically, or you can manually set the default version to postgresql11:
# update-alternatives --set postgresql /usr/lib/postgresql11
Thank you, you're right. The postgresql12 package was installed automatically, I think it's because it's (confusingly) a recommended install when installing postgresql11, but postgresql12-server-devel was not, so I didn't have a pg_config file. Thanks for your help! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1175643 http://bugzilla.opensuse.org/show_bug.cgi?id=1175643#c3 --- Comment #3 from Reinhard Max <max@suse.com> --- Yes, the dependency chain is a bit unfortunate when you want to solely install an older-than-latest version of PostgreSQL, because e.g. postgresql11 REQUIRES postgresql which in turn RECOMMENDS postgresql12 (or whatever is the latest version we have packaged). Maybe I should consider lowering that RECOMMENDS to a SUGGESTS next time I make some bigger changes to these packages anyway, e.g. when introducing version 13 in a few weeks. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com