Re: Trying to Install the Linux WPS Office Port; Understanding and Resolving the Errors

From: Jonathan Adams <jfadams1963_at_proton.me>
Date: Sat, 06 Jan 2024 18:28:44 UTC
On Saturday, January 6th, 2024 at 11:59 AM, J. <redc3ll@protonmail.com> wrote:

> I'm attempting to install the port Linux WPS Office [1], but the installation process is halted with a few error messages. As a FreeBSD/UNIX neophyte, I have difficulty understanding these errors and how to resolve them.
> Being in the proper ports directory, I do: make install clean
> The installation (or should I say: compilation) process is ultimately halted with these error messages:
>
> ============BEGIN QUOTE================

install  -m 444 /usr/ports/devel/bsddialog/work/bsddialog-1.0.1/utility/bsddialog.1 /usr/ports/devel/bsddialog/work/stage/compat/linux/man/man1/
====> Compressing man pages (compress-man)
===>  Installing for bsddialog-1.0.1
===>  Checking if bsddialog is already installed
===>   bsddialog-1.0.1 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of bsddialog
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

<snip>

>
> ===> Options unchanged
> ===>  Installing for linux_base-c7-7.9.2009_1
> ===>  Checking if linux_base-c7 is already installed
> ===>   Registering installation for linux_base-c7-7.9.2009_1 as automatic
> Installing linux_base-c7-7.9.2009_1...
> pkg-static: Fail to rename /compat/linux/.pkgtemp.bin.4XYbNS1wvM7O -> /compat/linux/bin:Is a directory
> ELF interpreter /lib/ld-linux.so.2 not found, error 2
> Abort trap
> ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
> *** Error code 1

  Hi J. Hopefully someone more knowledgeable about ports installations can provide more guidance, but my first impression here is that you have missing libraries. Specifically:
/compat/linux/lib/ld-linux.so.2
and
/compat/linux/lib64/ld-linux-x86-64.so.2

However these libraries are installed by the linux_base-c7-7.9.2009_1 package:
`
$ pkg info -l linux_base-c7-7.9.2009_1 | grep ld-linux
        /compat/linux/usr/lib/ld-linux.so.2
        /compat/linux/usr/lib64/ld-linux-x86-64.so.2
`

Have you checked to see that they are in place?

- Jonathan
____________________________________________
"Before Turing, things were done to numbers.
After Turing, numbers began doing things"
- George Dyson