Cannot Open Shared Object File Error 24
Contents |
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 error while loading shared libraries libc.so.6 cannot open shared object file more about Stack Overflow the company Business Learn more about hiring developers or
Error While Loading Shared Libraries Cannot Open Shared Object File
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community libtinfo.so.5: cannot open shared object file: no such file or directory Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up sh: error while loading shared libraries: libc.so.6: cannot open shared
Deleted Libc.so.6 By Mistake
object file: Error 24 up vote 0 down vote favorite I have a C application running on Linux and it processes thousands of messages...but not whe I run the application after a couple minutes it brings up the following error: sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24 The application is doing about 30 messages per seconds, could it be some file error while loading shared libraries libstdc++.so.6 ubuntu open handle issue? STDOUT receives: "Process 19374 received signal 11 " Any ideas? Thanks for the help ;-) Lynton c share|improve this question asked Oct 24 '11 at 13:53 Lynton Grice 6581836 1 signal 11 means segmentation fault. Try using a debugger, e.g. gdb ("man gdb" for help). Not sure about the libc error. How many processes does the application start? Is process 19374 a sub process? Can you list the processes running ("ps aux | grep
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
Libc So 6 Elf File Os Abi Invalid
Business Learn more about hiring developers or posting ads with us Unix & Linux Questions
Ldconfig
Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, wrong elf class: elfclass64 FreeBSD and other Un*x-like operating systems. 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 the top http://stackoverflow.com/questions/7876706/sh-error-while-loading-shared-libraries-libc-so-6-cannot-open-shared-object-f error while loading shared libraries: libc.so.6: cannot open shared object file up vote 2 down vote favorite I have a Linux kernel and I chroot it on /var/chroot: I added bash dependencies like so: ldd /bin/bash linux-vdso.so.1 => (0x00007fff9a373000) libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f24d57af000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f24d55ab000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f24d51eb000) /lib64/ld-linux-x86-64.so.2 (0x00007f24d59f8000) Then I did: # cd /var/chroot/ # mkdir bin/ lib64/ lib/ # cp /lib/x86_64-linux-gnu/libtinfo.so.5 lib/ # cp /lib/x86_64-linux-gnu/libdl.so.2 lib/ # cp /lib/x86_64-linux-gnu/libc.so.6 lib/ http://unix.stackexchange.com/questions/179233/error-while-loading-shared-libraries-libc-so-6-cannot-open-shared-object-file # cp /lib64/ld-linux-x86-64.so.2 lib64/ # cp /bin/bash bin/ after that: # chroot /var/chroot After that I copied /bin/ls and the libraries shown by ldd ls. But when I run ls I have the following error: ls: error while loading shared libraries: libpthread.so.0: wrong ELF class: ELFCLASS32 libraries chroot dynamic-linking share|improve this question edited Jan 15 '15 at 23:59 Gilles 370k676711120 asked Jan 15 '15 at 10:43 MLSC 4071919 There are standard ways to create chroots. I recommend you use them. The details depend to some extent on your distribution, which you have not stated. –Faheem Mitha Jan 15 '15 at 12:03 It would probably be more useful to have the ldd output of the chrooted executable instead, since it's the one which is causing trouble... Besides, there doesn't seem to be any "no such file in directory" error involved. –John WH Smith Jan 16 '15 at 0:16 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted Since you were apparently able to launch bash, you have the basics right: you need to copy all the libraries listed by ldd /bin/command to a directory on the library load path, plus the loader itself (/lib64/ld-linux-x86-64.so.2) which needs to be at the location hard-coded in the executables. If you get the error error while loading shared libraries: libc.
Post a reply 3 posts by Pasquale » Wed Jan 29, 2014 4:29 pm Hi, i have write the c code for TSL2561 for read lux.I have to repeatedly update the lux with while(1){Code}, I get this error https://www.raspberrypi.org/forums/viewtopic.php?t=67979&p=496252 :sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24Unable to open I2C device: Too many open filesMy program code:Code: Select all#include
#include
#include
#include
#include
// ALL COMMAND TSL2561
// Default I2C RPI address in (0x39) = FLOAT ADDR (Slave) Other [(0x49) = VCC ADDR / (0x29) = GROUND ADDR]
#define TSL2561_ADDR_LOW (0x29)
#define TSL2561_ADDR_FLOAT cannot open (0x39)
#define TSL2561_ADDR_HIGH (0x49)
#define TSL2561_CONTROL_POWERON (0x03)
#define TSL2561_CONTROL_POWEROFF (0x00)
#define TSL2561_GAIN_0X (0x00) //No gain
#define TSL2561_GAIN_AUTO (0x01)
#define TSL2561_GAIN_1X (0x02)
#define TSL2561_GAIN_16X (0x12) // (0x10)
#define TSL2561_INTEGRATIONTIME_13MS (0x00) // 13.7ms
#define TSL2561_INTEGRATIONTIME_101MS (0x01) // 101ms
#define TSL2561_INTEGRATIONTIME_402MS (0x02) // 402ms
#define TSL2561_READBIT (0x01)
#define TSL2561_COMMAND_BIT (0x80) //Must be 1
#define TSL2561_CLEAR_BIT (0x40) //Clears any pending interrupt (write 1 to clear)
#define TSL2561_WORD_BIT (0x20) // 1 = read/write word (rather than byte)
#define TSL2561_BLOCK_BIT (0x10) // 1 = using block read/write
#define TSL2561_REGISTER_CONTROL (0x00)
#define TSL2561_REGISTER_TIMING (0x81)
#define TSL2561_REGISTER_THRESHHOLDL_LOW (0x02)
#define TSL2561_REGISTER_THRESHHOLDL_HIGH (0x03)
#define TSL2561_REGISTER_THRESHHOLDH_LOW (0x04)
#define TSL2561_REGISTER_THRESHHOLDH_HIGH (0x05)
#define TSL2561_REGISTER_INTERRUPT (0x06)
#define TSL2561_REGISTER_CRC (0x08)
#define TSL2561_REGISTER_ID (0x0A)
#define TSL2561_REGISTER_CHAN0_LOW (0x8C)
#define TSL2561_REGISTER_CHAN0_HIGH (0x8D)
#define TSL2561_REGISTER_CHAN1_LOW (0x8E)
#define TSL2561_REGISTER_CHAN1_HIGH (0x8F)
//Delay getLux function
#define LUXDELAY 500
int getLux(void){
int fd = 0;
fd = wiringPiI2CSetup(TSL2561_ADDR_FLOAT);
wiringPiI2CWriteReg8(fd, TSL2561_COMMAND_BIT, TSL2561_CONTROL_POWERON); //enable the device
wiringPiI2CWriteReg8(fd, TSL2561_REGISTER_TIMING, TSL2561_GAIN_AUTO); //auto ga