LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Binutils just DENY to install!!! (https://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-just-deny-to-install-556069/)

help_a_newbie 05-23-2007 08:27 AM

Binutils just DENY to install!!!
 
Hi, all. I'm a new user here. I just have a problem when trying to install Binutils that's gonna drive me crazy!

Well, first things first. I recently downloaded the Linux from scratch book (version 6.2) and the lfs live cd from the official linux from scratch site. I started building my lfs, and everything seemed to go right.
I'm now at the chapter 5.3 (Binutils-2.16.1 - Pass 1). When I type the command "mkdir -v ../binutils-build" it says that it can't create the directory folder, because the access denied. Anyway, i was able solve this problem and go on. After I typed "cd ../binutils-build" it was time to prepare them for compilation (as i've learned the time command was not necessary). When i typed this command: "../binutils-2.16.1/configure --prefix=/tools --disable-nls" it said that "No such file or directory existed". What shall i do?

I would really appreciate your help, as i'm a newbie. I hope I'll learn a lot while building the lfs!

P.S. Do you know if I can shut down my computer even if i haven't finished the whole building? If yes, how (without loosing all of the progress i've made).

Thank you and sorry for my bad english (maybe)

:newbie:

druuna 05-23-2007 08:47 AM

Hi,
Quote:

....(Binutils-2.16.1 - Pass 1). When I type the command "mkdir -v ../binutils-build" it says that it can't create the directory folder, because the access denied. Anyway, i was able solve this problem and go on.
You don't mention this but you are probably executing the command from the wrong directory. You should first unpack/tar the package and enter the newly created directory (as stated in chapter 5.1).

In the case of binutils, you should be in $LFS/sources/binutils-2.16.1 and enter the mkdir -v ..... command from there.

You also don't tell how you solved the problem, all the other problems are probably related to the above.

Quote:

After I typed "cd ../binutils-build" it was time to prepare them for compilation (as i've learned the time command was not necessary). When i typed this command: "../binutils-2.16.1/configure --prefix=/tools --disable-nls" it said that "No such file or directory existed". What shall i do?
Without knowing how you solved the first problem, and more importent: Was it done correctly, it's impossible to say what went wrong.

Quote:

P.S. Do you know if I can shut down my computer even if i haven't finished the whole building? If yes, how (without loosing all of the progress i've made).
There's a LFS hint about that subject. It's a bit outdated, but with a little common sense you can adjust it.

Hope this helps.

biniou 05-23-2007 08:47 AM

Hello !

Did you correctly unpack the sources and enter the directory ?

Regards,
Biniou

biniou 05-23-2007 08:52 AM

For your question concerning the shutdown of the computer during build :

You can safely leave during chapter 5 as far as when you return you set $LFS, mount the partition and log as lfs user.

In chapter 6, you can leave, but you have to set $LFS, mount the partition, populate /dev and mount /proc (etc) filesystems and chroot the correct way (all these steps are desribed in the book).

After chapter 6, you can leave and come back with the same, but with an adjusted chroot command (everything in the book again)

So, don't worry, you won't loose anything if you follow the book correctly ;)

help_a_newbie 05-23-2007 09:02 AM

thank you for your replies!
Well, druuna, it may seem funny but i don't know how i solved the problem! The sure thing is that I hadn't done what you just told me. So, after sourcing the bash (source ~/.bash_profile) I type unpack/tar? and then how do i enter the $LFS/sources/binutils-2.16.1 dir? I would really appreciate your help and sorry for those noob questions.

And biniou, thank you for solving the "shut down" issue but i really don't know how to unpack, I just stop in the command mentioned above and i don't know what to type next!

help_a_newbie 05-23-2007 09:13 AM

i've just read the lfs hint druuna. It was prety informative thanx

druuna 05-23-2007 09:18 AM

Hi,

Quote:

So, after sourcing the bash (source ~/.bash_profile) I type unpack/tar? and then how do i enter the $LFS/sources/binutils-2.16.1 dir?
After becoming user LFS and sourcing .bash_profile:

cd $LFS/sources
tar jxf binutils-2.16.1.tar.bz2
cd binutils-2.16.1
mkdir -v ../binutils-build
cd ../binutils-build
.
.
.


You should unpack the package and enter the created directory (it's in one of the 'important' boxes in chapter 5.1).

Quote:

I would really appreciate your help and sorry for those noob questions.
BTW: A certain level of experience is expected when building a LFS system. If you are really new at this, expect to do a lot of reading and trial/error. The upside is learning a lot during the process.

help_a_newbie 05-23-2007 09:31 AM

Thanx druuna! You are really helping me. I think that i have to read alot too, but i'm planning to do it in summer, now i have to study for school exams!

Anyway, I'll try it. and one last question, do i have to repeat this command for every package I install? (gcc, glibc, etc)

thanx

biniou 05-23-2007 09:33 AM

Corporate summary:

before issuing the commands for a package:
cd $LFS/sources
tar xf package.tar.bz2 (or tar xzf package.tar.gz)
cd package
(of course, you'll have to replace "package" by the actual name of the package)
(this will extract the package and place you in the directory)

After the commands for the package:
cd ..
rm -rf package
(this will erase the source/build directory as recommended)

Please, be patient enough to read completely the book (yes, for A to Z ... And yes, it takes time !)

help_a_newbie 05-23-2007 09:40 AM

I know, I've read once the chapters 1 to 5. I understood that i had to replace the package. And thank you for the command that erases the packages after the installation, sth was mentioned it the book but i couldnt understand, thanx for makin it clear for me, and for your (really) quick posts! if i have any other problems i'll post my questions, u gyus help me alot!

thanx again and again

help_a_newbie 05-24-2007 10:12 AM

hi, it's me again.
Well, druuna, i followed your advice and ran these commands. but still i get a problem from the tar programm. here's what i get

"tar: binutils-2.16.1.tar.bz2: cannot open: no such file or directory"
and a number of other problems linked to this. I was doing everything right, sourced the bash profile, typed your commands but... i guess i'm sooooo unlucky :(.

Anyway, if you could help me solve this one too, i'd really appreciate it! Why linux has to be so hard?

druuna 05-24-2007 10:22 AM

Hi,

The error states that the binutils package isn't there.

Where are your source packages located (binutils-2.16.1.tar.bz2 and all other packages)? They should reside in $LFS/sources (as stated in chap. 3.1).

help_a_newbie 05-24-2007 11:46 AM

In chapter 3.1 i type:

mkdir -v $LFS/sources
chmod -v a+wt $LFS/sources

Is there anything else i should do?

druuna 05-24-2007 11:56 AM

Hi,

Read more carefully, this from chap 3.1:
Quote:

Downloaded packages and patches will need to be stored somewhere that is conveniently available throughout the entire build. A working directory is also required to unpack the sources and build them. $LFS/sources can be used both as the place to store the tarballs and patches and as a working directory. By using this directory, the required elements will be located on the LFS partition and will be available during all stages of the building process.
So I gather that you did not copy the packages and patches to $LFS/sources (yet).

help_a_newbie 05-24-2007 12:00 PM

No, coz i dont know how to. This book is not so good written for newbies. What's the command i have to give to copy all this files? (Oh, god! I don't know what to do! If i start getting on your nerves plz tell me, I know i do alot of questions!)


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