본문 바로가기

DEV

configure: error: --with-readline=yes (default) and headers/libs are not available (R 설치)

R 설치중 에러

configure: error: --with-readline=yes (default) and headers/libs are not available


--with-x=no to the configure script, or install the X devel package for your linux flavour


./configure --with-x=no


위와 같이 실행하여도 같은 에러 발생, X 패키지 설치 진행

yum list libX11*

yum install libX11*

yum install xorg*


다시 설치 진행, 같은 에러 발생 OTL...


yum install readline*

설치후 재실행

./configure

성공!


R is now configured for x86_64-unknown-linux-gnu


  Source directory:          .

  Installation directory:    /usr/local


  C compiler:                gcc -std=gnu99  -g -O2

  Fortran 77 compiler:       gfortran  -g -O2


  C++ compiler:              g++  -g -O2

  Fortran 90/95 compiler:    gfortran -g -O2

  Obj-C compiler:             


  Interfaces supported:      X11

  External libraries:        readline

  Additional capabilities:   NLS

  Options enabled:           shared BLAS, R profiling


  Recommended packages:      yes


configure: WARNING: you cannot build info or HTML versions of the R manuals

configure: WARNING: you cannot build PDF versions of the R manuals

configure: WARNING: you cannot build PDF versions of vignettes and help pages