LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Beginner in LFS stuck at a step (https://www.linuxquestions.org/questions/linux-from-scratch-13/beginner-in-lfs-stuck-at-a-step-4175411402/)

mahaju 06-14-2012 05:29 AM

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

druuna 06-14-2012 07:36 AM

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


mahaju 06-14-2012 07:48 AM

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

druuna 06-14-2012 08:19 AM

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


mahaju 06-14-2012 09:06 AM

Quote:

Originally Posted by druuna (Post 4703070)
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

Mordillo98 06-21-2012 10:06 AM

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 ...


All times are GMT -5. The time now is 06:01 AM.