LinuxQuestions.org
Visit Jeremy's Blog.
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 08-30-2004, 03:59 PM   #1
ahmed_alzahrani
LQ Newbie
 
Registered: Aug 2004
Location: saudi arabia
Distribution: mandrake
Posts: 28

Rep: Reputation: 15
newbie facing some ambiguities


hi there

concerning the folders hierarchy, when the book says to build some temporary folders (ie. mkdir glibc-build) where exactly am i going to make those folders? under what folder on which partition?

on chapter 5 when i execute
ln -s gcc $LFS/tools/bin/cc. Am I referring to the host gcc or to the newly made gcc (the one in /tools/bin/ )?

because when I started to ./configure Glibc it said that i need to build it in another directory. (even though i did extract it in /mnt/lfs/glibc-build)

hellllllp
 
Old 08-30-2004, 04:15 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Re: newbie facing some ambiguities

Quote:
Originally posted by ahmed_alzahrani
hi there

concerning the folders hierarchy, when the book says to build some temporary folders (ie. mkdir glibc-build) where exactly am i going to make those folders? under what folder on which partition?
in your /mnt/lfs directory.....
everything you do is going to be in /mnt/lfs
Quote:
on chapter 5 when i execute
ln -s gcc $LFS/tools/bin/cc. Am I referring to the host gcc or to the newly made gcc (the one in /tools/bin/ )?
the newly made one in /tools/bin
Quote:
because when I started to ./configure Glibc it said that i need to build it in another directory. (even though i did extract it in /mnt/lfs/glibc-build)
you extract the tarball to it's own directory and make a seperate one to build in.............so you need to move the glibc directory out of the glibc-build

you will extract all tarballs to their own directories...........gcc and glibc are the only packages that will build outside of their source.......IE
make seperate gcc-build and glibc-build.

Last edited by 320mb; 08-30-2004 at 04:21 PM.
 
Old 08-30-2004, 04:34 PM   #3
ahmed_alzahrani
LQ Newbie
 
Registered: Aug 2004
Location: saudi arabia
Distribution: mandrake
Posts: 28

Original Poster
Rep: Reputation: 15
slowly

i'm sorry but regarding the last two line

Quote:
you extract the tarball to it's own directory
tar -xjvf /mnt/lfs/sources/glibc-2.3.3-lfs-5.1.tar.bz2
or is it
tar -xjvf /mnt/lfs/glibc-build/glibc-2.3.3-lfs-5.1.tar.bz2 ?



Quote:
and make a seperate one to build in
you mean
mkdir /mnt/lfs/somedire/
cp -r /mnt/lfs/glibc-build/* /mnt/lfs/somedire/
cd /mnt/lfs/somedire/
./configure glibc


sorry for being a
 
Old 08-31-2004, 06:15 AM   #4
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Check out this thread. Another user was asking a similar question regarding the ../binutils-build directory (that's one more that needs it, 320mb ;-)

Enjoy!
--- Cerbere
 
Old 08-31-2004, 04:57 PM   #5
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
It was said at the begining of the book.
For example, your working folder is $LFS/sources. That's the folder where you untar all your tarballs needed to be installed.
When you untar some tarball you should move to the folder that's just been created (for example $LFS/sources/vim-xx). Then you begin to read the chapter concerning the package.

So, in the book it says "mkdir ../binutils-build".
You are supposed to be in $LFS/sources/binutils-xx.
Executing the "mkdir ../binutils-build" creates "binutils-build" folder under $LFS/sources.
 
Old 08-31-2004, 09:59 PM   #6
ahmed_alzahrani
LQ Newbie
 
Registered: Aug 2004
Location: saudi arabia
Distribution: mandrake
Posts: 28

Original Poster
Rep: Reputation: 15
thank you gentelmen
everything's going smoothly.
 
Old 11-26-2004, 11:43 AM   #7
saxophobe
Member
 
Registered: Feb 2003
Location: Dallas, TX
Distribution: CentOS 5.3
Posts: 131

Rep: Reputation: 15
Still don't understand

Hi all!

I am also a newbie with LFS and am having some knowledge gaps in my linux education.

The difficulties I am having are with the glibc-2.3.3 install:

First, I untarred in the /mnt/lfs/sources directory, then moved the glibc-2.3.3 directory to the newly created /mnt/lfs/gblic-build directory

Then, I cd'd into the glibc-build directory and applied the following command as the book states:

Code:
./configure --prefix=/tools \
    --disable-profile --enable-add-ons=linuxthreads \
    --with-binutils=/tools/bin --with-headers=/tools/include \
    --without-gd --without-cvs
When I do this, I get the following result:

Code:
bash:  ./configure: No such file or directory
When I try moving to the /mnt/lfs/glibc-build/glibc-2.3.3 directory, I get the following result"

Code:
configure: error: you must configure in a separate build directory
My question is this; I thought I was in the separate build directory? What am I doing wrong?

Thanks to all who answer the questions seriously, and don't bother answering if all you want to do is poke fun at a newbie. Believe me, I've heard them all.

sax
 
Old 11-26-2004, 05:23 PM   #8
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Re: Still don't understand

Quote:
Originally posted by saxophobe
Hi all!

I am also a newbie with LFS and am having some knowledge gaps in my linux education.

The difficulties I am having are with the glibc-2.3.3 install:

First, I untarred in the /mnt/lfs/sources directory, then moved the glibc-2.3.3 directory to the newly created /mnt/lfs/gblic-build directory

Well don't. Untar glibc in /mnt/lfs/sources, cd into /mnt/lfs/sources/glibc-2.3.3 and then execute mkdir ../glibc-build. That will create /mnt/lfs/sources/glibc-build. It's already been explained in this thread (respect Not now, John!) with quotes from the book. Untar in /mnt/lfs/sources, cd into what you've just untarred and then start to execute the commands on the page of the book that you're working on.
 
Old 11-26-2004, 06:18 PM   #9
saxophobe
Member
 
Registered: Feb 2003
Location: Dallas, TX
Distribution: CentOS 5.3
Posts: 131

Rep: Reputation: 15
Thanks for replying Andrew.

To comply with your instructions, i moved the glibc-build directory from the /mnt/lfs directory to /mnt/lfs/sources directory. Then I ran the./compile command from the /mnt/lfs/sources/glibc-2.3.3 directory and I still get the error that it must be run in it's own separate build directory. When I try it from /mnt/lfs/sources/glibc-build directory, I get the error that the file is not present. Is there something else that I may have overlooked?

Thanks again!

sax
 
Old 11-26-2004, 07:17 PM   #10
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If a path has one dot in front of the slash it means start in the current directory. If it has two dots it means start from the directory above the current directory. The instructions in the book say cd into glibc-build and then do
../glibc-2.3.3/configure. The two dots mean go up to the directory above and then in the folder glibc-2.3.3 run the script called configure.
 
Old 11-29-2004, 06:54 AM   #11
saxophobe
Member
 
Registered: Feb 2003
Location: Dallas, TX
Distribution: CentOS 5.3
Posts: 131

Rep: Reputation: 15
Ah! Here is one of those gaps that I was referring to in my first post on the subject.

Thanks Andrew! I will try this!
 
  


Reply


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
iam facing problem with asterisk Jimmy911 Fedora 0 03-07-2005 08:17 AM
facing problem while patching kernel bhupee Linux - Networking 0 06-24-2004 11:32 AM
facing problem with cronjobs manojthakkar Linux - General 7 12-09-2003 11:55 PM
thre's a problem facing me in the openoffice reaky Linux - Software 2 10-23-2003 05:49 AM
Newbie facing some problems safrout Slackware 4 05-17-2003 10:21 AM

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

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

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