LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   lfs 6.5 glibc script error (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-5-glibc-script-error-765579/)

aahiqmir 10-30-2009 09:22 AM

lfs 6.5 glibc script error
 
Hi.


Earlier i was facing error with gcc install....
So i had to start chapter 6 gain from the beginning.But this time i am facing problem not with gcc but with glibc.

I untared glibc-libidn while in source directory AS

tar -xvf glibc-libidn-2.10.1.tar.bz2

mv -v glibc-libidn-2.10.1 libidn

BUt book says to do it as

tar -xvf ../glibc-libidn-2.10.1.tar.bz2
mv -v glibc-libidn-2.10.1 libidn

I tried the above command by the book but got this


Code:

root:/sources# tar -xvf ../glibc-libidn-2.10.1.tar.bz2
tar: ../glibc-libidn-2.10.1.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

.


now when i try :


Code:

DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
        scripts/test-installation.pl
unset DL

i get following error:
Code:

root:/sources# sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
>          scripts/test-installation.pl
sed: can't read scripts/test-installation.pl: No such file or directory


PLease Help......

druuna 10-30-2009 09:39 AM

Hi,

Did you untar glibc first, enter the glibc directory and then execute the libidn related commands? Or did you do that from the source dir?

You need to be inside the untarred glibc directory.

Something like:
tar xf glibc.<version>.tar.gz
cd glibc.<version>
tar jxf ../glibc-libidn-2.10.1.tar.bz2
mv ... ....
etc


Hope this helps.


All times are GMT -5. The time now is 10:20 PM.