2014-12-21 3 views
2

R 3.1.2에 e1071 패키지를 설치하려고합니다. 내 시스템은 Linux 3.10.0-123.13.1.el7.x86_64입니다. install.packages ("e1071", type = "source")를 사용하여 소스에서 설치를 시도했지만 도움이되지 않았습니다. 누구 제안이 있습니까?e1071 설치 R 3.1.2

* installing *source* package 'e1071' ... 
** package 'e1071' successfully unpacked and MD5 sums checked 
checking for C++ compiler default output file name... a.out 
checking whether the C++ compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts -g... yes 
** libs 
gcc -std=gnu99 -I/opt/local/stow/R-3.1.2/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -c Rsvm.c -o Rsvm.o 
gcc -std=gnu99 -I/opt/local/stow/R-3.1.2/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -c cmeans.c -o cmeans.o 
gcc -std=gnu99 -I/opt/local/stow/R-3.1.2/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -c cshell.c -o cshell.o 
gcc -std=gnu99 -I/opt/local/stow/R-3.1.2/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -c floyd.c -o floyd.o 
g++ -I/opt/local/stow/R-3.1.2/lib64/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -c svm.cpp -o svm.o 
In file included from /usr/include/stdio.h:934:0, 
       from /opt/local/stow/R-3.1.2/lib64/R/include/R.h:29, 
       from svm.cpp:1: 
/usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)': 
/usr/include/bits/stdio.h:117:52: error: '__getdelim' was not declared in this scope 
make: *** [svm.o] Error 1 
ERROR: compilation failed for package 'e1071' 

Warning message: 
In install.packages("e1071", dep = T) : 
    installation of package 'e1071' had non-zero exit status 
+2

이 왜 소스에서 설치하는 첫번째

sudo apt-get install R-devel 

? 데자뷰. 'install.packages ("e1071")'을 시도 했습니까? –

답변

0

시도

sudo yum install R-devel 

또는