经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 程序设计 » R语言 » 查看文章
快速链接bioconductor,以及安装“XML”
来源:cnblogs  作者:忆昔烟雨情  时间:2018/9/25 20:20:07  对本文有异议
  1. 1 options(useHTTPS=FALSE, BioC_mirror="http://bioconductor.org")
  2. 2
  3. 3
  4. 4 source("http://bioconductor.org/biocLite.R")

 

  1. install.packages("XML")
  2.  
  3. trying URL 'https://cloud.r-project.org/src/contrib/XML_3.98-1.4.tar.gz'
  4. Content type 'application/x-gzip' length 1599214 bytes (1.5 MB)
  5. ==================================================
  6. downloaded 1.5 MB
  7.  
  8. * installing *source* package XML ...
  9. ** package XML successfully unpacked and MD5 sums checked
  10. checking for gcc... gcc
  11. checking for C compiler default output file name... a.out
  12. checking whether the C compiler works... yes
  13. checking whether we are cross compiling... no
  14. checking for suffix of executables...
  15. checking for suffix of object files... o
  16. checking whether we are using the GNU C compiler... yes
  17. checking whether gcc accepts -g... yes
  18. checking for gcc option to accept ISO C89... none needed
  19. checking how to run the C preprocessor... gcc -E
  20. checking for sed... /usr/local/Library/ENV/4.3/sed
  21. checking for pkg-config... /usr/local/bin/pkg-config
  22. checking for xml2-config... /Users/richiethomas/anaconda/bin/xml2-config
  23. USE_XML2 = yes
  24. SED_EXTENDED_ARG: -E
  25. Minor 9, Patch 2 for 2.9.2
  26. Located parser file -I/Users/richiethomas/anaconda/include/libxml2/parser.h
  27. Checking for 1.8: -I/Users/richiethomas/anaconda/include/libxml2
  28. Using libxml2.*
  29. checking for gzopen in -lz... yes
  30. checking for xmlParseFile in -lxml2... yes
  31. You are trying to use a version 2.* edition of libxml
  32. but an incompatible library. The header files and library seem to be
  33. mismatched. If you have specified LIBXML_INCDIR, make certain to also
  34. specify an appropriate LIBXML_LIBDIR if the libxml2 library is not in the default
  35. directories.
  36. ERROR: configuration failed for package XML
  37. * removing ‘/usr/local/lib/R/3.2/site-library/XML
  38.  
  39. The downloaded source packages are in
  40. ‘/private/var/folders/jy/0cwn40p951xc7f1480z3sxzm0000gn/T/RtmpvWMrkH/downloaded_packages
  41. Warning message:
  42. In install.packages("XML") :
  43. installation of package XML had non-zero exit status

  出现上述报错,的快速解决方法如下

  1. 1 conda install -c r r-xml

 

 

若继续出现下面错误:

/bin/sh: /root/anaconda2/bin/x86_64-conda_cos6-linux-gnu-gcc: No such file or directory

  1. 1 conda install gxx_linux-64
  2. 2
  3. 3 provides x86_64-conda_cos6-linux-gnu-c++
  1. 1 conda install gcc_linux-64
  2. 2 conda install gxx_linux-64
  3. 3
  4. 4 conda install gfortran_linux-64
  5. 5 conda install -c tsnyder gfortran_linux-cos6-x86_64

 

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号