|
|
|
286
   
Group: Forum Members
Last Login: Yesterday @ 19:32:58
Posts: 403,
Visits: 1,641
|
|
After seeing a few calls for a linux from scratch article it piqued my interest, so thought i'd have a go myself.
I'm at chapter 5.7 http://www.linuxfromscratch.org/lfs/view/stable/chapter05/adjusting.html and seem to have encountered a problem.
when running the command "mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}" I got the error
"mv: cannot stat `/tools/i586-mandriva-linux-gnu/bin/ld': No such file or directory"
I am using TinyME (a mandriva based distro) and decided to change the instruction to read
"mv -v /tools/i686-pc-linux-gnu/bin/{ld,ld-old}" which produced the result
"/tools/i686-pc-linux-gnu/bin/ld' -> `/tools/i686-pc-linux-gnu/bin/ld-old"
Hopefully this is the end result intended. However the next command also fails to work and I am less sure how to change it.
"gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' \
> > `dirname $(gcc -print-libgcc-file-name)`/specs"
When I ran "gcc -dumpspecs >specs" then "cat specs" to check whether the changes had been effective, the dynamic linker at the end still reads "/lib/ld-linux.so.2"
Any ideas how to change get this command to work, or preferably to let me know what to change so the original command will work.
Many thanks
nathan
Ich bin ein Rattarsedschwein
|
|
|
|
|
286
   
Group: Forum Members
Last Login: Yesterday @ 19:32:58
Posts: 403,
Visits: 1,641
|
|
After checking the LFS mailing lists and after looking back at what I'd done so far, I realised I had made a little mistake early on. As I don't know enough about linux to fix what i'd done, and as I hadn't got that far in any case I figured it was easier to start again.
I'll keep in mind some advice from the LFS website. FB,BG - Follow Book, Book Good
nathan
Ich bin ein Rattarsedschwein
|
|
|
|
|
486
   
Group: Forum Members
Last Login: Today @ 15:56:32
Posts: 1,224,
Visits: 3,120
|
|
well the sed pipe was just a global replace to change the pathname from the specs file
dunno if that helps.
*************
*************
The sig between the asterisks is SO COOL that ONLY REALLY COOL people can even see it!
|
|
|
|
|
286
   
Group: Forum Members
Last Login: Yesterday @ 19:32:58
Posts: 403,
Visits: 1,641
|
|
Thanks. I am treating this as a learning exercise and have been slowly working out what some of the commands do. I think it would have correctly replaced the lines if it could've either found the file, or saved it. It turns out I had made a small mistake with the permissions on a directory earlier on in the process, then just su'd to root, to get round it, which stopped a few other files saving properly and it all ground to a halt.
nathan
Ich bin ein Rattarsedschwein
|
|
|
|
|
Pentium
   
Group: Moderators
Last Login: Today @ 22:15:56
Posts: 3,170,
Visits: 3,428
|
|
|
|
|
|
486
   
Group: Forum Members
Last Login: Today @ 15:56:32
Posts: 1,224,
Visits: 3,120
|
|
just shows how useful tools like grep and sed are.
*************
*************
The sig between the asterisks is SO COOL that ONLY REALLY COOL people can even see it!
|
|
|
|