Chat
Micro Mart Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



LinuxFromScratch problem Expand / Collapse
Author
Message
Posted 14/08/2008 09:00:48


286

286286286286286

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
Post #304171
Posted 14/08/2008 12:41:18


286

286286286286286

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
Post #304217
Posted 14/08/2008 21:59:48


486

486486486486486

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!
Post #304325
Posted 14/08/2008 22:50:58


286

286286286286286

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
Post #304345
Posted 15/08/2008 22:35:51


Pentium

PentiumPentiumPentiumPentiumPentium

Group: Moderators
Last Login: Today @ 22:15:56
Posts: 3,170, Visits: 3,428
V-600

RESPECT!

Mad Malc


Post #304600
Posted 15/08/2008 22:37:21


486

486486486486486

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!
Post #304601
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: TheEditor, DJ, malc_wright, ricedg, admin, Sarah of the Dead

Permissions Expand / Collapse

All times are GMT, Time now is 10:20pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 9 queries. Compression Disabled.