- 참고 : https://github.com/r-lib/textshaping/issues/21
install.packages("devtools")
# --------------------------- [ANTICONF] --------------------------------
# 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=...'
# -------------------------- [ERROR MESSAGE] ---------------------------
# <stdin>:1:19: fatal error: hb-ft.h: No such file or directory
# compilation terminated.
# --------------------------------------------------------------------
에러 메세지를 보면 freetype2 libpng libtiff-4 의 Configuration이 실패했다고 하면서 각 Linux에 따른 설치해야할 패키지를 말해주고 있다.
CentOS의 경우 rpm에 해당함으로 harfbuzz-devel, fribidi-devel를 설치하면 된다
sudo yum install harfbuzz-devel fribidi-devel
이후 한번더 설치를 시도해 보았다.
install.packages("devtools")
# -----------------------------[ ANTICONF ]-------------------------------
# Configuration failed to find one of freetype2 libpng libtiff-4. 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 is already installed, check that 'pkg-config' is in your
# PATH and PKG_CONFIG_PATH contains a freetype2 libpng libtiff-4.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=...'
# -------------------------- [ERROR MESSAGE] ---------------------------
# <stdin>:1:22: fatal error: ft2build.h: No such file or directory
# compilation terminated.
# --------------------------------------------------------------------
여기에선 다시 freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel 를 설치하라는 에러 메세지를 보여준다
그럼 다시 한번 설치해보자 .
sudo yum install freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel
이제 다시! 설치를 해보자 .
install.packages("devtools")
# *** copying figures
# ** building package indices
# ** installing vignettes
# ** testing if installed package can be loaded from temporary location
# ** testing if installed package can be loaded from final location
# ** testing if installed package keeps a record of temporary installation path
# * DONE (devtools)
#
# The downloaded source packages are in
# ‘/tmp/RtmpJHMUOK/downloaded_packages’
예히! 해결되었다.
역시 에러메세지를 잘 살펴보자.
리눅스 어렵긴 하지만 구글신만 있다면 못할 것이 없다.아마도..
반응형