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 1j4nBs-0004fB-05 for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Feb 2020 14:52:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4nBq-0005VN-Pe for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Feb 2020 14:52:34 +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 1j4nBq-0005VG-EV for pgsql-bugs@lists.postgresql.org; Thu, 20 Feb 2020 14:52:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4nBo-0006uQ-7o for pgsql-bugs@lists.postgresql.org; Thu, 20 Feb 2020 14:52:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01KEqU6o007010; Thu, 20 Feb 2020 09:52:30 -0500 From: Tom Lane To: infotodaniel@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16269: psql: error while loading shared libraries In-reply-to: <16269-496be23121fd81e4@postgresql.org> References: <16269-496be23121fd81e4@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 20 Feb 2020 12:22:24 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7008.1582210350.1@sss.pgh.pa.us> Date: Thu, 20 Feb 2020 09:52:30 -0500 Message-ID: <7009.1582210350@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > Operating system: CENT OS - 7 > I Recently Upgraded from 9.5.3 to 10.10 on CENT os 7. > initially I configured postgres only with "--with-openssl" , then developer > asked for > libxml need to be enabled . > Then I installed postgres again with "--with-openssl --with-libxml" in a > different data and bin path, > and later up the database with the existing data folder, after this am > getting the Following error: > "psql: error while loading shared libraries: libpq.so.5: cannot open shared > object file: No such file or directory" > Kindly advise what to do to fix this ? Linux isn't terribly friendly to installing shared libraries in nonstandard places. If you want to do that, you'll need to adjust the dynamic loader's search path -- "man ldconfig" will help. regards, tom lane