Linux中缺少so文件的问题

1. Problem 

 >ldd icount.so

linux-gate.so.1 =>  (0x0048d000)
libdwarf.so => not found
libelf.so.0 => not found

libdl.so.2 => /lib/libdl.so.2 (0x00110000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0015b000)
libm.so.6 => /lib/libm.so.6 (0x00114000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x002a3000)
libc.so.6 => /lib/libc.so.6 (0x0075b000)
/lib/ld-linux.so.2 (0x00d92000)


2. Solution:

>sudo cp libdwarf.so /lib
>sudo cp libelf.so.0 /lib


3. Result

>ldd icount.so
linux-gate.so.1 =>  (0x00abc000)
libdwarf.so => /lib/libdwarf.so (0x00f81000)
libelf.so.0 => /lib/libelf.so.0 (0x00110000)

libdl.so.2 => /lib/libdl.so.2 (0x005c4000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x005c8000)
libm.so.6 => /lib/libm.so.6 (0x00122000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x007c1000)
libc.so.6 => /lib/libc.so.6 (0x008b4000)
/lib/ld-linux.so.2 (0x00896000)

你可能感兴趣的:(c,linux)