LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-07-2006, 05:13 PM   #1
flobobe
LQ Newbie
 
Registered: Dec 2006
Posts: 4

Rep: Reputation: 0
Problem in Chapter 5.11


Hello!
I had following problem in Chapter 5.11:
If i enter this command:
Code:
expect -c "spawn ls"
To see if i had enough PTYs
But I become the following error:
Code:
bash: expect: command not found
The Package Expect-5.43.0 is installed.

Please Help!!!

Last edited by flobobe; 12-07-2006 at 05:15 PM.
 
Old 12-07-2006, 06:20 PM   #2
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Hello again,

Quote:
The Package Expect-5.43.0 is installed.
Can you double check this, i.e. confirm that expect is in /tools/bin/
 
Old 12-07-2006, 06:25 PM   #3
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
The command "expect" is probably not in your path. If you issue the following command:

Code:
locate expect
do you see it in the output? Or you could issue:

Code:
find / -name expect 2>/dev/null
This should find it if it is on your system? Also check your path like this:

Code:
echo $PATH
to see if the directory expect is in, is in your path.
 
Old 01-15-2007, 12:48 AM   #4
suckerr70
Member
 
Registered: Apr 2005
Posts: 40

Rep: Reputation: 15
Hi, I'm having the same problem. echo $PATH gives me "/bin:/usr/bin:/sbin:/usr/sbin". Expect is in /tools/bin/ so is this a problem? If so how can I fix it? If I type "/tools/bin/expect" then it runs fine. I'm still learning linux and I'm actualy doing this LFS thing to learn how linux works. Thanks alot!

Last edited by suckerr70; 01-15-2007 at 12:49 AM.
 
Old 01-21-2007, 09:31 AM   #5
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
$path

Check your .bashrc file. It needs
Code:
cat > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
EOF
 
Old 01-27-2007, 08:36 AM   #6
redeye1
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
Hello dude
I am doing LFS for my project (My college minor project ) to build my own Distro. Now this is my 3rd time when I am going to build this and I had faced this problem in 5th Chapter.I am using Red Hat-9.


Code:
CPP='gcc -B/tools/bin/ -E -x c-
header'  /mnt/lfs/sources/glibc-build/elf/ld-linux.so.2 --
library-path /mnt/lfs/sources/glibc-
build:/mnt/lfs/sources/glibc-
build/math:/mnt/lfs/sources/glibc-
build/elf:/mnt/lfs/sources/glibc-
build/dlfcn:/mnt/lfs/sources/glibc-
build/nss:/mnt/lfs/sources/glibc-
build/nis:/mnt/lfs/sources/glibc-
build/rt:/mnt/lfs/sources/glibc-
build/resolv:/mnt/lfs/sources/glibc-
build/crypt:/mnt/lfs/sources/glibc-
build/nptl /mnt/lfs/sources/glibc-build/sunrpc/rpcgen -
Y ../scripts -c rpcsvc/bootparam_prot.x -
o /mnt/lfs/sources/glibc-build/sunrpc/xbootparam_prot.T

FATAL: kernel too old
make[2]: *** [/mnt/lfs/sources/glibc-build/sunrpc/xbootparam_prot.stmp] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-build/glibc-2.3.6/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-build/glibc-2.3.6'
make: *** [all] Error 2
root:/mnt/lfs/sources/glibc-build#

Last edited by redeye1; 01-30-2007 at 02:58 AM.
 
Old 01-28-2007, 03:18 PM   #7
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Quote:
FATAL: kernel too old
Hmm well this is a pretty big clue. I have never used Red Hat 9 but to my knowledge it is relatively old.
So I suggest you use a newer distro with a recent 2.6 kernel or even better the LFS live cd.
 
Old 01-28-2007, 10:05 PM   #8
redeye1
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
(Daws)
I have no option to use other Distro Becouse i have just a Redhat 9 no other Distro.
Tell me it is not prossible to do my LFS on Redhat 9 .
 
Old 01-28-2007, 10:12 PM   #9
redeye1
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
I have no LFS live cd and i am not able to download this so i have no option to use other Distro.I have just a Redhat 9 no other Distro.
Tell me can i build it on Redhat 9, and how can correct this problem......?
 
Old 01-29-2007, 02:40 AM   #10
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
What kernel does RH9 use? The LFS book says a 2.6.x kernel compiled with gcc-3.0 or greater.

If you don't have that then you will have to grab a newer kernel and compile yourself.
 
Old 01-29-2007, 05:16 AM   #11
Angeliqe
LQ Newbie
 
Registered: Jan 2007
Posts: 22

Rep: Reputation: 15
Redhat 9 looks like it has a 2.4 kernel. You can find out for sure by typing in
cat /proc/version
That will give you more details. If you do have a 2.4 version, I would suggest getting a LiveCD
to make your LFS. You could upgrade your kernel, but chances are you might have more
incompatibilities and end up doing more work.
 
Old 01-30-2007, 02:55 AM   #12
redeye1
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
Thanx budy
Know i am going to LFS LIVE CD becoz Redhat 9 kernel is very old (2.4.20-18) so i will be arrange a copy of
Live Cd.. When i have any problem with live Cd then i will be returne back..
Thanx
 
Old 02-03-2007, 02:29 AM   #13
redeye1
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
Hello EveryOne I have a Problem in Chapter 5.13.Ncurses-5.5 I am using LFS Live CD x86-6.2
Please tell me what can i do next.
Thanx


[code]:
** Building terminfo database, please wait...
Running tic to install /tools/share/terminfo ...

You may see messages regarding extended capabilities, e.g., A X.
These are extended terminal capabilities which are compiled
using
tic -x
If you have ncurses 4.2 applications, you should read the INS TALL
document, and install the terminfo without the -x option.

sh: error while loading shared libraries: libncursesw.so.5: cannot op en shared object file: No such file or directory
? tic could not build /tools/share/terminfo
make[1]: *** [install.data] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/ncureses/ncurses-5.5/mis c'
make: *** [install] Error 2
lfslivecd:root | Sat Feb 3 13:51:18 2007 | /mnt/lfs/sources/ncureses /ncurses-5.5

Last edited by redeye1; 02-03-2007 at 02:36 AM.
 
  


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
Problem in Chapter 5.7 flobobe Linux From Scratch 4 12-17-2006 11:30 PM
kernel problem in chapter 8.3 Soltar Linux From Scratch 1 07-24-2005 03:35 PM
Problem with Glibc-2.3.4 chapter 6.11 adancoco Linux From Scratch 1 02-14-2005 12:04 PM
glibc problem in chapter 6 alaios Linux From Scratch 5 04-04-2004 04:27 AM
problem with chroot on chapter 6 ! help please ! Cocolan Linux From Scratch 5 03-24-2004 02:42 PM

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

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