Click to See Complete Forum and Search --> : chroot problem


Wonock
11-23-2000, 04:37 PM
I am issuing this command to try to set u pa chrooted environment:

cd /mnt/df &&
chroot /mnt/df env -i HOME=/root bash --login

but I get this error:

bash: error in loading shared libraries: libtermcap.so.2: cannot open shared obj
ect file: No such file or directory

Anyone know how to fix that :-P

Wonock

Tigger
11-23-2000, 05:03 PM
It sounds like you are doing the LFS thing.

Anyway, you are missing the termcap library. Did you compile bash with the ncurses call and static?

Bash should be using ncurses library and not the older almost obsolete termcap library.

Wonock
11-23-2000, 05:10 PM
Yup, still trying to do the LFS. I'm using slackware 7.1, and yeah I did compile it with curses and static.

Wonock

Tigger
11-23-2000, 05:39 PM
Try recompiling bash again on the LFS partition and retry to chroot.

This is strange. If everything compiled properly and it statically linked ncurses, then it should have chroot'ed without a hitch.

Hmmm....

Your issue at this point is definitely with bash and the libraries it needs to work properly.

Wonock
11-23-2000, 05:56 PM
Yup, recompiling helped. I probably just left out either the --with-ncurses or the static command the first time. http://www.linuxnewbie.org/ubb/tongue.gif
Thanks!


Wonock