错误:包'seqminer'

时间:2017-03-14 02:03:40

标签: r bioinformatics

我在安装' seqminer' 如果有人认识到这个问题或通过这个问题,请帮助我。

  • gcc(Ubuntu / Linaro 4.6.3-1ubuntu5)4.6.3
  • R版本3.2.5(2016-04-14) - "非常非常安全的菜肴"
R_CPP_interface.cpp: In function ‘SEXPREC* getListElement(SEXP, const char*)’:
R_CPP_interface.cpp:37:8: error: ‘strcmp’ is not a member of ‘std’
R_CPP_interface.cpp:37:8: note: suggested alternative:
/usr/include/string.h:143:12: note:   ‘strcmp’
make: *** [R_CPP_interface.o] error 1
ERROR: compilation failed for package ‘seqminer’
* removing ‘/usr/local/lib/R/site-library/seqminer’
* restoring previous ‘/usr/local/lib/R/site-library/seqminer’

1 个答案:

答案 0 :(得分:2)

该错误似乎与此问题有关:

strcmp et. al. not a member of std?

基于那里的答案,可能的解决方案可能包括:

  • 安装并使用早期版本的gcc(< = 4.1)
  • 下载源代码,修改R_CPP_interface.cpp以插入#include <cstring>,然后从本地来源安装

我还会在project Github repo提交问题。