From owner-freebsd-questions@freebsd.org Tue Feb 9 20:56:46 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 8D1F152AAF0 for ; Tue, 9 Feb 2021 20:56:46 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZwDY36Nlz3qwt for ; Tue, 9 Feb 2021 20:56:45 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.160] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 9a445926 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 9 Feb 2021 20:56:38 +0000 (UTC) Subject: Re: which linux libfuse.so.2? To: freebsd@dreamchaser.org, FreeBSD Mailing List References: <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org> From: Pete Wright Message-ID: <8e50ba4b-a419-0d60-c2b5-1c379e2dc604@nomadlogic.org> Date: Tue, 9 Feb 2021 12:56:37 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4DZwDY36Nlz3qwt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-2.30 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[174.136.98.114:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[174.136.98.114:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, 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: Tue, 09 Feb 2021 20:56:46 -0000 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