LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 12-22-2001, 09:28 PM   #1
cbates55
LQ Newbie
 
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Rep: Reputation: 15
Question $LFS Error


I got the following error when I was do the static install of the kernel in Linux From Scratch($LFS).

rm -f /mnt/lfs/usr/src/linux/scripts/mkdep-docbook
rm -rf DBTOHTML_OUTPUT*
make[1]: Leaving directory `/mnt/lfs/usr/src/linux/Documentation/DocBook'
bash: yes: command not found
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
/bin/sh scripts/Configure arch/i386/config.in
#
# Using defaults found in arch/i386/defconfig
#
*
* Code maturity level options
*
Prompt for development and/or incomplete code/drivers (CONFIG_EXPERIMENTAL) [N/y/?]
make: *** [config] Error 1 


Can any of you help me with this problem. I did notice that it said: 'bash: yes: command not found', could this be the problem and if it is how can I fix this problem.
 
Old 12-23-2001, 05:13 AM   #2
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
yes is a damn clever idea. a minute program that says yes to stdout. you'll need to compile yes in order to get past that.
 
Old 12-23-2001, 07:47 PM   #3
cbates55
LQ Newbie
 
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Original Poster
Rep: Reputation: 15


bluecadet replied:
you'll need to compile yes in order to get past that.


So where can I get it to compile it. HELP
 
Old 12-23-2001, 08:18 PM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Bummer, I believe that the "yes" command is found in either the fileutils package or diffutils. I can't remember, if anything, all you have to do is go through the book and each packages file contents are listed and you can find which one it's in from there.
 
Old 12-23-2001, 08:31 PM   #5
cbates55
LQ Newbie
 
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Original Poster
Rep: Reputation: 15
I found that it is in the Sh-util package.

Do you think I could use the source from Linux from scratch to compile it for my host system? If I can how can I make sure that I don't break what is already there?
 
Old 12-23-2001, 08:38 PM   #6
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
What I would do is remove the old sh-utils source directory: example rm -rf sh-utils-2.0 and then unzip the LFS sh-utils package again and do a fresh install of the utils and I think you will be good after that. Then go back into the chrooted environment and try glibc again.
 
Old 12-24-2001, 01:46 AM   #7
cbates55
LQ Newbie
 
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for the help with the Sh-utils problem, got past that problem, but I now have a new problem. Here it is as follows:

ibc-build/rt:/usr/src/sources/g/glibc-build/resolv:/usr/src/sources/g/glibc-build/crypt:/usr/src/sources/g/glibc-build/linuxthreads /usr/src/sources/g/glibc-build/sunrpc/rpcgen -Y `gcc -print-file-name=cpp | sed 's|/cpp$||'` -c rpcsvc/bootparam_prot.x -o /usr/src/sources/g/glibc-build/sunrpc/xbootparam_prot.T
cannot find C preprocessor: cpp/cpp
/usr/src/sources/g/glibc-build/sunrpc/rpcgen: C preprocessor failed with exit code 1
make[2]: *** [/usr/src/sources/g/glibc-build/sunrpc/xbootparam_prot.stmp] Error 1
make[2]: Leaving directory `/usr/src/sources/g/glibc-2.2.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/usr/src/sources/g/glibc-2.2.4'
make: *** [all] Error 2
[I have no name!@Draco: glibc-build]#


This is the output I get when I went to install Glibc-2.2.4 on LFS. This time I have no idea what went wrong. The only clue I have is it cann't find C preprocessor: cpp/cpp. HELP!!!
 
Old 12-24-2001, 11:28 AM   #8
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Well, no problems, there's always a fix! A hammer is last resort though, so put that down!
cpp is part of the gcc-2.95.3 package and somehow didn't get installed or the path is wrong. Look for it on your system, and if you don't find it in /usr/bin then you'll need to reinstall gcc-2.95.3 and the patch.
 
Old 12-26-2001, 06:55 PM   #9
cbates55
LQ Newbie
 
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Original Poster
Rep: Reputation: 15
What if I find it

Look for it on your system, and if you don't find it in /usr/bin

in /usr/bin and my path is setup to include the /usr/bin? At this point I'm stumped at what to do.

Please help me!!!
 
Old 12-26-2001, 07:16 PM   #10
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Hmm, I can't say right off hand why it's not finding cpp if it's in your path. You could try a fresh install of the package since it'll have to be installed anyhow. Just wipe out your gcc-2.95.3 source dir and re-do it so to speak.
 
Old 12-29-2001, 10:24 PM   #11
cbates55
LQ Newbie
 
Registered: Dec 2001
Location: Howell, Michigan
Distribution: Peanut Linux & $LFS (Draco-Linux)
Posts: 24

Original Poster
Rep: Reputation: 15
Your going to laugh at this. You know how they tell you in the LFS book to create a directory under /usr/src called 'sources' and then place directories under it (a-z) with the source code.

Well I did that and I was running the installs from those directories. So when I went to install glibc it failed on the looking for the cpp program. After beatting my head against the monitor I put the glibc source code directory right under the /usr/src directories and it worked after I cleared out some room for it to compile.
 
  


Reply



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
Coreutils-5.2.1 error LFS 5.1 michaelbhahn Linux From Scratch 8 09-01-2007 01:36 PM
lfs-6.1 Patch-2.5.4 //ERROR or No ERROR?? ukyo Linux From Scratch 1 08-25-2005 07:34 AM
LFS 6.0 error: procps-3.2.3 peristaltic Linux From Scratch 0 03-15-2005 12:44 AM
Boot Error in LFS saurav_gohain Linux From Scratch 5 07-07-2003 01:19 AM
Lfs ... Unforseen Error? adam_boz Linux - Networking 1 07-26-2002 01:40 AM

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

All times are GMT -5. The time now is 09:52 PM.

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