LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-14-2012, 05:29 AM   #1
mahaju
Member
 
Registered: Nov 2011
Posts: 39

Rep: Reputation: Disabled
Beginner in LFS stuck at a step


Hi

I am following LFS book ver 6.5
I am doing everything that is said in the book step by step
I have done it upto page 44 and now the next step is building Binutils (the first package)
It says to do
Quote:
mkdir -v ../binutils-build
cd ../binutils-build
Where exactly is this directory supposed to be built?
I typed in the exact same mkdir command and it says permission denied
I did su - lfs from root (according to a previous instruction in the book) and I am currently the user lfs

Last edited by mahaju; 06-14-2012 at 05:36 AM.
 
Old 06-14-2012, 07:36 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
Have you read chapter 5.3, the second Important note? Also have a look at the first note.

In short:
Code:
cd $LFS/sources
tar xf binutils-2.19.1.tar.bz2
cd binutils-2.19.1
<commands in chapter 5.4>
cd $LFS/sources
rm -rf binutils-2.19.1 binutils-build
 
Old 06-14-2012, 07:48 AM   #3
mahaju
Member
 
Registered: Nov 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
I have seen them
My problem is that the mkdir command in 5.4 is not working
I am currently the user lfs
I did su - lfs from root
and right now I am lfs
but the mkdir is not working
 
Old 06-14-2012, 08:19 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
Any error messages?

Assuming you are getting permission related error(s): Did you do these steps as root (chapter 3.1 last command):
Code:
chmod -v a+wt $LFS/sources
and (chapter 4.3, near the end):
Code:
chown -v lfs $LFS/tools
chown -v lfs $LFS/sources
 
Old 06-14-2012, 09:06 AM   #5
mahaju
Member
 
Registered: Nov 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Have you read chapter 5.3, the second Important note? Also have a look at the first note.

In short:
Code:
cd $LFS/sources
tar xf binutils-2.19.1.tar.bz2
cd binutils-2.19.1
<commands in chapter 5.4>
cd $LFS/sources
rm -rf binutils-2.19.1 binutils-build
My problem was that I misunderstood this note
This particular problem is solved for now
thank you very much for your help
 
Old 06-21-2012, 10:06 AM   #6
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
Would it be possible to mark this thread as solved? That way we can use this as a reference. That would be really appreciated. Thx ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
step by step guide for installing LFS 6.6 on kubuntu 9.10 smkh Linux From Scratch 6 04-07-2010 03:34 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
a beginner to lfs.how to begin? please help only4u_787 Linux From Scratch 1 09-20-2008 01:57 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
beginner trying LFS undershepherd Linux From Scratch 8 05-10-2003 09:00 AM

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

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