BI/R programming

[Mac] gdtools R package 설치 시 에러가 났을 때

Tero23 2019. 3. 4. 05:02



install.packages("gdtools")

설치시 다음과 같이 'ft2build' 관련 에러가 난다면,  

fatal error: 'ft2build.h'

      file not found

#include <ft2build.h>

         ^~~~~~~~~~~~

1 error generated.

make: *** [CairoContext.o] Error 1



1) 

brew install cairo 


2)

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

brew install pkg-config


위와 같이 터미널에서 pkd-config 를 인스톨 한 뒤, 


install.packages("gdtools")




다시 인스톨을 시도 후 성공할 수 있다.






참고 : http://macappstore.org/pkg-config/

반응형