Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hL1JM-0006Ir-1w for pgsql-general@arkaria.postgresql.org; Mon, 29 Apr 2019 08:06:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hL1JK-00026W-J2 for pgsql-general@arkaria.postgresql.org; Mon, 29 Apr 2019 08:06:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hL1JK-00021g-6h for pgsql-general@lists.postgresql.org; Mon, 29 Apr 2019 08:06:50 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hL1JD-0008Lw-Av for pgsql-general@lists.postgresql.org; Mon, 29 Apr 2019 08:06:49 +0000 Received: from [89.204.130.70] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1hL1JA-0006VJ-UG; Mon, 29 Apr 2019 10:06:41 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id x3T86biT002966 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 29 Apr 2019 10:06:37 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id x3T86Y0m002965; Mon, 29 Apr 2019 10:06:34 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 29 Apr 2019 10:06:29 +0200 From: Matthias Apitz To: Christoph Moench-Tegeder Cc: pgsql-general@lists.postgresql.org Subject: Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10 Message-ID: <20190429080629.GA2921@c720-r342378> Reply-To: Matthias Apitz References: <20190427075849.GA2944@c720-r342378> <20190427141105.GB2520@elch.exwg.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <20190427141105.GB2520@elch.exwg.net> X-Operating-System: FreeBSD 13.0-CURRENT r342378 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.11.1 (2018-12-01) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.70 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El d=C3=ADa s=C3=A1bado, abril 27, 2019 a las 04:11:06p. m. +0200, Christop= h Moench-Tegeder escribi=C3=B3: > ## Matthias Apitz (guru@unixarea.de): >=20 > > To get Perl's DBD::Pg compiled now I really do need the pg_config tool, > > but I can't figure out how to get it. I see the following RPM (the ones > > with an 'i' or 'i+' are installed): >=20 > Um. Which postgresql10-* packages are that? > SLES12SP4 has "postgresql10" and friends: > Information for package postgresql10: > ------------------------------------- > Repository : SLES12-SP4-Updates > Name : postgresql10 > Version : 10.6-1.6.1 > Arch : x86_64 > Vendor : SUSE LLC >=20 > And there are the PGDG packages: > cmt@squirrel:/tmp$ rpm -qp --info postgresql10-10.7-1PGDG.sles12.x86_64.r= pm > warning: postgresql10-10.7-1PGDG.sles12.x86_64.rpm: Header V4 DSA/SHA1 Si= gnature, key ID 442df0f8: NOKEY > Name : postgresql10 > Version : 10.7 > Release : 1PGDG.sles12 > Architecture: x86_64 > Install Date: (not installed) > Group : Applications/Databases > Size : 15066385 > License : PostgreSQL >=20 > If you are on a SLES without postgresql10 packages and use the PGDG > packages, you'll find pg_config in the "postgresql10" package (at > least it's in that postgresql10-10.7-1PGDG.sles12.x86_64.rpm I used above, > and the spec file shows the same...), the full path would be > "/usr/pgsql-10/bin/pg_config". >=20 > If you're on SLES12 with Suse's postgresql10 packages, you'll find > pg_config in "postgresql10-devel" - which you only get if you have > activated/installed the "SDK" repositories. The full path for pg_config > with this package is > "/usr/lib/postgresql10/bin/pg_config". >=20 > If you are on a SLES with postgresql10 packages and are mixing that > with the PGDG packages, you might be in a mess. And as far as I know > there's no good way to make sure which packages you get, as zypper > tells me "Repository priorities are without effect. All enabled repositor= ies > share the same priority.". Hello Christoph, The server in question is SLES12-SP3 and I can't update to SP4 at the moment. I have installed the following pkg: # cat /etc/os-release NAME=3D"SLES" VERSION=3D"12-SP3" VERSION_ID=3D"12.3" PRETTY_NAME=3D"SUSE Linux Enterprise Server 12 SP3" ID=3D"sles" ANSI_COLOR=3D"0;32" CPE_NAME=3D"cpe:/o:suse:sles:12:sp3" # rpm -qa | egrep 'postgre|libpq' | sort libpq5-10.6-1.6.1.x86_64 libpqos1-0.1.4-3.1.x86_64 libpqxx-5.0.1-2.sles12.x86_64 libpqxx-devel-5.0.1-2.sles12.x86_64 postgresql-init-10-17.20.1.noarch postgresql-jdbc-9.4-1.1.noarch postgresql10-10.6-1.6.1.x86_64 postgresql10-contrib-10.6-1.6.1.x86_64 postgresql10-devel-10.4-1PGDG.sles12.x86_64 postgresql10-docs-10.6-1.6.1.noarch postgresql10-libs-10.4-1PGDG.sles12.x86_64 postgresql10-server-10.6-1.6.1.x86_64 How can I activated/installed the "SDK" repositories to get rid of the PGDG packages? Thanks in advance. Regards matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-176= -38902045 Public GnuPG key: http://www.unixarea.de/key.pub --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlzGsIIACgkQR8z35Hb+ nRG2Bw/6A7fsFooB9xIRhkvf2t9GuHCOgYjXpTZ9d9FX+FGfmFawh9TT544uR74z cfM9zESgPWjb5nGD/sf1VmIpEqiXcD4UGn9T8GreZKbShzQRVVP6DcPzQoEgH6bI QTUmHCkd107W9eQcnHfLR4NU0w642zQxHF+u65JDXP5AsLWESBtA6ArDuVPKlCeF 4HiDsaM6MIXOcC4zYPoTnDBYR5ZhDHlsqrixQpc/VgukEdZJDnLFaLDQAELPH/VH 4nOPbdSVhhi+JhcvYwA0rJIIje9ejILDSKBY6W+Vq3O8eV2IS9qRbIar7xmc+69H DYqqF5AJ0HbeN0MzmKSuepquWpfSSNpduQcFHQTfM0AVXkmOFiACdT5qdmz2XdpW BSYcjkBxMKzB37OdpqSjVx/KryqsXp66ThIWdZph78kg8GN+F9kQiCZy2hiv6Nnw YBYLWVkiBDE7/+bqQsD7XXs+vjAeCx5xlixxOgU3OhEY7kY4r8cSKPLEMLhzEwlE i1Bq1xhtImjZr4bvck1yIXsS+Dbjo5V5GI8ipHlnh2CEsu8Z/8dFQp8DEari0+08 Rf2qAvdxPJgWxjY9jU/A1Jl6hHtqLTp8joe2x3acK5xJ/TGZA21Mo1hQql4ix3QE lyNCwMmSNegr+4uKo4stvl3z4k63KcDbz4c7PflT66KkrWiAkJM= =uN0w -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--