나의 충고
su
apt-get purge r-base r-base-dev
exit
wget https://cran.r-project.org/src/base/R-3/R-3.3.1.tar.gz
tar -zxvf R-3.3.1.tar.gz
su
apt-get install libcurl4-openssl-dev # otherwise, error: configure: error: libcurl >= 7.28.0 library and headers are required with support for https in ./configure
./configure
make
...
그 이후에는 ./configure
모든 것이 잘 작동하고 경고/오류가 없습니다.
R is now configured for x86_64-pc-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
C++11 compiler: g++ -std=c++11 -g -O2
Fortran 90/95 compiler: gfortran -g -O2
Obj-C compiler:
Interfaces supported: X11
External libraries: readline, curl
Additional capabilities: PNG, JPEG, NLS
Options enabled: shared BLAS, R profiling
Capabilities skipped: TIFF, cairo, ICU
Options not enabled: memory profiling
Recommended packages: yes
그러나 make
SPSS 통계를 위해 Open-JDK Java가 필요하기 때문에 루트 ID가 분명히 실패했습니다.
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (mgcv)
make[2]: Leaving directory '/home/masi/Downloads/R3.3/R-3.3.1/src/library/Recommended'
make[1]: Leaving directory '/home/masi/Downloads/R3.3/R-3.3.1/src/library/Recommended'
make[1]: Entering directory '/home/masi/Downloads/R3.3/R-3.3.1/src/library'
building/updating vignettes for package 'grid' ...
building/updating vignettes for package 'parallel' ...
building/updating vignettes for package 'utils' ...
make[1]: Leaving directory '/home/masi/Downloads/R3.3/R-3.3.1/src/library'
make[1]: Entering directory '/home/masi/Downloads/R3.3/R-3.3.1'
configuring Java ...
Java interpreter : /usr/bin/java
Java version : 1.8.0_102
Java home path : /usr/lib/jvm/jre-8-oracle-x64
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
trying to compile and link a JNI program
detected JNI cpp flags :
detected JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -ljvm
make[2]: Entering directory '/tmp/Rjavareconf.gPqbgX'
gcc -std=gnu99 -I/home/masi/Downloads/R3.3/R-3.3.1/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -c conftest.c -o conftest.o
conftest.c:1:17: fatal error: jni.h: No such file or directory
#include <jni.h>
^
compilation terminated.
/home/masi/Downloads/R3.3/R-3.3.1/etc/Makeconf:132: recipe for target 'conftest.o' failed
make[2]: *** [conftest.o] Error 1
make[2]: Leaving directory '/tmp/Rjavareconf.gPqbgX'
Unable to compile a JNI program
JAVA_HOME : /usr/lib/jvm/jre-8-oracle-x64
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /home/masi/Downloads/R3.3/R-3.3.1
Done.
make[1]: Leaving directory '/home/masi/Downloads/R3.3/R-3.3.1'
내 최종 솔루션은 JdeBP의 답변을 기반으로 했습니다 - 성공
su
apt-get install -t jessie-backports r-base r-base-dev
운영 체제: Debian 8.5 64비트
Linux 커널: 백포트된
Asus Zenbook UX303UA 4.6
답변1
실제로 데비안 패키지 페이지 r-base
(예를 들어)는 여기에 있습니다:
"제시"를 추가하세요.백포트” 귀하는 sources.list
최소한 APT를 통해 R 버전 3.3.1로 업그레이드할 수 있습니다.