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

Unable to install cli fatal error: cli/progress.h: No such file or directory #753

Closed
EdBreen opened this issue Mar 17, 2025 · 3 comments
Closed

Comments

@EdBreen
Copy link

EdBreen commented Mar 17, 2025

platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 1.2
year 2021
month 11
day 01
svn rev 81115
language R
version.string R version 4.1.2 (2021-11-01)
nickname Bird Hippie

Platform ubuntu.

gcc -I"/usr/share/R/include" -DNDEBUG -O3 -fopenmp -fpic -c inst.c -o inst.o
inst.c:2:10: fatal error: cli/progress.h: No such file or directory
2 | #include <cli/progress.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:168: inst.o] Error 1
ERROR: compilation failed for package ‘cli’

  • removing ‘/home/edb/R/x86_64-pc-linux-gnu-library/4.1/cli’

The downloaded source packages are in
‘/tmp/Rtmpkx7SmG/downloaded_packages’
Warning message:
In install.packages("cli") :
installation of package ‘cli’ had non-zero exit status

@gaborcsardi
Copy link
Member

Most likely you overwrite PKG_CFLAGS in your ~/.Makevars file. If you want to add extra compilation flags use PKG_CFLAGS += ... instead of PKG_CFLAGS = ....

@EdBreen
Copy link
Author

EdBreen commented Mar 17, 2025

Fantastic it worked. Should I be concerned about PKG_LIBS also?

@gaborcsardi
Copy link
Member

IDK. On most Linux distros you do not need anything in ~/.R/Makevars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants