Kron4ek / minecraft-vortex-launcher

Fast, lightweight and easy to use Minecraft launcher
GNU General Public License v3.0
310 stars 32 forks source link

Fails to launch on NixOS #39

Closed K0-RR closed 2 years ago

K0-RR commented 2 years ago
./VLauncher_1.1.17_x64_Linux 
bash: ./VLauncher_1.1.17_x64_Linux: No such file or directory
Kron4ek commented 2 years ago

This is because ld-linux is in a non-standard location on NixOS. Check where ld-linux-x86-64.so.2 is and patch the launcher binary to use it. For example:

patchelf --set-interpreter /nix/store/89xkcsio12lzjkswqfs-glibc-2.34/lib/ld-linux-x86-64.so.2 ./VLauncher_1.1.17_x64_Linux

I guess you will also need to set rpath to where all required libraries are, like:

patchelf --set-rpath /nix/store/7lbi3gn351j4hix3dqhis58adxbmvbxa-sane-backends-1.0.25/lib:/nix/store/0990ls1p2nnxq6605mr9lxpps8p7qvw7-qtbase-5.9.1/lib ./VLauncher_1.1.17_x64_Linux

More info is here.