infercnv需要的R包rjags的安装

error:

  • installing source package 'rjags' ...
    ** package 'rjags' successfully unpacked and MD5 sums checked
    ** using staged installation
    checking for pkg-config... /usr/bin/pkg-config
    configure: Setting compile and link flags according to pkg-config
    configure: Compile flags are -I/usr/include/JAGS
    configure: Link flags are -ljags
    checking for x86_64-conda-linux-gnu-gcc... x86_64-conda-linux-gnu-cc
    checking whether we are using the GNU C compiler... no
    checking whether x86_64-conda-linux-gnu-cc accepts -g... no
    checking for x86_64-conda-linux-gnu-cc option to accept ISO C89... unsupported
    checking for jags_version in -ljags... no
    configure: error: "cannot link to JAGS library in /usr/lib64."
    ERROR: configuration failed for package 'rjags'
  • removing '/home/jiangchen/miniconda2/envs/r4.0/lib/R/library/rjags'

The downloaded source packages are in
'/tmp/RtmpUL863n/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("rjags") :
installation of package 'rjags' had non-zero exit status

解决办法:
conda install pkg-config jags

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容