FreeBSD Port: net/linux-nx-client

Boris Samorodov bsam at
Sat Nov 29 12:25:17 PST 2008

"G. Paul Ziemba" <pz-freebsd-ports at> writes:
> gamato at (martinko) writes:
>>Scot Hetzel wrote:
>>> On Fri, Nov 28, 2008 at 4:43 PM, mato <gamato at> wrote:
>>>> Hi,
>>>> I've just installed net/linux-nx-client on FreeBSD 6.4 and after launching
>>>> it I got:
>>>> $ nxclient
>>>> /usr/local/lib/linux-nx-client/bin/nxclient: error while loading shared
>>>> libraries: cannot open shared object file: No such file or
>>>> directory
>>>> The library in need is located here:
>>>> -rwxr-xr-x  1 root  wheel  67306 Oct  8 18:07 /usr/local/lib/
>>> That's the wrong library, you need the linux which should
>>> be located under /usr/compat/linux.
>>> Scot
>>Which it is not.  A missing dependency ?
> On my system, for some reason these libraries get installed (by the
> linux* ports) in /usr/compat/linux/usr/X11R6/lib rather than in

Yes, it is supposed to.

> /usr/compat/linux/usr/local/lib where many applications expect them.

That is wrong. If that's true for your system than something is wrong
with your system/configuration.

> I have been manually creating symlinks in /usr/compat/linux/usr/local/lib,
> e.g.,
>     cd /usr/compat/linux/usr/local/lib
>     ln -s ../../X11R6/lib/
> I'm not sure why I need to make these links or if there is a better
> approach, but it works for me.

By default linuxulator looks for files first at /usr/compat/linux
directories and only if it fails then /usr/local is used. I.e. if
you have /usr/compat/linux/usr/X11R6/lib/ than it should
be found by linuxulator and no symlinking is needed.

Boris Samorodov (bsam)
Research Engineer, Telephone & Internet SP
FreeBSD committer, The Power To Serve

More information about the freebsd-ports mailing list