Pierre Labastie wrote:
On 29/01/2018 17:21, Edgar Alwers wrote:
Am 29.01.2018 um 16:57 schrieb Bruce Dubbs:
Try just re-building gmp and copying /usr/lib/libgmpxx.so.4.5.2 and
/usr/lib/libgmp.so.10.3.2 onto the laptop.
My actual problem, Bruce and Baho, is that I will not have access during a
month to my PC, and that on the Laptop I cannot even configure GMP. No way to
build it , except, may be, using another partition on the laptop and making a
change root ?
Edgar
But don't you have access to the PC now? If you do not, the only way I see is
to install a commercial distro on another partition on your laptop, and use it
to build gmp and install it to some directory (using "make
DESTDIR=/home/somedir install" instead of just "make install", you do not need
to be root, and don't bother about "make install-html"). Then recursively copy
/home/somedir/* to the lfs partition, then reboot to lfs, and check that you
can recompile and install gmp, using the book's instructions. If it works,
then you should be OK.
I think that may be more than is needed. Try this.
In a standard distro with gcc and friends installed:
tar -xf gmp-6.1.2.tar.xz
cd gmp-6.1.2
cp -v configfsf.guess config.guess
cp -v configfsf.sub config.sub
./configure --prefix=/usr \
--enable-cxx \
--disable-static \
--docdir=/usr/share/doc/gmp-6.1.2
make
Now copy the libraries. Assume the mounted lfs system libs are at
/mnt/usr/lib
cp -v .libs/libgmpxx.so.4.5.2 /mnt/usr/lib/
cp -v .libs/libgmp.so.10.3.2 /mnt/usr/lib/
Check that /mnt/usr/lib/libgmp* symlinks point to the updated files.
Then reboot to lfs and see if gcc works properly.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page