Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2021 20:03:56 -0800
From:      Pete Wright <>
To:, FreeBSD Mailing List <>
Subject:   Re: which linux
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

On 2/9/21 7:23 PM, Gary Aitken wrote:
> Is there a way to run /compat/linux/usr/bin/ldd to figure out what it is
> really looking for?  I get the same error whether the symlink for 
> is present or not.  If I try to run the linux ldd I get:
> $ /compat/linux/usr/bin/ldd 
> PrusaSlicer-2.3.0+linux-x64-202101111322.AppImage
> bash: /compat/linux/usr/bin/ldd: /usr/bin/bash: bad interpreter: No 
> such file or directory
> There is no /usr/bin/bash (it's in /usr/local/bin/bash), but there is a
> /compat/linux/usr/bin/bash.

you might want to chroot into the /compat/linux environment like this 
for example:
$ sudo chroot /compat/linux /usr/bin/bash

that should make tools like ldd friendlier while you debug.

you also might want to give setting your LD_LIBRARY_PATH when executing 
the command from freebsd to include the linux locations and see how far 
you get:
$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/compat/linux/lib:/compat/linux/lib64 


Pete Wright

Want to link to this message? Use this URL: <>