On 10/22/2010 12:54 AM, littlebat wrote:
On Fri, 22 Oct 2010 00:35:18 -0700
Nolan<[email protected]> wrote:
I have tried everything I could think of to get this command to
work...
It seems $LFS_TGT is missing in environment.
--
littlebat
Thanks littlebat
When I read about the missing environment, a bell went off. I was in the
wrong invironment.
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?
cheers
Nolan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page