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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-27-2005, 11:56 PM
|
#1
|
Member
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59
Rep:
|
LFS 6 Chapter 6.3 chroot error
Hello!
Please help me! I am trying to build the latest linux from scratch. everything has worked great up to chapter 6.3, where i enter the command:
chroot "$LFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h
it outputs:
/tools/bin/bash: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
i am afraid if i continue on, ignoring this error could lead to more problems. But i am not sure what to do yet so any advice clues or anything would be very much appreciated
thanks,
mike
p.s.
i am running:
LFS SVN-20050417 (recent version, hopefully this isn't related to the problem)
Slackware 10.1
with stock kernel 2.6 from disc 2 /testing
|
|
|
04-28-2005, 07:34 AM
|
#2
|
Senior Member
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014
Rep:
|
in LFS bash should be linked with ncurses and not termcap 
|
|
|
04-28-2005, 12:33 PM
|
#3
|
Member
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59
Original Poster
Rep:
|
do you think its something wrong with what i did in the ncurses section?
|
|
|
04-28-2005, 12:43 PM
|
#4
|
Senior Member
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014
Rep:
|
to know if bash is correctly linked, try: ldd /tools/bin/bash
for example, here is my bash:
Code:
ldd /bin/bash
libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4001f000)
libdl.so.2 => /lib/libdl.so.2 (0x40065000)
libc.so.6 => /lib/libc.so.6 (0x40068000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
|
|
|
04-28-2005, 01:25 PM
|
#5
|
Member
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59
Original Poster
Rep:
|
Ok heres what it outputs:
root@darkstar:~# ldd /tools/bin/bash
linux-gate.so.1 => (0xffffe000)
libtermcap.so.2 => not found
libdl.so.2 => /tools/lib/libdl.so.2 (0x40018000)
libc.so.6 => /tools/lib/libc.so.6 (0x4001c000)
/tools/lib/ld-linux.so.2 (0x40000000)
root@darkstar:~# ldd /bin/bash
linux-gate.so.1 => (0xffffe000)
libtermcap.so.2 => /lib/libtermcap.so.2 (0x4002e000)
libdl.so.2 => /lib/libdl.so.2 (0x40033000)
libc.so.6 => /lib/libc.so.6 (0x40037000)
/lib/ld-linux.so.2 (0x40000000)
when i try the chroot command i still recieve the error, and i do not see any prompt "I have no name!" as the chapter says you should see.
btw thankyou so much for helping me
|
|
|
04-28-2005, 01:35 PM
|
#6
|
Senior Member
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014
Rep:
|
Well in your chapter 5 try to recompile Bash with the following options:
Code:
./configure --enable-static-link --prefix=/tools --with-curses --without-bash-malloc
|
|
|
04-28-2005, 02:32 PM
|
#7
|
Member
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59
Original Poster
Rep:
|
It worked!
I ran the chroot command again and it gave me the "I have no name!" prompt
Thanks so much for helping me! I woulda never figured it out by myself
|
|
|
12-31-2007, 07:00 AM
|
#8
|
LQ Newbie
Registered: Feb 2007
Posts: 13
Rep:
|
error while loading shared libraries
hello sir
I am trying to install lfs-6.2 using interprise linux as host system.
When I chroot to lfs in chater 6 I get the following eror mesage
error while loading shared library libtermcap.so.2 : cannot open shared object file no such file or directory.
I foolowed the instruction as you wrote to do like
./configure --enable-static-link --prefix=/tools --with-curses --without-bash-malloc
but still I am getting the same error
please help
thanks
zalmay
|
|
|
01-01-2008, 03:12 AM
|
#9
|
Senior Member
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541
|
After performing the (re)'configure', did you perform the 'make' and 'make install'?
As Oliv' recommended, run this command to verify your bash executable is built correctly:
Code:
ldd /tools/bin/bash
|
|
|
All times are GMT -5. The time now is 04:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|