[陽明] 安裝 R ape 套件,剛開始的錯誤訊息是找不到 stdio.h, stdlib.h, math.h 這些,所以必須裝 libc6-dev 才會有這些檔案。另外,編譯過程中有遇到一些錯誤(找不到 -lgfortran 跟 -llapack),是因為相依 gfortran 跟 liblapack-dev。
libc6-dev: /usr/include/bits/stdio.h
libc6-dev: /usr/include/stdlib.h
libc6-dev: /usr/include/math.h
liblapack-dev: /usr/lib/liblapack.a
gfortran-4.3: /usr/lib/gcc/x86_64-linux-gnu/4.3/libgfortran.a
# apt-get install libc6-dev gfortran liblapack-dev
# wget http://cran.r-project.org/src/contrib/gee_4.13-13.tar.gz
# R CMD INSTALL gee_4.13-13.tar.gz
# wget http://cran.r-project.org/src/contrib/nlme_3.1-90.tar.gz
# R CMD INSTALL nlme_3.1-90.tar.gz
# wget http://cran.r-project.org/src/contrib/lattice_0.17-22.tar.gz
# R CMD INSTALL lattice_0.17-22.tar.gz
# wget http://cran.r-project.org/src/contrib/ape_2.3.tar.gz
# R CMD INSTALL ape_2.3.tar.gz