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

Issue when building Docker images using build-image.sh script #400

Open
myermo opened this issue Nov 25, 2023 · 0 comments
Open

Issue when building Docker images using build-image.sh script #400

myermo opened this issue Nov 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@myermo
Copy link
Contributor

myermo commented Nov 25, 2023

The problem
@han16nah pointed out to me that the image builder script is not properly working with python3.6. The Helios compilation stage reports a linking error of the GDAL library.

How to reproduce
./build-image.sh -v 3.6 -b main

The linking process does not complete. The problem is that libgdal.so is trying to link against the libcurl.so.4 installed under /lib/x86_64-linux-gnu directory. The installed libcurl in the Dockerfile is located under /usr/lib/x86_64-linux-gnu directory. Note the /usr prefix.

We can fix that using patchelf:

patchelf --replace-needed libcurl.so.4 /usr/lib/x86_64-linux-gnu/libcurl.so lib/gdal/lib/libgdal.so

After that, GDAL is unable to link against the installed TIFF library.

I don't know what the problem may be, but what I know for sure is that working with GDAL is a headache.

I'll keep investigating the issue, I just leave the issue as a reminder to my future self.

@myermo myermo added the bug Something isn't working label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant