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: |
Hi,
Quote:
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:
Quote:
Hope this helps. |
Hello !
Did you correctly unpack the sources and enter the directory ? Regards, Biniou |
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 ;) |
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! |
i've just read the lfs hint druuna. It was prety informative thanx
|
Hi,
Quote:
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:
|
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 |
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 !) |
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 |
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? |
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). |
In chapter 3.1 i type:
mkdir -v $LFS/sources chmod -v a+wt $LFS/sources Is there anything else i should do? |
Hi,
Read more carefully, this from chap 3.1: Quote:
|
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. |