LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-10-2006, 02:12 PM   #16
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by druuna
Hi,

mkdir -v ../binutils-build
When I type that in I get "Cannot create directory '../binutils-build': Permission denied

That's where I got stuck at one point
It's a bit confusing that part about where to make the directory.
The book says " The binutils documentation recomends building binutils outside of the source directory in a dedicated build directory"
So I made a directory outside of the sources directory in the
root directory then copied the tar file to that directory
and decompressed it and built it in that directory

You are saying that I should decompress it in the $LFS/sources
and issue the mkdir command from there ?

Why am I getting Permission denied ?
I can do it as root but not as lfs
 
Old 09-10-2006, 02:30 PM   #17
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
Hi,

All the chapters concerning installation assume that you have already unzipped/packed the archive and cd-ed to that directory. I.e:

cd $LFS/sources - this is where all the archives can be found.
tar jxf <some.package>.tar.bz2 - unzip/unpack package.
cd <some.package> - cd to package directory

Again: The book assumes that you have done the above already.

For most of the chapters all is done from here, but for some (binutils being one of those) it is needed to create a building dir (the source directory they talk about is the directory you are in at the moment). You do that as follows:

mkdir ../<some.package>-build - create build directory for package.
cd ../<some.package>-build - goto build directory.

Quote:
You are saying that I should decompress it in the $LFS/sources
Correct.

Quote:
and issue the mkdir command from there ?
No, you need to enter the package directory first.

Quote:
Why am I getting Permission denied ?
I can do it as root but not as lfs
You are probably outside the $LFS environment and maybe on a cd. But I cannot tell you for sure, one of the reasons being that you refuse to tell what you use as base to build LFS on.
 
Old 09-10-2006, 02:39 PM   #18
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna
Hi,

mkdir -v ../binutils-build
When I type that in I get "Cannot create directory '../binutils-build': Permission denied

That's where I got stuck at one point
It's a bit confusing that part about where to make the directory.
The book says " The binutils documentation recomends building binutils outside of the source directory in a dedicated build directory"
So I made a directory outside of the sources directory in the
root directory then copied the tar file to that directory
and decompressed it and built it in that directory

You are saying that I should decompress it in the $LFS/sources
and issue the mkdir command from there ?

Why am I getting Permission denied ?
I can do it as root but not as lfs
 
Old 09-10-2006, 02:46 PM   #19
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
Hi,

??????

Your last 2 threads (16 / 18) are the same
 
Old 09-10-2006, 03:00 PM   #20
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
Sorry about the second post I didn't realize that there is a second page now
and I thought I forgot to post the last message.

I must have skipped over the part where I am supposed to cd into the package
Wouldn't it be the same if I am still in the sources directory and issue a
mkdir <dirname? rather than cd into the package than isuue a mkdir ../dirname
then cd into the dirname ?

I can make the directory now that I know where to make it from

About the base I am not sure what you mean.
I don't have a base I am building it from scratch.
Do I need a base ?
 
Old 09-10-2006, 03:14 PM   #21
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
Quote:
Originally Posted by status1
I must have skipped over the part where I am supposed to cd into the package
That information is not in the book.

Quote:
Wouldn't it be the same if I am still in the sources directory and issue a
mkdir <dirname? rather than cd into the package than isuue a mkdir ../dirname
then cd into the dirname ?
Yes, it would. But the book always assumes that you are in the directory of the package you just untarred.

Quote:
About the base I am not sure what you mean.
I don't have a base I am building it from scratch.
Do I need a base ?
You need linux (base / host system) to build LFS. Are you using the LFS liveCD?
 
Old 09-10-2006, 05:01 PM   #22
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,

Well that seems to have done it.
I was able to compile both binutils and gcc-3.4.1 without any Out of memory errors or slowing down.
I guess that's what happens when you compile in the wrong directory
Something for me to remember the next time this happens

If by lfs Live cd you mean the cd that came with the book then yes that's what I am using
I hope I don't need anything else

I want to thank you for your time and patience with me
Now I hope I can do the rest of it without any more problems
 
Old 09-10-2006, 05:21 PM   #23
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
Hi,

Quote:
If by lfs Live cd you mean the cd that came with the book then yes that's what I am using
I hope I don't need anything else
That's what I meant. And that is indeed all you need to build LFS.

Quote:
I want to thank you for your time and patience with me
 
  


Reply

Tags
lfs



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.4. GCC-3.4.3 - Pass 1 - Failed cruiseoveride Linux From Scratch 7 06-07-2007 10:34 PM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
GCC Second pass fails thelonewolf Linux From Scratch 1 08-06-2005 11:07 AM
GCC second pass Mystified Linux From Scratch 6 07-28-2005 09:21 PM
GCC pass 1 error mugwump84 Linux From Scratch 2 05-10-2005 05:21 PM

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

All times are GMT -5. The time now is 04:29 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
Open Source Consulting | Domain Registration