Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Miner34dev opened this issue Dec 15, 2023 · 9 comments
Open

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

Miner34dev opened this issue Dec 15, 2023 · 9 comments

Comments

@Miner34dev
Copy link

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
Copy link
Contributor

cryham commented Jan 28, 2024

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
Copy link
Collaborator

This should be reopened, issue is still present.

@Miner34dev Miner34dev reopened this Mar 5, 2024
@Miner34dev
Copy link
Author

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

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

@cryham
Copy link
Contributor

cryham commented Apr 13, 2024

.tar.xz should be fine too

@AnotherFoxGuy
Copy link
Member

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
Copy link
Contributor

cryham commented Apr 16, 2024

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
Copy link
Author

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?

@cryham
Copy link
Contributor

cryham commented Apr 28, 2024

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
Copy link
Contributor

cryham commented May 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants