TL;DR:
système debian/ubuntu/mint
sudo apt install r-base-dev libcurl4-openssl-dev libssl-dev libxml2-dev libnlopt-dev libfontconfig1-dev libcairo2-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libudunits2-dev libharfbuzz-dev libfribidi-dev
système Fedora CentOS
yum install libcurl-devel openssl-devel libxml2-devel harfbuzz-devel freetype-devel libpng-devel udunits2-devel libicu-devel R-devel fribidi-devel
Il arrive aussi que à l’install, R ne trouve pas une librairie donnée, même si elle est déjà installée (dans DATAFAST par exemple). On peut trouver la librairie en question en tapant e.g. pour la librairie libicui18n.so.58
locate libicui18n.so.58
/DATA_FAST/software/anaconda3/lib/libicui18n.so.58
/DATA_FAST/software/anaconda3/lib/libicui18n.so.58.2
/DATA_FAST/software/anaconda3/pkgs/icu-58.2-he6710b0_3/lib/libicui18n.so.58
/DATA_FAST/software/anaconda3/pkgs/icu-58.2-he6710b0_3/lib/libicui18n.so.58.2
export LD_LIBRARY_PATH=/DATA_FAST/software/anaconda3/lib/
redémarrer R
ressayer d’installer le package.
Ressources utiles :
https://rviews.rstudio.com/2017/04/19/r-for-enterprise-understanding-r-s-startup/
https://github.com/vubiostat/Renv
Pour les installs de R sur postes linux
...
Code Block |
---|
Configuration failed because libxml-2.0 was not found. Try installing:
* deb: libxml2-dev (Debian, Ubuntu, etc)
* rpm: libxml2-devel (Fedora, CentOS, RHEL)
* csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
|
Code Block |
---|
Configuration failed to find the harfbuzz freetype2 fribidi library. Try installing:
* deb: libharfbuzz-dev libfribidi-dev (Debian, Ubuntu, etc)
* rpm: harfbuzz-devel fribidi-devel (Fedora, EPEL)
* csw: libharfbuzz_dev libfribidi_dev (Solaris)
* brew: harfbuzz fribidi (OSX)
If harfbuzz freetype2 fribidi is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a harfbuzz freetype2 fribidi.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' |
Code Block |
---|
Configuration failed to find one of freetype2 libpng libtiff-4 libjpeg. Try installing: * deb: libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev (Debian, Ubuntu, etc) * rpm: freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel (Fedora, CentOS, RHEL) * csw: libfreetype_dev libpng16_dev libtiff_dev libjpeg_dev (Solaris) If freetype2 libpng libtiff-4 libjpeg is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a freetype2 libpng libtiff-4 libjpeg.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' |
Code Block |
---|
Configuration failed because libudunits2.so was not found. Try installing:
* deb: libudunits2-dev (Debian, Ubuntu, ...)
* rpm: udunits2-devel (Fedora, EPEL, ...)
* brew: udunits (OSX)
If udunits2 is already installed in a non-standard location, use:
--configure-args='--with-udunits2-lib=/usr/local/lib'
if the library was not found, and/or:
--configure-args='--with-udunits2-include=/usr/include/udunits2'
if the header was not found, replacing paths with appropriate values.
You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually. |
Code Block |
---|
Configuration failed to find the harfbuzz freetype2 fribidi library. Try installing:
* deb: libharfbuzz-dev libfribidi-dev (Debian, Ubuntu, etc)
* rpm: harfbuzz-devel fribidi-devel (Fedora, EPEL)
* csw: libharfbuzz_dev libfribidi_dev (Solaris)
* brew: harfbuzz fribidi (OSX)
If harfbuzz freetype2 fribidi is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a harfbuzz freetype2 fribidi.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' |
Utile aussi (pour package afex):
sudo apt install libnlopt-dev
pour flextable
sudo apt install libfontconfig1-dev libcairo2-dev