On Fri, 22 Oct 2010 10:51:48 +0100
Andrew Benton <b3n...@gmail.com> wrote:

> On Fri, 22 Oct 2010 01:22:34 -0700
> Nolan <4030...@gmail.com> wrote:
> > This is now the error after I changed to user  'lfs'.
> > 
> > AS: lfs
> > 
> > l...@retired:~$ whoami
> > lfs
> > l...@retired:~$ cd /mnt/lfs/sources
> > l...@retired:/mnt/lfs/sources$ SPECS=`dirname $($LFS_TGT-gcc 
> > -print-libgcc-file-name)`/specs
> > l...@retired:/mnt/lfs/sources$ $LFS_TGT-gcc -dumpspecs | sed \
> >  >   -e 's@/lib\(64\)\?/ld@/tools&@g' \
> >  >   -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
> > bash:[SUDO] /tools/lib/gcc/i686-lfs-linux-gnu/4.5.1/specs:
> > Permission denied <<<=====
> >        ^^^^^
> > l...@retired:/mnt/lfs/sources$ echo "New specs file is: $SPECS"
> > New specs file is: /tools/lib/gcc/i686-lfs-linux-gnu/4.5.1/specs
> > l...@retired:/mnt/lfs/sources$ unset SPECS
> > 
> > Do I need to include a "sudo" in the command?
> > 
> No, never. If you followed the book /tools would be owned (and hence
> writable) by the user lfs. I would suggest that you start again.
> 
> Andy

Yes, because you have made a very essential mistake, you are working in
a wrong environment without $LFS_TGT working, I think there are lots of
problems in your work from the beginning. So, I think the simplest way
is to start again, follow the instructions exactly. Or, maybe you will
vast much time and still end up with have to start it from beginning :-(

I am using Ubuntu 10.04 in vmware machine as a host, there isn't any
problem until the end of Chapter 7 (LFS6.6) except the one relating the
bash start file setup, see: the issue of environment value $PS1 set
under Ubuntu 10.04
http://linuxfromscratch.org/pipermail/lfs-support/2010-June/038825.html
But, this issue should can't make you building a wrong LFS even without
to resolve it.

 BTW, have you found the reason why your $LFS_TGT
environment variable is missing? I think this is the key of your
problem.

--
littlebat
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to