Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhUF6-0006xo-5v for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 06:22:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhUF4-0000NH-DW for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 06:22:46 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhUF4-0000NA-61 for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 06:22:46 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fhUF1-0008IB-2o for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 06:22:45 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id w6N6MYRM023627 for ; Mon, 23 Jul 2018 09:22:39 +0300 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id w6N6MXsS057256 for ; Mon, 23 Jul 2018 09:22:33 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Can't compile postgresql 11 on FreeBSD 11.1 To: pgsql-general@lists.postgresql.org References: <01c801d41e05$3a8ff650$afafe2f0$@com.br> <4d55008e-658e-0913-f7f1-f844acf643e8@aklaver.com> <27815.1531859121@sss.pgh.pa.us> From: Achilleas Mantzios Message-ID: <8e7a4b18-4f35-0279-2dc6-d89c0389fade@matrix.gatewaynet.com> Date: Mon, 23 Jul 2018 09:22:33 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <27815.1531859121@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_HAM_SIGNAT1 autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 17/07/2018 23:25, Tom Lane wrote: > Adrian Klaver writes: >> On 07/17/2018 12:34 PM, Márcio Antônio Sepp wrote: >>> I'm trying to compile PostgreSQL 11beta2 but this errors occur: >>> checking readline.h usability... no >> Looks like you need whatever is the FreeBSD equivalent of readline-dev(el). > AFAICT FreeBSD doesn't do things that way. On a nearby machine, I see > > $ pkg which /usr/local/include/readline/readline.h > /usr/local/include/readline/readline.h was installed by package readline-6.3.8 > > What's more likely the problem is that FreeBSD insists on installing > packages under /usr/local, but it does *not* set that up to be part of > gcc's default search paths. (Security 1, usability 0.) You need these > configure flags to do much of anything on that platform: > > --with-includes=/usr/local/include --with-libs=/usr/local/lib For ages I have been manually compiling PostgreSQL under FreeBSD with only : ./configure --with-ldap But in my case I tend to fall back to gcc instead of the native clang/llvm . That might be his issue. > > regards, tom lane > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt