首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >e1071安装版本3.1.2

e1071安装版本3.1.2
EN

Stack Overflow用户
提问于 2014-12-22 06:59:29
回答 1查看 651关注 0票数 2

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

代码语言:javascript
复制
* 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
EN

回答 1

Stack Overflow用户

发布于 2014-12-25 14:26:12

试一试

代码语言:javascript
复制
sudo yum install R-devel

代码语言:javascript
复制
sudo apt-get install R-devel

第一

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27594661

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档