-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Run patchelf on the same binary 64 times causes cannot execute binary file: Exec format error #96
Comments
Alternating between setting the interpreter and setting the rpath causes the failure. Setting the interpreter 100 times and then setting the rpath 100 times is just fine. |
A simple solution for my use case would be for This issue arose because an installation of |
Dear Contributor,
Regards, |
Yes, don't run |
@sjackman well i need to when i make postgres portable build :( |
Can you combine the multiple invocations of |
@sjackman not sure what you mean do you have an example to share? |
Can you give an example of what you're trying to accomplish, and why you're running |
Below is the example of what i am doing, if there is a way to address this with single line it will help me. If don't do add-needed then dynamic library will have missing dependencies "not found" patchelf --remove-needed liblwgeom-2.5.so.0 /var/lib/postgresql/bin/raster2pgsql |
Try… patchelf \
--remove-needed liblwgeom-2.5.so.0 \
--add-needed /var/lib/postgresql/lib/libgdal.so.20 \
--add-needed /var/lib/postgresql/lib/libgeos_c.so.1 \
--add-needed /var/lib/postgresql/lib/liblwgeom-2.5.so.0 \
…
/var/lib/postgresql/bin/raster2pgsql |
got you thank you |
The text was updated successfully, but these errors were encountered: