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

Prebuilt Linux binaries are unusable on any modern system #1187

Open
Flameeyes opened this issue Jan 17, 2024 · 5 comments
Open

Prebuilt Linux binaries are unusable on any modern system #1187

Flameeyes opened this issue Jan 17, 2024 · 5 comments

Comments

@Flameeyes
Copy link

When downloading the prebuild Linux binary, it will not work as is because of the missing libraries.

While LD_LIBRARY_PATH can be set to address that, it might be worth setting the correct RPATH instead.

@Flameeyes
Copy link
Author

Actually this is worse, because the DT_NEEDED entries for the binaries refer directly to /usr/local/lib so by default the LD_LIBRARY_PATH option is not even respected.

@Flameeyes
Copy link
Author

Okay after downloading the zip file with the prebuilt binaries it's possible to fix this with patchelf:

for file in bin/*; do patchelf --add-rpath '$ORIGIN/../lib' $file; readelf -d $file | grep NEEDED | grep /usr/local | sed -e 's:.*\[\(.*\)\]:\1:' | while read library; do patchelf --replace-needed $library $(basename $library) $file; done; done

@Flameeyes
Copy link
Author

Nah, this is all broken, there's no way to get this to run on any modern system. I believe the prebuilt binaries shouldn't be pushed at all, and the installation instructions updated accordingly.

@Flameeyes Flameeyes changed the title Missing rpath for binaries to find libraries. Prebuilt Linux binaries are unusable on any modern system Jan 17, 2024
@devdave
Copy link

devdave commented Jan 18, 2024

For myself, I ended up building from source, but the mentioned .deb files would have been nice. https://facebook.github.io/watchman/docs/install#ubuntu-prebuilt-debs

@quux-aivar
Copy link

Nah, this is all broken, there's no way to get this to run on any modern system. I believe the prebuilt binaries shouldn't be pushed at all, and the installation instructions updated accordingly.

I agree!

Overall, it appears that the project has been abandoned.

https://facebook.github.io/watchman/docs/install#fedora-prebuilt-rpms

Screenshot 2024-04-17 at 09 43 01

Unfortunately, Fedora 39 does not yet have an RPM package available.

When you install the Linux binaries that are given via release, the app will fail.

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

3 participants