LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-23-2007, 09:27 AM   #1
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Rep: Reputation: 15
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)

 
Old 05-23-2007, 09:47 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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.
 
Old 05-23-2007, 09:47 AM   #3
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
Hello !

Did you correctly unpack the sources and enter the directory ?

Regards,
Biniou
 
Old 05-23-2007, 09:52 AM   #4
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
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
 
Old 05-23-2007, 10:02 AM   #5
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Original Poster
Rep: Reputation: 15
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!
 
Old 05-23-2007, 10:13 AM   #6
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Original Poster
Rep: Reputation: 15
i've just read the lfs hint druuna. It was prety informative thanx
 
Old 05-23-2007, 10:18 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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.
 
Old 05-23-2007, 10:31 AM   #8
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Original Poster
Rep: Reputation: 15
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
 
Old 05-23-2007, 10:33 AM   #9
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
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 !)
 
Old 05-23-2007, 10:40 AM   #10
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Original Poster
Rep: Reputation: 15
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
 
Old 05-24-2007, 11:12 AM   #11
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Original Poster
Rep: Reputation: 15
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?
 
Old 05-24-2007, 11:22 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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).
 
Old 05-24-2007, 12:46 PM   #13
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Original Poster
Rep: Reputation: 15
In chapter 3.1 i type:

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

Is there anything else i should do?
 
Old 05-24-2007, 12:56 PM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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).
 
Old 05-24-2007, 01:00 PM   #15
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Original Poster
Rep: Reputation: 15
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!)
 
  


Reply

Tags
binutils, installation


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
LFS 5.1.1 - Can't install binutils-2.14 ginobili_20 Linux From Scratch 2 08-30-2004 04:01 PM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 05:07 AM
cant install binutils buffed317 Linux From Scratch 5 08-18-2004 05:54 PM
LFS binutils install??? znif Linux From Scratch 2 06-25-2004 07:24 PM
Error while install binutils KptnKrill Linux From Scratch 1 10-02-2003 10:23 AM


All times are GMT -5. The time now is 09:42 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration