On Fri, 22 Oct 2010 00:35:18 -0700 Nolan <4030...@gmail.com> wrote: > > I have tried everything I could think of to get this command to > work... > > Code: > SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs > $LFS_TGT-gcc -dumpspecs | sed \ > > -e 's@/lib\(64\)\?/ld@/tools&@g' \ > -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}"> $SPECS > echo "New specs file is: $SPECS" > unset SPECS > /Code > > One thing was taking a section at a time, by copy and paste. > > i.e. SPECS=`dirname $($LFS_TGT-gcc > -print-libgcc-file-name)`/specs$LFS_TGT-gcc -dumpspecs > > ^ > Tried as is and with a space and also with a / No Joy. > > Below is the results after I clicked paste. > It would execute immediately after the paste. > The results are a copy and paste form the terminal. > ************** > no...@retired:~$ SPECS=`dirname $($LFS_TGT-gcc > -print-libgcc-file-name)`/specs > No command '-gcc' found, did you mean:
It's here. If $LFS_TGT is null, then this will appear. So I suppose the $LFS_TGT isn't working in this instruction. > Command 'cgcc' from package 'sparse' (multiverse) > Command 'gcc' from package 'gcc' (main) > Command 'gcc' from package 'pentium-builder' (universe) > -gcc: command not found > dirname: missing operand > Try `dirname --help' for more information. > no...@retired:~$ $LFS_TGT-gcc -dumpspecs | sed \ > > -e 's@/lib\(64\)\?/ld@/tools&@g' \ > > -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS > bash: /specs: Permission denied > No command '-gcc' found, did you mean: > Command 'cgcc' from package 'sparse' (multiverse) > Command 'gcc' from package 'gcc' (main) > Command 'gcc' from package 'pentium-builder' (universe) > -gcc: command not found > no...@retired:~$ echo "New specs file is: $SPECS" > New specs file is: /specs > no...@retired:~$ unset SPECS > ************** > What the key to getting this to work? If I need to do more reading, > please point me in the direction. > And I shall read. :) > Thanks in Advance > Nolan > > -- littlebat -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page