root:/sources/coreutils-8.21/src# ldd ./expr linux-vdso.so.1 (0x00007fffad9a9000) libgmp.so.10 => not found libc.so.6 => /tools/lib/libc.so.6 (0x00007f4c5d321000) /tools/lib64/ld-linux-x86-64.so.2 (0x00007f4c5d6cf000)root:/sources/coreutils-8.21/src# ldd /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/cc1 linux-vdso.so.1 (0x00007ffff2bff000) libmpfr.so.4 => /usr/lib/libmpfr.so.4 (0x00007fd2bc8f0000) libdl.so.2 => /lib/libdl.so.2 (0x00007fd2bc6ec000) libz.so.1 => /lib/libz.so.1 (0x00007fd2bc4d5000) libc.so.6 => /lib/libc.so.6 (0x00007fd2bc127000) libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007fd2bbeb3000) /lib64/ld-linux-x86-64.so.2 (0x00007fd2bcb4b000) how can i fix it ? > Date: Wed, 1 May 2013 14:30:03 +0200 > From: [email protected] > To: [email protected] > Subject: Re: [lfs-support] 6.27. Coreutils-8.21 error > > Le 01/05/2013 11:50, سید احمد حسینی a écrit : > > ./expr --help is : > > root:/sources/coreutils-8.21# cd src/ > > root:/sources/coreutils-8.21/src# ./expr --help > > ./expr: error while loading shared libraries: libgmp.so.10: > > On my system, libgmp.so.10 is in /usr/lib. It is a symlink > to libgmp.so.10.1.1. Since it is in /usr/lib, it should be found. > > It is amazing that you have not had > a problem before, because libgmp.so.10 is required by the gcc > compiler, too... > > Could you try (while being chrooted): > # find /usr -name cc1 > That should return a path to cc1. Then type > # ldd <path_to_cc1> > where <path_to_cc1> is the path returned above. > > Compare with the output of (while being in the src directory): > # ldd ./expr > > Pierre > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
