linux compat: path problem? /compat/linux/bin/sh doesn't work!

Reid Linnemann lreid at
Mon Feb 11 19:09:08 UTC 2008

Written by Michael Ross on 02/11/08 12:42>>
> Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <lreid at>:
>> It is not finding the FreeBSD versions of libraries. There is no
>> /usr/lib/ in FreeBSD, that is linux's real-time threading
>> library. Try brandelf /usr/compat/linux/usr/lib/ to see if
>> it's branded.
> [michael at serafina ~]$ brandelf /usr/compat/linux/usr/lib/
> brandelf: error opening file /usr/compat/linux/usr/lib/ No
> such file or directory
> [michael at serafina ~]$ brandelf /usr/compat/linux/lib/
> File '/usr/compat/linux/lib/' is of brand 'SVR4' (0).
> [michael at serafina ~]$ brandelf /usr/lib/
> File '/usr/lib/' is of brand 'FreeBSD' (9).
> Michael

Okay, I need to proofread. /usr/compat/linux/lib/ is the right
path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've
dug a little deeper and seen other people work around this by linking
/usr/compat/linux/usr/lib/ to the actual lib at

More information about the freebsd-questions mailing list