LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-07-2010, 11:36 AM   #1
Alex83
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
Problem Adjusting the Toolchain


Hi to all. I'm installing Linux from scratch using the LFS BOOK 6.7 and the the package LFS 6.7
I'm having a problem in Adjusting the Toolchain. When i type:
Code:
$LFS_TGT-gcc -dumpspecs | sed \
-e 's@/lib\(64\)\?/ld@/tools&@g' \
-e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
i get this message:

Code:
[lfs@alex-laptop tools]$ sudo $LFS_TGT-gcc -dumpspecs | sed -e 's@/lib\(64\)\?/ld@/tools&@g' -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
bash: /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.5.1/specs: Permission denied
How can i resolve?
 
Old 10-07-2010, 11:41 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

$ sudo $LFS_TGT-gcc -dumpspecs | sed -e 's@/lib\(64\)\?/ld@/tools&@g' -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS

Sudo?

Where in the book does it say you have to use sudo? The whole LFS book is done by 2 users, without ever using sudo. These users are lfs for chapter 5 and root (from within a chrooted environment) for chapter 6.

Hope this helps.
 
Old 10-07-2010, 11:46 AM   #3
Alex83
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Without SUDO i have the same problem.
 
Old 10-07-2010, 11:57 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Then you forgot one or more steps leading up to this error. If you have to change any of the commands that are in the book to make things work then something is wrong and you should fix the problem before continuing.

Without knowing what you did and didn't do, I would suggest revisiting all the previous chapters to find out which mistake was made.

An educated guess would be the chown commands in 4.3. Adding the LFS User. If that is the case, you need to start over from 4.3 and remove all you already did from chapter 5.
 
Old 10-07-2010, 12:01 PM   #5
Alex83
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks to all. I did the same things done in the book but i can't access it too
 
  


Reply



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- Adjusting the Toolchain problem LinuxNewman Linux From Scratch 27 06-09-2009 02:04 AM
LFS - Adjusting the toolchain problem (book 6.4) charlie_lab Linux From Scratch 4 05-26-2009 04:20 AM
Problem with Adjusting ToolChain.... sed: can't read >: No such file or directory lfs_rocks Linux From Scratch 4 03-08-2009 10:30 AM
5.7 Adjusting the Toolchain Problem g3neration Linux From Scratch 2 09-08-2007 10:41 AM
Adjusting toolchain problem (in temport system) ChrisScott Linux From Scratch 6 01-21-2007 09:26 AM

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

All times are GMT -5. The time now is 06:52 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