Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YVMgE-0005qg-Av for pgsql-odbc@arkaria.postgresql.org; Tue, 10 Mar 2015 16:06:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YVMgD-0005S6-JJ for pgsql-odbc@arkaria.postgresql.org; Tue, 10 Mar 2015 16:06:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YVMgC-0005Rz-P3 for pgsql-odbc@postgresql.org; Tue, 10 Mar 2015 16:06:48 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YVMg0-0003q7-NN for pgsql-odbc@postgresql.org; Tue, 10 Mar 2015 16:06:47 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CE12321162 for ; Tue, 10 Mar 2015 12:06:32 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Tue, 10 Mar 2015 12:06:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= x-sasl-enc:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=20sCYMfzGlD7MbFOzGdeyhvqoBg=; b=FDwgwq9/VxYm6yFD4J a49NAxoqLpbbzhNC2L7SE8WO8JcVobyHcQ9uj55NH800hBIQCCNw8KNIyD4VCEHj UWZh7R2lVtusTbSZdWs+rKbufeRx+Ehc63QeqyU5Mu6BvhcSgg4jR0f5ewLuKoa7 8N3PdcRi2UWLTwWAQzfK/OHd4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=20sCYMfzGlD7MbFOzGdeyh vqoBg=; b=F+3NQjdUK9PfUdSDGmHkYzeoG49apbbiAEqkLmeNAA/YUm3Tc211Gi 7eG2o6Px2BBr+SVyahETrMbCPXOyCr+sqByinE9WjkJQboTeBzRpeiIKCJjFl/8Z nNed6D/Phu86VKfjlI0SIr8whcOi9T8EEUucNBkzNB/DiEkl+98zQ= X-Sasl-enc: Z8L5vyEUoqHnCbYX3V3II+vOm7bbEompn8h1dGWldhf/ 1426003594 Received: from killi.site (unknown [24.17.179.185]) by mail.messagingengine.com (Postfix) with ESMTPA id E5899C002A4; Tue, 10 Mar 2015 12:06:33 -0400 (EDT) Message-ID: <54FF1689.1030606@aklaver.com> Date: Tue, 10 Mar 2015 09:06:33 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Caleb , pgsql-odbc@postgresql.org Subject: Re: Compile of plsqODBC driver fails on OEL6 References: <0bd1ead80c190819c2b6e21848b10a96.squirrel@cwh13.canadianwebhosting.com> In-Reply-To: <0bd1ead80c190819c2b6e21848b10a96.squirrel@cwh13.canadianwebhosting.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 03/04/2015 06:42 PM, Caleb wrote: > Hello: > > I'm not sure if this is a bug, or some part of the procedure we are missing. > > We are trying to compile the plsqODBC driver, refering to instructions in > https://odbc.postgresql.org/docs/unix-compilation.html, as that appears to > be the only way to install on Linux. > > We are using latest 64-bit version of Postgres and plsqODBC (just > downloaded). Configure fails with: > > configure: error: libpq library not found > > Some clues in the config.log (attached) may be: > > /usr/bin/ld: warning: libssl.so.1.0.0, needed by > /opt/PostgreSQL/9.3/lib/libpq.so, not found (try using -rpath or > -rpath-link) > /usr/bin/ld: warning: libcrypto.so.1.0.0, needed by > /opt/PostgreSQL/9.3/lib/libpq.so, not found (try using -rpath or > -rpath-link) > > Yet all of the libraries are present: > > [root@postgres9 /]# locate libpq.so > /opt/PostgreSQL/9.3/lib/libpq.so > /opt/PostgreSQL/9.3/lib/libpq.so.5 > /opt/PostgreSQL/9.3/lib/libpq.so.5.6 > /opt/PostgreSQL/9.3/pgAdmin3/lib/libpq.so.5 > > [root@postgres9 /]# locate libssl.so > /opt/PostgreSQL/9.3/lib/libssl.so.1.0.0 > /usr/lib64/.libssl.so.1.0.0.hmac > /usr/lib64/.libssl.so.10.hmac > /usr/lib64/libssl.so.1.0.0 > /usr/lib64/libssl.so.10 > > [root@postgres9 /]# locate libcrypto.so > /opt/PostgreSQL/9.3/lib/libcrypto.so.1.0.0 > /usr/lib64/.libcrypto.so.1.0.0.hmac > /usr/lib64/.libcrypto.so.10.hmac > /usr/lib64/libcrypto.so.1.0.0 > /usr/lib64/libcrypto.so.10 > > > We have tried the config command with and without the --with-libpq switch, > also using lib and bin suffix, same results. > > ./configure --with-libpq=/opt/PostgreSQL/9.3 > > Latest versions just downloaded: > > psqlodbc-09.03.0400.tar.gz > unixODBC-2.3.2.tar.gz > postgresql-9.3.6-1-linux-x64.run > Linux postgres9.localdomain 2.6.39-400.17.1.el6uek.x86_64 #1 SMP Fri Feb > 22 18:16:18 PST 2013 x86_64 x86_64 x86_64 GNU/Linux I believe that is an ld issue. Have you looked in /etc/ld.so.conf to see if /opt/PostgreSQL/9.3/lib/ is there? If not, add it and the run ldconfig as root and then try the configure again. > > Thank you in advance, > Caleb. > > > > > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc