繁体   English   中英

e1071安装R 3.1.2

[英]e1071 install R 3.1.2

我正在尝试在R 3.1.2中安装e1071软件包。 我的系统是linux 3.10.0-123.13.1.el7.x86_64。 我尝试使用install.packages(“ e1071”,type =“ source”)从源代码进行安装,但没有帮助。 有人有建议吗?

* 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

尝试

sudo yum install R-devel

要么

sudo apt-get install R-devel

第一

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM