Click to See Complete Forum and Search --> : Linux From Scratch, Anyone?


Wonock
11-19-2000, 03:03 AM
Has anyone been able to do an LFS (Linux From Scratch) installation? I've tried a few times and it never works! I tried under Red Hat, Mandrake, and Slackware. I do word for word what the instructions say but no luck!!

Wonock


------------------
Not everyone can be right
But everyone will decide!
-Face To Face

Tigger
11-19-2000, 03:27 AM
Where are you having problems?

At what point does it fail?

Wonock
11-19-2000, 04:14 PM
I get compiling errors ... like in bash and binutils and such. Exit 2 or Error 2 if I remember corectly. Some stop cause of no valid ld. I am practically copying and pasting the compile instructions.

Wonock

Wonock
11-20-2000, 02:20 AM
Any help or ideas would be great!!!

Strike
11-20-2000, 02:51 AM
Post exact error messages http://www.linuxnewbie.org/ubb/smile.gif

Face to face is a really good band, but I still think their best album is "Don't Turn Away". I like the songs "You've Got a Problen" and "Disconnected" (and I swear this was on a commercial somewhere, but can't remember what commercial)

vodka
11-20-2000, 06:24 AM
You should also post which part of the book you where doing when the problems started.
Oh, if you want, you can also go to irc.linuxfromscratch.org #lfs and get help. Maybe even encourage people to get off their arses with the ALFS project. (automated linux from scratch) :> Since you're at the stage where I bet you would love something like that. I've got a bunch of scripts that automate the process, but they are simple and work only for the current version, nothing like ALFS.

ph34r
11-20-2000, 09:52 AM
I did a LFS system with the 2.2 version of the book, and it all worked. There are 4 or 5 packages that won't compile statically properly, but there are/were fixed versions of those available from the LFS site.

Post exact errors, and we can help.

theNerd
11-20-2000, 10:45 AM
I myself am still stuck at the point of just unzipping the new kernel source bit and then everything just goes arseways after that.

Tigger
11-20-2000, 10:58 AM
I tried to download the bootdisk thing from the LFS website but it did not work. The _usrfs loop filesystem did not include bzip2 so I couldn't do anything with the compressed packages, let alone start compiling. What a waste of time.

Slack 7.1 should work nicely as a base for starting LFS. I have always had great success with Slackware for these kinds of things.

I am waiting till I put together one of my older pentium systems and then I will try it again.


Wonock-post the exact errors as someone before mentioned and we will see if we can get you through it.

Wonock
11-20-2000, 10:00 PM
Here is an error in compiling bash (the first thing to compile after the preperation in the book), again I am using the ./configure method and instructions straight from www.linuxfromscratch.org.: (http://www.linuxfromscratch.org.:)

<snip>

gcc -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -g -O2 -D_FILE_OFFSET_BITS=64 makepath.c
rm -f libsh.a
ar cr libsh.a clktck.o clock.o getcwd.o getenv.o oslib.o setlinebuf.o strcasecmp.o strerror.o strtod.o strtol.o strtoul.o vprint.o itos.o rename.o zread.o zwrite.o shtty.o inet_aton.o netopen.o strpbrk.o timeval.o makepath.o
test -n "ranlib" && ranlib libsh.a
make[1]: Leaving directory `/mnt/darkfire/usr/src/bash-2.04/lib/sh'
rm -f bash
gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -static -rdynamic -g -O2 -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o braces.o bracecomp.o bashhist.o bashline.o siglist.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o xmalloc.o -lbuiltins -lreadline -lhistory -lcurses -lglob -ltilde -lmalloc -lsh
collect2: ld returned 1 exit status

</snip>

Thanks a lot! :-). I agree, I think that is probably Face to Faces best but the last one they put out (Reactionary) has a few really good songs. Same with Ignorance is Bliss ... it's all Emod out and great :-P.

Wonock

Wonock
11-21-2000, 02:15 PM
Also, isn't there supose to be a new version of LFS book out on there site soon?

Wonock

------------------
Not everyone can be right
But everyone will decide!
-Face To Face

Strike
11-21-2000, 03:16 PM
Hmph, I remember running into a similar problem that I just couldn't figure out (search the forums, maybe there is a solution there, I forget). Sorry I can't help more (gotta go! http://www.linuxnewbie.org/ubb/biggrin.gif)

PLBlaze
11-22-2000, 12:11 AM
What version of bash are you compiling Wonock? Is it the static one? what Linux distribution you use?I remember that when i compiled bash on my slack box it was complaining about libcurses,see if you have it under /lib is should be libcurses.so.5.2 i belive.I fixed bash compile error by linking libcurses.so.5.2 to libcurses.so.4.2 if i remember.Of course this may not fix your problem.

Also take a look in /etc/ld.so.conf and make sure to have /lib, /usr/lib paths in ther and rerun ldconfig.It seems as ld is not liking one of the libs when compiling your bash.Hope this helps.