From owner-freebsd-questions@freebsd.org Wed Feb 10 03:27:55 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A5914537F3D for ; Wed, 10 Feb 2021 03:27:55 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Db4vt5mVPz4qhr for ; Wed, 10 Feb 2021 03:27:54 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 11A3RphP096978; Tue, 9 Feb 2021 20:27:51 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: which linux libfuse.so.2? To: Pete Wright , FreeBSD Mailing List References: <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org> <8e50ba4b-a419-0d60-c2b5-1c379e2dc604@nomadlogic.org> From: Gary Aitken Message-ID: Date: Tue, 9 Feb 2021 20:23:19 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <8e50ba4b-a419-0d60-c2b5-1c379e2dc604@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Tue, 09 Feb 2021 20:27:51 -0700 (MST) X-Rspamd-Queue-Id: 4Db4vt5mVPz4qhr X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-2.30 / 15.00]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.109.141.57:from]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; SPAMHAUS_ZRD(0.00)[66.109.141.57:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 03:27:55 -0000 On 2/9/21 1:56 PM, Pete Wright wrote: > > > 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). thanks. > 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. thanks; I haven't really looked into that but may if time permits. But it's hard enough just keeping up with one system. ... >> 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". Thanks, my error in not going back and re-reading. I found a centos x86_64 version and unpacked it: $ ls -lt /compat/linux/usr/lib64 | head total 27564 -rwxr-xr-x 1 root wheel 16176 Feb 9 19:32 libulockmgr.so.1.0.1 lrwxrwxrwx 1 root wheel 20 Feb 9 19:32 libulockmgr.so.1 -> libulockmgr.so.1.0.1 -rwxr-xr-x 1 root wheel 269368 Feb 9 19:32 libfuse.so.2.9.7 lrwxrwxrwx 1 root wheel 16 Feb 9 19:32 libfuse.so.2 -> libfuse.so.2.9.7 But the .AppImage still chokes with an error loading the library: $ ./PrusaSlicer-2.3.0+linux-x64-202101111322.AppImage dlopen(): error loading libfuse.so.2 Do I need to do something other than place the lib in the right place? 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 libfuse.so.2 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. Gary