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

Binary throwing no such file or directory for libbz2.so.1.0 #197

Open
iWisp360 opened this issue Oct 16, 2024 · 7 comments
Open

Binary throwing no such file or directory for libbz2.so.1.0 #197

iWisp360 opened this issue Oct 16, 2024 · 7 comments

Comments

@iWisp360
Copy link

When I open newer versions of the launcher on my fedora system. It fails with error loading a shared object: libbz2.so.1.0, no such file or directory. This didn't happen on 1.7.x.

@mrvictory1
Copy link
Contributor

Thankfully you made an issue, I was thinking to create one then forgot it. Anyways here's the fix
sudo ln -s /usr/lib64/libbz2.so.1 /usr/lib64/libbz2.so.1.0

@iWisp360
Copy link
Author

Thankfully you made an issue, I was thinking to create one then forgot it. Anyways here's the fix sudo ln -s /usr/lib64/libbz2.so.1 /usr/lib64/libbz2.so.1.0

Thanks for the workaround! Hope this gets fixed soon

@LittleFinix
Copy link

Looking at the ldd output for the launcher I can see two requirements for libbz2.so

        libbz2.so.1.0 => not found
        libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f54f94fb000)

Patching the binary to remove the explicit dependency to the 1.0 version makes the launcher run just fine:

patchelf --remove-needed libbz2.so.1.0 honkers-railway-launcher

For the workaround by @mrvictory1, I would recommend putting the library in /usr/local/lib instead, just to be safe:

ln -s /usr/lib64/libbz2.so.1 /usr/local/lib/libbz2.so.1.0

@wchao96
Copy link

wchao96 commented Dec 11, 2024

I built the launcher just now and the dependency issue is fixed. Next release should hopefully resolve the issue.

@mrvictory1
Copy link
Contributor

@wchao96 did you test an-anime-game-launcher or only honkers railway? The former was also affected.

@iWisp360
Copy link
Author

@wchao96 did you test an-anime-game-launcher or only honkers railway? The former was also affected.

Indeed, It also happened on an anime game launcher

@wchao96
Copy link

wchao96 commented Dec 14, 2024

@mrvictory1 @iWisp360 just tested An Anime Game Launcher and it works as well :) If you would like to try building the apps yourselves, you can:

  1. Clone the git repo
  2. Install rust/cargo
  3. Run cargo build --release and install any missing system packages that the error messages may spit out eg gtk4-devel libadwaita-devel, etc
  4. App will be created in ./target/release/

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