-   Linux From Scratch (
-   -   LFS 3.3 - chapter 6 - glibc error (

fend88 04-27-2002 02:23 AM

LFS 3.3 - chapter 6 - glibc error
Error during installing glibc-2.2.5 as follow:
loading cache ./config_cache
checking host system type : i686-pc-linux-gnu
checking sysdep dir .........
checking for a bsd comp inst .... /bin/install -c
checking ln - s ... yes
check pwd ... /bin/pwd
check system type i686.....
check gcc .... no
check cc ..... no
check gnumake ..... no
check gmake ..... no
check make .... no
configure: error:
*** These critical programs are missing or too old: gcc make
*** Check the INSTALL file for required versions.
I have no name!:/usr/src/glibc-build#

Please help me to rectify these problems ....
Thanks in advance.

BTW: I'm installing from Mandrake 8.0. $LFS is in hdb1.

lfslinux 04-27-2002 06:21 AM

Check if those missing files /usr/bin/gcc and /usr/bin/make exist. If so they are most likely not statically linked.

Exit chroot, reinstall those packages and try again.

fend88 04-27-2002 09:12 PM

gcc and make are inside $LFS/usr/bin.
Now I'm reinstalling gcc and make packages.
I'll post the result as soon as the installation completed.

fend88 04-27-2002 09:43 PM

The same problems occur after re-install gcc & make.

I think I must be miss something, gcc & make from / can run but in /usr/bin cannot.

configure: error:
*** These critical programs are missing or too old:gcc make
*** Check the INSTALL file for required versions.
I have no name!:/usr/src/glibc-build#gcc
bash: gcc: command not found
I have no name!:/usr/src/glibc-build#cd /usr/bin
I have no name!:/usr/bin#gcc
bash: gcc: command not found
I have no name!:/usr/bin#ls
addr2line cksum factor gzexe make pathchk sdiff texindex yes
ar cmp fmt hostid makeinfo pgawk seq tr zcat
as comm fold i686-pc-linux-gnu-gcc md5sum pinky size tsort zcmp
awk cpp g++ id nice pr sort tty zdiff
bzcmp csplit gasp igawk nl printenv split unexpand zforce
bzdiff cut gawk info nm printf strings uniq zgrep
bzegrep diff gawk-3.1.0 infokey nohup protoize strip unprotoize zmore
bzfgrep diff3 gcc install objcopy ptx sum uptime znew
bzgrep dirname gcov install-info objdump pwcat tac users
c++ env gprof join od ranlib tail wc
c++filt expand grcat ld paste readelf tee who
cc expr groups logname patch rmt texi2dvi whoami
I have no name!:/usr/bin#cd /
I have no name!:/#gcc
gcc: No input files
I have no name!:/#make
make: *** No targets specified and no makefile found. Stop.
I have no name!:/#cd /usr/bin
I have no name!:/usr/bin#make
bash: usr/bin/make: No such file or directory

lfslinux 04-28-2002 11:01 AM

It looks like your $PATH isn't set properly. I'm guessing it contains "usr/bin" instead of "/usr/bin" that's why when you run from the / directory usr/bin/gcc exists, but when you run from any other directory there's no usr/bin directory under the directory you are at.

So, check $LFS/root/.bash_profile and fix it if that's the case.

fend88 04-28-2002 11:06 PM

Thanks a lot.
It's true that I type usr/bin instead of /usr/bin in the $LFS/root/.bash_profile. :D
Now I'm working on glibc.

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