Cant install R package install.packages("tidyverse")


2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffat-lto-objects  -c caches.cpp -o caches.o
In file included from caches.h:7,
                 from caches.cpp:1:
ft_cache.h:9:10: fatal error: ft2build.h: No such file or directory
    9 | #include <ft2build.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib64/R/etc/Makeconf:200: caches.o] Error 1

any ideas?

Looks like you’re missing ft2build.h. That file is included in the freetype2 package.

I found the package using

pacman -F ft2build.h

freetype2 is installed

making sudo R and then install.packages(“tidyverse”) worked, duh, dont ask why cause i dont know

** testing if installed package keeps a record of temporary installation path
* DONE (tidyverse)

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.