RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 177 forks source link

lib/libXt.so.6 file too short error #3110

Open Miner34dev opened 9 months ago

Miner34dev commented 9 months ago

Steps to reproduce

  1. Download the development version from here
  2. Extract it somewhere
  3. Run it with ./RunRoR

Expected behavior

Start Rigs of Rods.

Actual behavior

It crashes with this error: ./RoR: error while loading shared libraries: ./lib/libXt.so.6: file too short

System configuration

OS: Garuda Linux (Arch derivate)

Additional information

libXt.so.6 seems to be just 14 bytes long. I tried to re-download RoR, but nothing changed.

cryham commented 8 months ago

I had exactly the same issue (on Debian 12). IMO zip is bad for this, IDK if it even can pack symlinks. I did a symlink on my own and the file is then 45 bytes and works (points to right .so file).

Anyway I fixed this and started RoR, after doing few file replaces. So simply replacing the bigger (so) files with longer names to these:

   Size      Filename
   89096  libbsd.so.0
   47472  libmd.so.0
 184480  libOIS.so
   18720  libXau.so.6
 479576  libXaw.so.7
   26800  libXdmcp.so.6
   81640  libXext.so.6
 111024  libXmu.so.6
   80800  libXpm.so.4
 441760  libXt.so.6.0
   31704  libzzip-0.so.13

Hope it helps.

This should be fixed by devs in that bad zip, maybe just use 7z.

CuriousMike56 commented 7 months ago

This should be reopened, issue is still present.

Miner34dev commented 7 months ago

This should be fixed by devs in that bad zip, maybe just use 7z.

What about a tar archive (.tar.xz)?

cryham commented 5 months ago

.tar.xz should be fine too

AnotherFoxGuy commented 5 months ago

This should be fixed by devs in that bad zip, maybe just use 7z.

There is nothing we can do about that, the zip is generated by the itch.io website

cryham commented 5 months ago

Okay if format zip has to stay, then could you rename these files like in my comment? So users don't have to do it manually, if they know what to do even.

Miner34dev commented 5 months ago

I am not sure of how those zips are generated, but (correct me if i'm wrong) to get them on itch.io, you take a build artifact, you decompress it and then you put it on itch.io that then recompresses it right? If it is like that, wouldn't it be possible to directly upload the build artifact zip, which works perfectly? (edit: nevermind, it doesn't work either)

cryham commented 5 months ago

BTW, apparently 7z is bad too, info here: https://unix.stackexchange.com/questions/600282/preserve-file-permissions-and-symlinks-in-archive-with-7-zip So the only good way I know is compressing using .tgz

cryham commented 4 months ago

You could e.g. at least make a .sh script that users need to run after downloading to get it fixed. And write about it on download page etc. Because otherwise it seems like you didn't want most users to run RoR on Linux even.