Add missing Ubuntu dependency to README #244
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When installing on Ubuntu 22.04, Cargo's compilation fails when following the instructions outlined by the README.
This provides the following panic message:
This issue also occurred within the r-lib/systemfonts repository, and is solved by installing
libfontconfig1-dev
alongside the other dependencies. This should be added to the README since it's required for compilation to succeed.The installation also had a variety of other errors that appear when starting from scratch, the first of which was that one of the dependencies was unable to find the
c++
command. This was easily solved by symlinkinggcc
toc++
Afterwards, there was also a linking error that I believe is either due to a missing / invalid LLVM installation, or some other issue that is unknown to me. I didn't investigate it further because I frankly didn't feel like digging into linking errors.
Neither of the above issues appeared when I initially installed this in my WSL instance, but I suspect that this is because I already had the required installations as I am a developer. They did, however, appear within a minimal Ubuntu 22.04 Docker image, and a Ubuntu Server 22.04 virtual machine.
Credit to the original comment: r-lib/systemfonts#35 (comment)