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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-04-2004, 01:50 AM
|
#1
|
Senior Member
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203
Rep:
|
glibc page 68
Hi i am tryingto understand where to compile this packet.
I read from the manual :... "you must cd into the glibc-2.3.2 directory and unpack Glibc-linuxthreads in that directory, not the direcoty you usually unpack all the sources"
So i must create a new directory with name glibc-2.3.2 at the same level with my sources directory?
f
|
|
|
05-05-2004, 06:32 AM
|
#2
|
Member
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129
Rep:
|
Hi,
No, what the manual says to you is you have to unpack first the glibc package and then copy the glibc-linuxthreads-2.3.2.tar.gz/bz2 in the glibc-2.3.2 directory and then you enter the directoyry, unpack the linuxthreads package, delete it (just for not wasting disk space having a package in two different locations) and you're done... you'll find yourself with the glibc 2.3.2 source tree plus linuxthreads... that's what the manual tries to say to you...
Hope this helps you
Julio
|
|
|
05-05-2004, 06:40 AM
|
#3
|
Member
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129
Rep:
|
Oops, forgotten something important...
If you want to compile Glibc, and if you're using, of course, the LFS book (regardless of the version) you must compile it in a separate directory from the sources...
So after you're done with the linuxthreads add-on procedure you find yourself in the directory level $LFS/sources/glibc-2.3.2 (that's /mnt/lfs/sources/glibc-2.3.2 or the name you choose to use, in my case was dolphin)
then, you must create a directory for compiling glibc (in my case, I just followed the book instructions), so you can do the following (command line prompt adjusted for my case):
dolphin@linuxbox[glibc-2.3.2] mkdir ../glibc-build
dolphin@linuxbox[glibc-2.3.2] cd ../glibc-build
and then you can continue with the book:
dolphin@linuxbox[glibc-build] ../glibc-2.3.2/configure --prefix=/tools ... and so on
Hope this helps
Julio
|
|
|
05-05-2004, 07:24 AM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203
Original Poster
Rep:
|
thx
dolphin@linuxbox[glibc-2.3.2] mkdir ../glibc-buil
dolphin@linuxbox[glibc-2.3.2] cd ../glibc-build
thx...do u think if it is a problem to create the libc-build directory at the ../../glibc
(The directory willbe created at the same level with sources dir...)
|
|
|
05-05-2004, 08:44 AM
|
#5
|
Member
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129
Rep:
|
Hi,
I'm not really sure, what the book suggest us is to build glibc outside the source tree, so as the book suggests I have my packages at $LFS/sources (in my case, $DOLPHIN/sources) and in that directory is where i create the glibc-build directory... just to follow the book instructions...
Julio
|
|
|
05-05-2004, 10:10 AM
|
#6
|
Senior Member
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203
Original Poster
Rep:
|
so
So everything must be compiled in the $LFS/sources dir?
|
|
|
05-05-2004, 11:05 AM
|
#7
|
Member
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129
Rep:
|
Well, as I followed the steps given by the book and following them takes you to the $LFS/sources directory to unpack the packages, i could say 'yes', but I suppose you could compile the packages in another directory, although I'm not sure and don't take what I've said right now as completely true. In my personal experience, it worked very well for me that way, that's making the directories in the $LFS/sources directory, so if i have to compile glibc i'll have a directory called glibc-build whose absolute location it's going to be $LFS/sources/glibc-build and so on...
That schema (that's the one suggested by the book) worked fine for me, with other kind of packages like bison, flex, perl, you don't have to make a separate directory, you just compile them in the directories they respectively create when you unpack them
Julio
|
|
|
All times are GMT -5. The time now is 11:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|