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 1hKO6d-00066N-Rk for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2019 14:15:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hKO6c-0003c8-HD for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2019 14:15:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKO32-0001NC-AK for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2019 14:11:24 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:50a2::3:1]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKO2z-0005UY-4K for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2019 14:11:23 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.burggraben.net (Postfix) with ESMTP id 3A5386002F7; Sat, 27 Apr 2019 16:11:18 +0200 (CEST) X-Spam-Scanned: by amavisd-new at exwg.net Received: from smtp.burggraben.net ([127.0.0.1]) by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1yAjTJNjewCh; Sat, 27 Apr 2019 16:11:07 +0200 (CEST) Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS; Sat, 27 Apr 2019 16:11:07 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id 20E74139A02; Sat, 27 Apr 2019 16:11:06 +0200 (CEST) Date: Sat, 27 Apr 2019 16:11:06 +0200 From: Christoph Moench-Tegeder To: Matthias Apitz Cc: pgsql-general@lists.postgresql.org Subject: Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10 Message-ID: <20190427141105.GB2520@elch.exwg.net> References: <20190427075849.GA2944@c720-r342378> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190427075849.GA2944@c720-r342378> User-Agent: Mutt/1.11.4 (2019-03-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ## Matthias Apitz (guru@unixarea.de): > 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): 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 And there are the PGDG packages: cmt@squirrel:/tmp$ rpm -qp --info postgresql10-10.7-1PGDG.sles12.x86_64.rpm warning: postgresql10-10.7-1PGDG.sles12.x86_64.rpm: Header V4 DSA/SHA1 Signature, 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 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". 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". 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 repositories share the same priority.". Regards, Christoph -- Spare Space