LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-25-2003, 07:34 PM   #1
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Rep: Reputation: 30
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1


Compiling my own o-system is an exciting project and I think everything has gone OK so far except this one section on installing Glibc-2.3.1. This is all in the latest Debian Woody and with LFS paperback and its CD.

I had some accidents, I forgot to install the glibc-linuxthreads the first time I tried to configure the Makefile. I went back and did that, but after running all the 'make' commands I started seeing departures from what the book told me to expect:

First when I ran

Code:
exec /static/bin/bash --login
I found that my "I have no name" prompt did not change as it said I should expect.

In the Configuring Glibc section 6.14.3, I am finding that the tzselect command is not recognized in the directory I am supposed to be in there in that part; which I assume to be /glibc-build. I found it in another directory there, /timezone, but when I run the command there it does not go. It gives an error to the effect:

Code:
/usr/share/zoneinfo/iso3166.tab ... not found
I tried going back and running the localedef command, but despite finding the actual command in another directory and running it there, I get a 'no such file or directory' error. It's as if it doesn't exist.

What is going on? Should I ignore these errors? This is mostly a test install. Did I forget something?

Any and all tips and clues would be appreciated.

Last edited by SparceMatrix; 05-25-2003 at 07:35 PM.
 
Old 05-25-2003, 08:58 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
it doesn't matter what directory you are in when you run tzselect because it' gets installed in /usr/bin.

But, if tzselect is missing, and /usr/share/zoneinfo/iso3166.tab is missing too, it most likely means (a 99.99% chance) that when you ran this command:

echo "cross-compiling = no" > configparms

you didn't run it, or you made a typo. This is supposed to be run immediately after the configure script is done.

If you don't run that command, timezone files will be installed and the tzselect program won't work either and there might be many other Glibc related problems.

So, remove glibc-build and try again.
 
Old 05-26-2003, 01:31 AM   #3
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
No, there was no typo, and I am pretty sure that I ran that part in the right order. The command again is:

echo "cross-compiling = no" > configparms

And it is run in the glibc-build directory.

I tried 'rm -r ./glibc-build' as suggested and starting again from the bottom of page 88 with the 'mkdir' command. But, I am still having the same problem. Running the exec command makes no change and tzselect is not found. /usr/share/zoneinfo is there, but it is empty. I am the running the config and make commands as directed from the glibc-build directory.

Could this problem be derived from a permissions issue? I am running from root after chrooting, so I don't see how that could be it. Could it be some setting in my Debian Woody installation?

Any and all tips and clues would be appreciated.

Here's something ...

I have my source files in something other than /usr/src. There was nothing in the book saying where these files should be stored. I tried, vainly, to mount a drive with the source files to /mnt/src so I just copied them there. Could that be it? If this is it, placing the source files in that location might be a good hint because I did worry about where they went.
 
Old 05-26-2003, 10:27 AM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
It doesn't matter one bit where the source files are stored, nor where you unpack and build. As long as the configure paramaters are identical to the ones in the book all will be ok.

If your timezone files were not installed, it simply means that Glibc thought you have a cross-compiler. Indeed, if you look at Glibc's configure output it will tell you it detected a cross-compiler because Glibc wasn't installed yet (the GCC cross-compile test needs Glibc installed, so the test fails and configure assumes you then have a cross-compiler). Since this is the wrong thing to do, that configparms file is created to override that settings.

But, you said you already did all that, I can't think of anything else by this medium, I need to have a look at your glibc-build directory.

Please remove glibc-build and glibc-2.3.1 again, unpack the archives (don't forget linuxthreads) and configure it again. Run every command but not "make" and futher on (that means the echo cross-compiling=no is the last command you should run).

After that, create a .tar.bz2 file of the glibc-build directory and email it to me at gerard@linuxfromscratch.org

I'll check to make sure that all files have the proper contents.
 
Old 05-30-2003, 04:56 PM   #5
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
Problem solved.

The problem was that I did not unpack both packages for GCC in the first part of the installation. There is the "core" package and the "gcc" package and I was just unpacking the core package. Everything is functioning as it should in the Glibc part of the basic software part of the installation.
 
  


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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS 6.0 Bindutils section 6.13 error xushi Linux From Scratch 6 05-31-2005 11:31 AM
beyond lfs book not available??? or no such book?? tuxfood Linux From Scratch 2 04-17-2004 04:12 PM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM
glibc install on lfs bbenz3 Linux From Scratch 7 03-26-2002 01:01 PM

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

All times are GMT -5. The time now is 01:44 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