rigs-of-rods icon indicating copy to clipboard operation
rigs-of-rods copied to clipboard

lib/libXt.so.6 file too short error

Open Miner34dev opened this issue 1 year ago • 9 comments

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.

Miner34dev avatar Dec 15 '23 16:12 Miner34dev

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.

cryham avatar Jan 28 '24 22:01 cryham

This should be reopened, issue is still present.

CuriousMike56 avatar Mar 02 '24 18:03 CuriousMike56

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

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

Miner34dev avatar Mar 05 '24 12:03 Miner34dev

.tar.xz should be fine too

cryham avatar Apr 13 '24 07:04 cryham

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

AnotherFoxGuy avatar Apr 16 '24 10:04 AnotherFoxGuy

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.

cryham avatar Apr 16 '24 11:04 cryham

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)

Miner34dev avatar Apr 28 '24 12:04 Miner34dev

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 avatar Apr 28 '24 13:04 cryham

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.

cryham avatar May 26 '24 19:05 cryham