Centos Error While Loading Shared Libraries Libc.so.6
during installation Issues related to software problems. Post Reply Print view Search Advanced search 10 posts • Page 1 of 1 pennstate06 Posts: 3 Joined: 2008/06/23 14:39:37 Libc.so.6 error during installation Quote Postby pennstate06 » 2008/06/23 14:55:14 I am a first-time user of centOS and have not used Linux for a few years so I hope someone may be able to help me troubleshoot the following error:********************************************************************************************************************************************Please enter installation directory [/opt/netcool]:rm: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directorycat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directoryrm: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directorydirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directorybasename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directorybasename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directorybasename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory********************************************************************************************************************************************From what I have read so far, some previous solutions have been to comment out LD_ASSUME_KERNEL in the installation .bin file but there is no such .bin file for this program.Some other suggestions have referred to linking, but I am not too familiar with this.Anyone help would be appreciated.Thanks Top gerald_clark Posts: 10594 Joined: 2005/08/05 15:19:54 Location: Northern Illinois, USA Libc.so.6 error during installation Quote Postby gerald_clark » 2008/06/23 15:29:35 http://www.centos.org/modules/newbb/vie ... p?forum=47You did not even tell us what you are trying to do. Top pennstate06 Posts: 3 Joined: 2008/06/23 14:39:37 Re: Libc.so.6 error during installation
Start 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 Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to http://www.centos.org/forums/viewtopic.php?t=19463 the top Accidentally deleted symlink libc.so.6 in CentOS 6.4. How to get sudo privilege to re-create it? up vote 1 down vote favorite 1 I accidentally deleted the symbol link /lib64/libc.so.6 -> /lib64/libc-2.12.so with $ sudo rm libc.so.6 Then I can not use anything including ls command. The error appears for any command I type ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file http://serverfault.com/questions/519664/accidentally-deleted-symlink-libc-so-6-in-centos-6-4-how-to-get-sudo-privilege or directory I've tried $ export LD_PRELOAD=/lib64/libc-2.12.so After this I can use ls and ln ..., but still can not use sudo ln ..., sudo -E ln ..., sudo su or even su. I always get this err sudo: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory or su: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory It seems LD_PRELOAD works only for the current shell session of my account, but not for a new account like root or a new session. It's a remote server so I can not use a live CD. I now have a ssh bash session alive but can not establish new ones. I have sudo privilege, but don't have root password. So currently my problem is I need to run sudo sln -s libc-2.12.so libc.so.6 to re-create the symlink libc.so.6, but I can not run sudo without libc.so.6. How can I fix it? Thanks~ linux centos sudo root glibc share|improve this question edited Jun 30 '13 at 6:40 asked Jun 30 '13 at 6:20 kangshiyin 10816 which version of kernel do you use? –ALex_hha Jul 3 '13 at 11:03 @ALex_hha 2
Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie [SOLVED] Error while loading shared libraries - wrong http://www.linuxquestions.org/questions/linux-newbie-8/error-while-loading-shared-libraries-wrong-elf-class-elfclass32-4175491402/ ELF class: ELFCLASS32 User Name Remember Me? Password Linux - Newbie This Linux forum https://lonesysadmin.net/2013/02/22/error-while-loading-shared-libraries-cannot-open-shared-object-file/ is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will centos error have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If centos error while you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 01-15-2014, 01:15 PM #1 CowboyRT LQ Newbie Registered: Jan 2014 Posts: 7 Rep: Error while loading shared libraries - wrong ELF class: ELFCLASS32 I am currently running CentOS 6.5 64-bit. I am attempting to install
comes a question from a Windows colleague trying to build software on Linux. He asks "I'm trying to do some web performance testing and I compiled weighttp and the libev libraries, which worked fine, but when I try to run the program it gives me the following error." weighttp: error while loading shared libraries: libev.so.4: cannot open shared object file: No such file or directory "I checked /usr/local/lib and the files are there. Do you have a suggestion?" Ah yes, a classic problem when building software. The problem here is that libev installed itself into /usr/local/lib: $ ls -l /usr/local/lib/libev* -rw-r--r--. 1 root root 435770 Feb 22 15:20 /usr/local/lib/libev.a -rwxr-xr-x. 1 root root 926 Feb 22 15:20 /usr/local/lib/libev.la lrwxrwxrwx. 1 root root 14 Feb 22 15:20 /usr/local/lib/libev.so -> libev.so.4.0.0 lrwxrwxrwx. 1 root root 14 Feb 22 15:20 /usr/local/lib/libev.so.4 -> libev.so.4.0.0 -rwxr-xr-x. 1 root root 174059 Feb 22 15:20 /usr/local/lib/libev.so.4.0.0 …but the dynamic linker doesn't know where they are, because it's never heard of /usr/local/lib. /usr/local is a traditional place for add-on software to install itself, so it doesn't interfere with the system libraries. If you're coming from a Windows background the .so files are essentially equal to DLLs, and load when you execute a program that depends on them. Programs that use dynamic libraries have several advantages, in that they're smaller, and the libraries can be updated without having to recompile all the programs that depend on them. So if there's a security problem with libev you can just patch libev, and not have to rebuild everything that uses that library. You can see what libraries a program is dynamically linked to with the ‘ldd' command: $ ldd /usr/local/bin/weighttp linux-vdso.so.1 => (0x00007fff251ff000) libev.so.4 => not found libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8f1cc1e000) libc.so.6 => /lib64/libc.so.6 (0x00007f8f1c88b000) /lib64/ld-linux-x86-64.so.2 (0x00007f8f1ce49000) That confirms we're just dealing with the new libra