-
Notifications
You must be signed in to change notification settings - Fork 991
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
Add pkg-config to SystemRequirements #4941
Comments
The way I read the same page it only is one for macOS:
|
Sorry, I should have been clearer: I agree with you about the Wiki page. The point of the reference is that But on an Ubuntu 20.04 distro/image with R 4.0.2 without
The full installation log is pasted below. In the beginning it explicitly says that My reason for opening this issue is that adding
|
You quote a failed build with a warning message about the optional Maybe the critical is actually that you do not have (I am on Ubuntu too and I have no difficulty building |
This is in a Docker image where On my normal computer with Ubuntu (where I built R from source) I have both |
Yes, exactly: The required package is So you just demonstrated that your Subject: is slightly misleading: |
Perhaps I misunderstand the purpose of the The missing It's not really useful that the C code compiles w/o errors if the package cannot be installed afterwards. |
You claim "absence of pkg-config leads to failure to install" yet your example only shows lack of |
Then I explained my example poorly. I'll return with a reproducible example to demonstrate my point. |
After testing more, it appears that the issue has magically resolved itself between R 4.0.2 with I used this
This is for R 4.0.3 and the installation of Changing "4.0.3" to "4.0.2" (where the images are built the same way -- freshly on my machine -- based on the same version of Ubuntu) and In conclusion, I don't see a need to fix problems for older versions of R/ On a side note, |
There was a change to makevars recently so that might have resolved your problem. |
The
SystemRequirements
field in theDESCRIPTION
file only noteszlib
as a requirement.However,
pkg-config
is also needed -- as noted in the installation instructions.pkg-config
is a build requirement for R on Linux, but not a runtime requirement, which for me turned out to be an issue in a small Docker image.Would you consider adding
pkg-config
inSystemRequirements
? This makes it easier for something like System Requirements for R Packages to find it.Thanks!
Edit: BTW there are some closed issues on this topic (e.g. #4653, #4709 ) where the resolution is to install
pkg-config
.The text was updated successfully, but these errors were encountered: