Php Error While Loading Shared Libraries Libpq.so.4
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up pg_ctl: error while loading shared libraries: libpq.so.5 up vote 0 down vote favorite 1 I'm trying to get postgres server status with: sudo /etc/init.d/postgres status -u postgres But getting following error: /home/alex/olddisk/usr/local/pgsql/bin/pg_ctl: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory I added: export LD_LIBRARY_PATH="" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/alex/olddisk/usr/local/pgsql/lib/" to my .bashrc, but it didn't help. Thank you. postgresql share|improve this question asked Feb 15 '15 at 14:12 0xAX 7,851970142 libpg.so.5 lies in /home/alex/olddisk/usr/local/pgsql/lib/, I guess? –hagello Feb 15 '15 at 20:25 Per @survivor , does Error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory help? –Brad Koch May 15 '15 at 22:03 add a comment| 4 Answers 4 active oldest votes up vote 2 down vote Please ensure you have 'postgresql94' package installed as well (in addition to postgresql94-server, postgresql94-lib, postgresql94-devel and whatever other PG related package you already have). These libraries get installed along with that package. share|improve this answer answered Oct 22 '15 at 15:24 Rahul R 212 add a comment| up vote 0 down vote Some ideas: Your modified ~/.bashrc only takes effect when you start a new (interactive) shell. Though catching up on that will not help you because: /etc/sudoers, your configuration file of sudo, probably specifies env_reset. This means, that /etc/init.d/postgres will not see the content of $LD_LIBRARY_PATH of your shell. Insert debug statements in /etc/init.d/postgres to verify what I told you: echo "LDPATH: $LD_LIBRARY_PATH" >&2 Check /etc/init.d/postgres. Probably you will have to insert the third one of your export statements near the start of this script. Or you will have to update an existing export LD_LIBRARY_PATH= statement. share|improve this answer answered Feb 15 '15 at 20:54 hagello 657725 add a
pgsql-announce pgsql-bugs pgsql-docs pgsql-general pgsql-interfaces pgsql-jobs pgsql-novice pgsql-performance pgsql-php pgsql-sql pgsql-students Developer lists Regional lists Associations User groups Project lists Inactive lists IRC Local User Groups Featured Users International Sites Propaganda Resources Weekly News Re: [GENERAL] error while loading shared libraries: libpq.so.3 From: Richard Huxton
encountered the above error. # php -i | grep php.ini php: error while loading shared libraries: libpq.so.3: cannot open shared object file: No such file or directory https://sachinpradeeplinux.wordpress.com/2013/02/13/php-error-while-loading-shared-libraries-libpq-so-3-cannot-open-shared-object-file-no-such-file-or-directory/ You can fix this by simply creating a link from the new http://forum.directadmin.com/showthread.php?t=19628 library to the old one. ln -s /usr/lib/libpq.so.4 /usr/lib/libpq.so.3 # php -v PHP 5.2.17 (cli) (built: Aug 4 2012 02:22:25) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and with php error Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies Share this:TwitterFacebookLike this:Like Loading... Related This entry was posted in PHP.Bookmark the permalink. Leave a comment Post navigation ← Previous Next → Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website php error while You are commenting using your WordPress.com account. (LogOut/Change) You are commenting using your Twitter account. (LogOut/Change) You are commenting using your Facebook account. (LogOut/Change) You are commenting using your Google+ account. (LogOut/Change) Cancel Connecting to %s Notify me of new comments via email. Search for: Recent Posts 2015 in review How to use Proxy server to access Internet at command lineInterface Bash script to monitor disk space in a linux server and sent alertmails Yum error : libxml2.so.2: cannot open shared object file: No such file ordirectory Unable to open pty: No such file ordirectory Archives January 2016 February 2015 April 2014 January 2014 November 2013 October 2013 September 2013 August 2013 June 2013 May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 April 2012 March 2012 Categories Apache Commands cPanel DNS Exim Linux litespeed MySQL/Database Nagios OpenVZ PHP SSH Uncategorized WordPress Blog Stats 77,037 hits Meta Register Log in Entries RSS Comments RSS WordPress.com Blog at WordPress.com. %d bloggers like this:
while loading shared libraries: libiconv.so.2: If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 5 of 5 Thread: Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: Thread Tools Show Printable Version Email this Page… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 06-26-2007,06:07 PM #1 DirectAdmin Support View Profile View Forum Posts Visit Homepage Administrator Join Date Feb 2003 Posts 8,417 Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: This is just an fyi, I've seen it on a few boxes after a php 5 upgrade. If you see this message, then just run "ldconfig" and start apache normally. The system just doesn't notice the new library, thus ldconfig tells the system to "go check again". Code: [root@server]# service httpd start Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory [FAILED] [root@server]# ldconfig [root@server]# service httpd start Starting httpd: [ OK ] John Reply With Quote 06-26-2007,08:50 PM #2 dannygoh View Profile View Forum Posts Visit Homepage Verified User Join Date Feb 2004 Location Malaysia Posts 382 thanks. just save my day! Danny Goh http://www.gethosted.my Reply With Quote 06-01-2008,12:51 PM #3 Dauser2007 View Profile View Forum Posts Verified User Join Date Dec 2007 Posts 171 i get this error : Code: Starting exim: /usr/sbin/exim: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory but use this way can not fix! what to do ! Reply With Quote 06-01-2008,12:58 PM #4 smtalk View Profile View Forum Posts Verified User Join Date Aug 2006 Location LT, EU Posts 6,688 Try: Code: yum -y install libmcrypt-devel █ Martynas Bendorius █ MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners. Reply With Quote 06-01-2008,01:05 PM #5 Dauser2007 View Profile View Forum Posts Verified User Join Date Dec 2007 Posts 171 Originally Posted by smtalk Try: Code: yum -y install lib