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 1hKO33-0005v0-OW for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2019 14:11:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hKO32-0001NK-8c for pgsql-general@arkaria.postgresql.org; Sat, 27 Apr 2019 14:11:24 +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 1hKO31-0001ND-Vd for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2019 14:11:24 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKO2z-0007rr-H9 for pgsql-general@lists.postgresql.org; Sat, 27 Apr 2019 14:11:23 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4256A21B2A; Sat, 27 Apr 2019 10:11:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 27 Apr 2019 10:11:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=X aLkw3bdxQl/tMJBB6+3WtJTvlPT5VPkbuY/Or5OeWQ=; b=c8DMuKnGZwaK/deEV jJFl0MB/Td27CcM4ceg1uvZ4wEFGQiSmdzZTVoMRcpblAwOwgBxA13ZFvP1JT4El W1kf8COPxECF53QpyYxeAv9tyzv1WqYZqeyX2DYPEDw8yMP3HGvjGv2kGK1bHWLK 2XE3Ri/RrOm+vUteHRh5D9ODK3VCKCdRrGetdXTt2rJ3ueTidLU4FN9TJ/NPyI4d iMFuXTL0dVhEio84ngxJf86YDDB71WRkfceij85ZCBp2LnUptqQYrHCt1ZInXIQQ K6XODmHZG95AeLORYOvOd9yYWIfVpFMUtnjLbr6vkQsJ0TJTWJvPnWqVl6DbcBFF huoDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=XaLkw3bdxQl/tMJBB6+3WtJTvlPT5VPkbuY/Or5Oe WQ=; b=shEDoZ96WLNvruEbiqgGzdGdEdbRKy6EyRFwPS3OYRdWrPVRPVv38qcIL riHqWTi7gNmDist6NhypMHSDmzi9NA6kBDuE4tbvTpOc5b9oF9Slp2AdDBN9uVCi 7V0oTf9QSV2u5ef+LbXSA4LlIyv3sO+8QprRwoyEpxOPH396urDUL4MWQf/k7wm7 dcpkpOQ4W1g7q1UDorBrdWcKsPY2jZYSwhmIyVnI68EngGNinrZ3sT4k1AacYz0u Thl+Rveulu0Cb3oLqskYgAR5bN91Cwvup6Q+0M+X8UkMiM4kRMtTf8QdK/pR+BXp drF2OApljPripb1xvpF8OfuUZ6reQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrheekgdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id E1C4FE4B2F; Sat, 27 Apr 2019 10:11:17 -0400 (EDT) Subject: Re: Missing pg_config on SuSE SLES 12 for PostgreSQL 10 To: Matthias Apitz , pgsql-general@lists.postgresql.org References: <20190427075849.GA2944@c720-r342378> <20190427133319.GA5644@c720-r342378> From: Adrian Klaver Message-ID: <077b3b1c-e890-bb62-211c-2ceb2fc3d404@aklaver.com> Date: Sat, 27 Apr 2019 07:11:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190427133319.GA5644@c720-r342378> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/27/19 6:33 AM, Matthias Apitz wrote: > El día sábado, abril 27, 2019 a las 06:22:00a. m. -0700, Adrian Klaver escribió: > >> On 4/27/19 12:58 AM, Matthias Apitz wrote: >>> Hello, >>> >>> I'm investigating on a SuSE Linux SLES 12 server if we could add support >>> for PostgreSQL 10 to our Library Management System (currently running on top >>> of Oracle 12 and Sybase 15.7) using all kind of languages and API one could imagine. >>> >>> I've up and running the server and figured out how to connect (apart of >>> psql) with: >>> >>> - C code to run SQL commands from char strings >>> - ESQL/C code to embed SQL statements into C >>> - JDBC >>> >>> 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): >> >> Did the compile process complain about not finding pg_config? > > Yes: > > ... > Running Makefile.PL > Path to pg_config? > Configuring DBD::Pg 3.7.4 > PostgreSQL version: 0 (default port: 0) > POSTGRES_HOME: /usr/pgsql-10 > POSTGRES_INCLUDE: /usr/pgsql-10/include > POSTGRES_LIB: /usr/pgsql-10/lib > OS: linux > Could not determine the PostgreSQL library version. I am on openSUSE LEAP and I see the package: perl-DBD-Pg | PostgreSQL database driver for the DBI module > >> What happens if you run?: >> >> whereis pg_config > > whereis pg_config > pg_config: > > I also looked as root with find from / ... there is no pg_config > o the server and not in the installed RPM. > > Meanwhile I fetched the full source of 10.4 and can build it, but ofc > this shows the data of *my* build and not the installed version: > > apitzm@srap16dxr1:~/Postgres/postgresql-10.4> ./src/bin/pg_config/pg_config > BINDIR = /home/apitzm/Postgres/postgresql-10.4/src/bin/pg_config > DOCDIR = /usr/local/pgsql/share/doc > HTMLDIR = /usr/local/pgsql/share/doc > INCLUDEDIR = /usr/local/pgsql/include > PKGINCLUDEDIR = /usr/local/pgsql/include > ... > > But, I have an idea, I will write a simulated 'pg_config' which punches > the values of the installation when asked :-) > > matthias > -- Adrian Klaver adrian.klaver@aklaver.com