From owner-freebsd-current@freebsd.org Fri Jul 7 07:05:20 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 977DAD9BEE5 for ; Fri, 7 Jul 2017 07:05:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 65D556E8C2 for ; Fri, 7 Jul 2017 07:05:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pg0-x243.google.com with SMTP id j186so3026962pge.1 for ; Fri, 07 Jul 2017 00:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yh6Evge7VwaAgk/7rdWrJ3XxCBeN3F2mWVVMYbFue2g=; b=Z5RNSRinkJj3RBYA71nfnvJkvKLkHXec0ZVRgyia080XIIYWdOipIaFdA+ypX3UvyG kD3J2oqXqy4OxNXndgayWlzpjxwTenBNsUEua15rzh81PUIji66Z7MmyDnF5qS4YPWQ9 q2zv0di2FmPCsB6X/m6jszMNwIn0gIBv9iSDj1mE36kB6FNz/458AzI9JngDyJOPqiXf eZbvVZx4pBZvjn/dKT8KV5eqdVPdF5A1bGg8hnKB0e4bdiJ8tOa6ghCwZd5ryuGb17cw jS8fzU6rLstXKY5Uhz7OQC5abruqS7O079kp3ACMs+RP797CY1JFS13n3M+HgI+n13oS 12NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yh6Evge7VwaAgk/7rdWrJ3XxCBeN3F2mWVVMYbFue2g=; b=DHbyypp81dZh9tGlWjvkUvRgoVWt4uk/Q1pSJXjvEG7eLoNmuWN9Y3gzM0vNHRCuZi 0AVH7wra7kn1Go5nw0r9wiCVCpT7gQLwL34CPgpLDESaAIi52u/g+L3ty5qyCMjU8Iod 4HAsltpKBjYwTzWewalgOPtn1h74UUArj/of7vlM1EMdWn7WcsUFCjf7n3flTEHCawzM 4AOrVewzLAgzrZqVSrgZOqBo+RHe+P6dmTOgkUT74/hX+Lb4lp8qcF/tSSfvmGpxVEOp +jTFHqnrB9/JOHg7T41dtMar4Ak2IylhxUGlKduLkG2XWcdSCdXG8YEJxuj+zo6sUk/S dCIg== X-Gm-Message-State: AIVw113uC/tArsXYABilIkPH/0CfN1/EQNEGAyqdEShbSZ80k7MU0+rW snx0QtO5Qohr9xnsUSVaAxzxwlsNSuUcDljbPg== X-Received: by 10.84.224.75 with SMTP id a11mr1370133plt.286.1499411119640; Fri, 07 Jul 2017 00:05:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.180.78 with HTTP; Fri, 7 Jul 2017 00:05:19 -0700 (PDT) From: blubee blubeeme Date: Fri, 7 Jul 2017 15:05:19 +0800 Message-ID: Subject: Installing Linux libraries in /compat To: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2017 07:05:20 -0000 This is linux_base-c6 I would just like to check with the list to make sure If I want to install missing libraries I should get the CentOS 6 versions of the rpm I am missing some libraries for some printer drivers ------------------------------------------------------------------------------- ldd /compat/linux/opt/epson-inkjet-printer-201401w/cups/lib/filter/epson_inkjet_printer_filter /compat/linux/opt/epson-inkjet-printer-201401w/cups/lib/filter/epson_inkjet_printer_filter: linux_vdso.so.1 => (0x00007ffffffff000) libdl.so.2 => /lib64/libdl.so.2 (0x0000000800a00000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x0000000800e00000) libcupsimage.so.2 => not found libcups.so.2 => not found libjpeg.so.62 => not found libpthread.so.0 => /lib64/libpthread.so.0 (0x0000000801200000) libm.so.6 => /lib64/libm.so.6 (0x0000000801600000) libc.so.6 => /lib64/libc.so.6 (0x0000000801a00000) /lib64/ld-lsb-x86-64.so.3 (0x0000000800607000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000000801e00000) ---------------------------------------------------------------------------------- As you can see from the above I am missing libcupsimage.so.2 libcups.so.2 libjpeg.so.62 looking at the ldd command from above all the printer drivers reference the 64 bit version of the libs so that means for example libcupsimage.so.2 I should use the version from this url: https://pkgs.org/download/libcupsimage.so.2 CentOS x86_64 - cups-libs-1.4.2-77.el6.i686.rpm Common Unix Printing System - libraries To install that I'll follow the steps laid out here: https://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html # *cd /compat/linux*# *rpm2cpio < /path/to/cups-libs-1.4.2-77.el6.i686.rpm | cpio -id* Is that correct? ======================================== linux_base-c6-6.8_12 Name : linux_base-c6 Version : 6.8_12 Installed on : Sat Jun 3 20:07:52 2017 CST Origin : emulators/linux_base-c6 Architecture : FreeBSD:11:amd64 Prefix : /compat/linux Categories : linux emulators Licenses : Maintainer : emulation@FreeBSD.org WWW : UNKNOWN Comment : Base set of packages needed in Linux mode (Linux CentOS 6.8) Options : DOCS : on NLS : on Annotations : repo_type : binary repository : FreeBSD Flat size : 196MiB Description : This port contains packages from a near-minimal installation of CentOS 6 Linux. These packages, in conjunction with the Linux kernel module, form the basis of the Linux compatibility environment. It is designed to provide a nice user experience by using the FreeBSD configuration for corresponding Linux stuff where possible. Because of this any work which needs to chroot into the Linux base may not work as expected (no fallthrough to the FreeBSD config possible).