Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2008 02:15:20 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        Steve Franks <stevefranks@ieee.org>, User Questions <freebsd-questions@freebsd.org>, Michael Ross <michael.ross@gmx.net>
Subject:   Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
Message-ID:  <86045895@ipt.ru>
In-Reply-To: <20080211191120.W5160@wojtek.tensor.gdynia.pl> (Wojciech Puchar's message of "Mon\, 11 Feb 2008 19\:11\:32 %2B0100 \(CET\)")
References:  <539c60b90802110851x295fa8c1xd7bd7afefc094a4f@mail.gmail.com> <20080211181636.L4825@wojtek.tensor.gdynia.pl> <op.t6de9tm2halquq@localhost> <20080211185246.B5043@wojtek.tensor.gdynia.pl> <op.t6dgjkhthalquq@localhost> <20080211191120.W5160@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86045895>