On Fri, 22 Oct 2010 01:22:34 -0700 Nolan <[email protected]> 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 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
