LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-05-2007, 10:40 AM   #1
MP123
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Rep: Reputation: 0
LFS Chapter 5.7 bad substitution


Hello again.

I get a bad substitution message after I type this message

Code:
mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
What could have gone wrong there?
and how can i correct it?

thanks
 
Old 02-05-2007, 01:28 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
What shell are you using? Does /bin/sh point to /bin/bash? Your syntax looks OK - I copy pasted it into a terminal here and it worked...
 
Old 02-05-2007, 06:49 PM   #3
MP123
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Bash 3.00.16

The /bin/sh link target is /bin/bash
 
Old 02-06-2007, 01:14 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The only other things I can suggest are:
- Check what the output of gcc -dumpmachine is;
- If the output of gcc -dumpmachine is correct, check that the ld files exist. On my system I'd use this:
Code:
ls -l /tools/i486-slackware-linux/bin/ld /tools/i486-slackware-linux/bin/ld-old
- If the files exist, run the full command manually. On my system this is:
Code:
mv -v /tools/i486-slackware-linux/bin/ld /tools/i486-slackware-linux/bin/ld-old
If it still doesn't work can you copy/paste the output of all of the above please?
 
Old 02-07-2007, 02:08 AM   #5
MP123
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I decided to do everything from the start and that code where i was getting the bad substitution message ran fine.

Thanks for taking the time to help me. I really appreciate it.

Now i have a new concern.

http://www.linuxquestions.org/questi...d.php?t=526308

Last edited by MP123; 02-07-2007 at 08:51 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS Chapter 5 Questions kz_chopper Linux From Scratch 7 02-04-2007 08:53 AM
lfs chapter 6.12 deucedlt Linux From Scratch 1 08-13-2006 10:03 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration