Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2021 12:56:37 -0800
From:      Pete Wright <pete@nomadlogic.org>
To:        freebsd@dreamchaser.org, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: which linux libfuse.so.2?
Message-ID:  <8e50ba4b-a419-0d60-c2b5-1c379e2dc604@nomadlogic.org>
In-Reply-To: <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org>
References:  <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org>

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


On 2/9/21 11:11 AM, Gary Aitken wrote:
> I'm trying to run a linux binary (prusa-slicer) that is in .AppImage 
> format.
> When run, it complains about missing libfuse.so.2.  I believe this has 
> to be
> a linux lib, not the fbsd one.  So does it matter which version of 
> linux it
> was built for?  I presume I need the x86_64 version.  Or can I just 
> make a
> symlink in compat/linux/lib to the regular fbsd fuse library?
i think it would depend under which linux distro you are running 
emulation from.  if you are using the c7-linux packages to supply the 
rest of the linux binaries for this program, I'd grab the CentOS rpm for 
x86_64 (assuming your system is x86_64 and not arm).

there is also work happening on getting debian and ubuntu working under 
freebsd - not sure about its availability on 11.4, but i use it for GUI 
apps on my workstations:
https://wiki.freebsd.org/LinuxJails

the nice thing about this method, is once you've bootstrapped your 
debian environment you can chroot into it and run "apt-get install blah" 
and it all pretty much just works.

>
> I'm running 11.4-RELEASE-p3  amd64
>
> I see libraries:
>
> CentOS BaseOS armhfp: fuse-libs-2.9.7-12.el8.armv7hl.rpm
> CentOS BaseOS x86_64: fuse-libs-2.9.7-12.el8.i686.rpm
> Fedora armhfp:        fuse-libs-2.9.9-11.fc34.armv7hl.rpm
> Fedore x86_64:        fuse-libs-2.9.9-11.fc34.i686.rpm
> OpenSUSE Oss x86_64:  libfuse2-2.9.9-4.1.i586.rpm
>                       libfuse2-32bit-2.9.9-4.1.x86_64.rpm
>
> And then, how do I unpack the rpm?
this is covered in the handbook here:
https://docs.freebsd.org/en/books/handbook/linuxemu/
see section 10.2.3 "Intall a Linux RPM Based Application".

tl;dr is use the rpm2cpio package in conjunction with cpio like so:
rpm2cpio < /my/file.rpm | cpio -id

the above trick works well on linux btw :)

-p

-- 
Pete Wright
pete@nomadlogic.org
@nomadlogicLA




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?8e50ba4b-a419-0d60-c2b5-1c379e2dc604>