linux compat: path problem? /compat/linux/bin/sh doesn't work!
Boris Samorodov
bsam at ipt.ru
Wed Feb 13 23:15:44 UTC 2008
On Mon, 11 Feb 2008 19:11:32 +0100 (CET) Wojciech Puchar wrote:
> > serafina# dmesg -a | grep -A1 ABI
> > Additional ABI support:
> > linux
> >
> > serafina# /etc/rc.d/abi restart
> > Additional ABI support: linux.
> >
> magic starts here. sorry.
:-)
> > serafina# /compat/linux/bin/sh
> > sh-3.00# ls
> > ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
> > file OS ABI invalid
I think the result is expected. By running /compat/linux/bin/sh you
don't change much:
-----
# /compat/linux/bin/sh
sh-3.00# file `which ls`
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700055), dynamically linked (uses shared libs), FreeBSD-style, stripped
sh-3.00#
-----
Maybe you want to run:
-----
# chroot /compat/linux /bin/sh
sh-3.00# ls
bin etc lib media mnt opt proc sbin selinux srv sys usr var
sh-3.00#
-----
If you want to do a linux developing you may concider installing
linux_dist-gentoo. Linux_base is not good for it.
WBR
--
bsam
More information about the freebsd-questions
mailing list