-
Notifications
You must be signed in to change notification settings - Fork 19
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
httpgd can't find libpng dependencies during install in AL2023 Docker image #177
Comments
Why not use rig for R installation and pak for R package installation? If you use pak on a Linux distribution like RHEL, the dependent system packages will be installed automatically and you will not need to install them manually. |
I second that pak might be worth a try but in general there seems something wrong with the R c++ build setup. Is httpgd/unigd the only source package you have trouble with? Updating all the build tools (GCC, make, ...) might be worth a try. I think the rocker (Ubuntu based) images build R from source. Edit: it might also be worth to ask over at lambdr |
Hi both, thanks for the replies!
@eitsupi, this is a good question. Honestly, it didn't cross my mind. I've never had a need to use either of these before because we haven't had lambdas running R processes - we just do our thing on macbooks. System dependencies are ours to resolve individually. I've looked into it though and the answer is that pak doesn't resolve system requirements for the AL2023 distro, which is not a standard Linux distro but rather a bespoke one that AWS has made. I installed pak in the container and ran
@nx10 unigd seems to install fine, and so did pak and its dependencies which all installed from source (see below). I've only observed the issue with httpgd. I added Any other ideas about the tool chain? pak compiling from source
|
Ok, I've got a solution. I think the issue here, ultimately, is that AWS have their own lightweight distro of Linux. It's an RPM-based distro, but not directly comparable to any Fedora release, CentOS, or RHEL. From there, my lack of confidence and understanding caused the mess. I had the RHEL 9 version of R installing, but was then attempting to install R packages from the CentOS 7 Posit Package Manager repo. Total mismatch. I changed the R package installation to look like the below, bringing it in line with the R version, and now it's all good.
Not really sure if I should be using RHEL 9 or CentOS 7. But certainly using RHEL 9 has sorted out the httpgd install, so I'm going to go ahead and close this. Thanks again for the package and best wishes! |
Describe the bug
First of all, thank you for this package. I switched to VS Code as my main R IDE in December and it's been fun and productive - partly thanks to this package's existence. So I really appreciate all the hard work that must go into its development and maintenance.
As for the 'bug', if it is one: When installing httpgd in an
AL2023:provided
base Docker image, either from CRAN or the dev version, the following error occurs at the endTo Reproduce
Dockerfile
, or use the belowdevcontainer.json
and build the container in e.g. VS Codeinstall.packages("httpgd")
Dockerfile
devcontainer.json
Expected behavior
httpgd installs successfully 🥲
Environment
Additional context
The
Dockerfile
is a much slimmed down version of my actual one, which is a developer environment for an AWS lambda where the CDK is written in Python and the lambda process is in R. I more or less need to use this image for that reason, so I'm stuck with the AL2023 frankendistro. This is the most minimal reprex that I could come up with.As you can see the build includes installing all the system dependencies for unigd and httpgd, i.e.
fontconfig-devel
,freetype-devel
,cairo-devel
,libpng-devel
, andlibtiff-devel
. I also thinklibpng
is installing successfully but (see below) it's version 16, where httpgd seems to be looking for version 15? I can't find a way to downgrade - here's a link to the available packages for AL2023, if that's helpful.find / -name libpng* /usr/lib64/pkgconfig/libpng16.pc /usr/lib64/pkgconfig/libpng.pc /usr/lib64/libpng16.so /usr/lib64/libpng.so /usr/lib64/libpng16.so.16.37.0 /usr/lib64/libpng16.so.16 /usr/include/libpng16 /usr/bin/libpng16-config /usr/bin/libpng-config /usr/share/man/man3/libpngpf.3.gz /usr/share/man/man3/libpng.3.gz /usr/share/doc/libpng-devel /usr/share/doc/libpng-devel/libpng-manual.txt /usr/share/licenses/libpng find: ‘/proc/11226’: No such file or directory find: ‘/proc/11227’: No such file or directory find: ‘/proc/11232’: No such file or directory find: ‘/proc/11233’: No such file or directory
Might be worth mentioning that
unigd
installs successfully.Full log when attempting installation
Please let me know if there's any more info I can give or things to try. I may need a little advice as I'm out of my comfort zone but will do my best to work with you, if you can help :)
Best,
Jim
The text was updated successfully, but these errors were encountered: