Appimage does not launch on NixOS #97

Open
opened 2024-02-29 08:41:26 +00:00 by Jimbo · 4 comments

I can see the old NixOS issue was not properly followed through with by the last reporter 2 years ago, so I will continue where they left off:

NixOS requires appimage-run to launch appimages in their correct environments, so the result of the command
MCPI_DEBUG=1 appimage-run ./minecraft-pi-reborn-client-2.5.3-amd64.AppImage is attached below.

The end line, unable to find libopenal, possibly indicates to me that libraries are staticall link to the libraries folder, which doesn't work with NixOS' store system.

I can see the old NixOS issue was not properly followed through with by the last reporter 2 years ago, so I will continue where they left off: NixOS requires appimage-run to launch appimages in their correct environments, so the result of the command ``MCPI_DEBUG=1 appimage-run ./minecraft-pi-reborn-client-2.5.3-amd64.AppImage`` is attached below. The end line, unable to find libopenal, possibly indicates to me that libraries are staticall link to the libraries folder, which doesn't work with NixOS' store system.
Contributor

On Debian the solution is sudo apt install libopenal1, but obviously Nix isn't Debian 😄
However, this SE answer might help: https://unix.stackexchange.com/a/190736

On Debian the solution is `sudo apt install libopenal1`, but obviously Nix isn't Debian 😄 However, this SE answer might help: https://unix.stackexchange.com/a/190736
Author

Well this is odd, I've been able to force the LD_LIBRARY_PATH to acknowledge the path to libopenal.so.1, but now I'm getting a "wrong ELF class" error.

Well this is odd, I've been able to force the ``LD_LIBRARY_PATH`` to acknowledge the path to ``libopenal.so.1``, but now I'm getting a "wrong ELF class" error.
Author

As an additional note, steam-run also seems to add the correct libraries into the LD_LIBRARY_PATH, which results in the same libopenal.so.1: wrong ELF class: ELFCLASS32 error when running steam-run appimage-run minecraft-pi-reborn-client-2.5.3-amd64.AppImage.

As an additional note, ``steam-run`` also seems to add the correct libraries into the ``LD_LIBRARY_PATH``, which results in the same ``libopenal.so.1: wrong ELF class: ELFCLASS32`` error when running ``steam-run appimage-run minecraft-pi-reborn-client-2.5.3-amd64.AppImage``.
Author

I looked into this issue a little more and I think the version of openal nix reads from in say a steam-run only supports 64 bit and not 32 bit, hence the wrong ELF class. Seems hard to fix without NixOS intervention.

file libopenal.so.1.23.1:
libopenal.so.1.23.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

I looked into this issue a little more and I think the version of openal nix reads from in say a ``steam-run`` only supports 64 bit and not 32 bit, hence the wrong ELF class. Seems hard to fix without NixOS intervention. file libopenal.so.1.23.1: ``libopenal.so.1.23.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped``
Jimbo closed this issue 2024-03-14 11:10:11 +00:00
Jimbo reopened this issue 2024-03-14 11:10:15 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: minecraft-pi-reborn/minecraft-pi-reborn#97
No description provided.