1. R Source Download
https://cran.r-project.org/ 접속하여 Softwore/R Source를 다운로드한다.
2. Source Compile
./configure --prefix=<설치하고자 하는 디렉토리> --with-x=no
zlib / bzip2 / xz / pcre / curl
- 환경 변수
설치된 라이브러리의 실행파일과 lib 위치 , include 위치를 선언한다
export PATH=$HOME/apps/curl/bin:$HOME/apps/bzip2/bin:$HOME/apps/pcre/bin:$HOME/apps/xz/bin:$HOME/apps/nodejs/bin:$HOME/depot_tools:$HOME/.local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/apps/zlib/lib:$HOME/apps/bzip2/lib:$HOME/apps/xz/lib:$HOME/apps/pcre/lib:$HOME/apps/curl/lib
export LDFLAGS="-L$HOME/apps/zlib/lib -L$HOME/apps/bzip2/lib -L$HOME/apps/xz/lib -L$HOME/apps/pcre/lib -L$HOME/apps/curl/lib"
export CFLAGS="-I$HOME/apps/zlib/include -I/$HOME/apps/bzip2/include -I/$HOME/apps/xz/include -I$HOME/apps/pcre/include -I/$HOME/apps/curl/include"
가. No F77 compiler found
=> yum install compat-gcc*
yum install gcc-gfortran
configure : error : --with-readline=yes(default) and headers/libs are not available
=> yum install readline-devel
나. checking whether zlib support suffices... configure: error: zlib library and headers are required
tar xvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=$HOME/Programme/zlib-1.2.11
make && make install
tar xvf bzip2-1.0.6.tar.gz
cd bzip2-1.0.6
$ make -f Makefile-libbz2_so
$ make clean
$ make
$ make -n install PREFIX=$HOME/apps/bzip
$ make install PREFIX=$HOME/apps/bzip
tar zxvf xz-5.2.3.tar.gz
cd xz-5.2.3
./configure --prefix=$HOME/Programme/xz
make -j4
make install
tar zxvf pcre-8.38.tar.gz
cd pcre-8.38
./configure --prefix=$HOME/Programme/pcre-8.40 –enable-unicode-properties –enable-pcre16 –enable-pcre32 –enable-pcregrep-libz –enable-pcregrep-libbz2 –enable-pcretest-libreadline –enable-static
make -j4 && make install
마. configure: error: libcurl >= 7.22.0 library and headers are required with support for https
tar zxvf curl-7.60.0.tar.gz
cd curl-7.60.0
./configure --prefix=$HOME/Programme/curl-7.60.0 --with-ssl
make -j4 && make install
바. WARNING: you cannot build info or HTML versions of the R manuals
tar zxvf texinfo-6.5.tar.gz
cd texinfo-6.5
./configure --prefix=$HOME/Programme/texinfo-6.5
make && make install
사. you cannot build PDF versions of vignettes and help pages
tar zxvf install-tl-unx.tar.gz
cd install-tl-20180627
./install-tl
> I
PATH 에 ./texlive/2018/bin/x86_64-linux 추가
아. configure: WARNING: neither inconsolata.sty nor zi4.sty found: PDF vignettes and package manuals will not be rendered optimally
=> 무시
./configure 명령어 수행
make
=> 이것저것 했는데 연관 분석에서 오류남..
그냥 yum install R 하자...ㅠㅠ
만약 패키지가 없다고 나오면
yum install epel-release 를 수행후 다시 수행한다.
댓글