SO:Linux Ubuntu 14.04 LTS R:R 版本 3.2.1 (2015-06-18) --“世界著名宇航员”版权所有 (C) 2015 统计计算平台 R 基金会:i686-pc-linux-gnu (32 -少量)
当我尝试安装包rjags
时,我收到以下致命错误:
install.packages("rjags")
Installing package into ‘/home/marco/.rkward/library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://mirrors.softliste.de/cran/src/contrib/rjags_3-15.tar.gz'
Content type 'application/x-gzip' length 66879 bytes (65 KB)
==================================================
downloaded 65 KB
* installing *source* package ‘rjags’ ...
** package ‘rjags’ successfully unpacked and MD5 sums checked
checking for prefix by checking for jags... no
configure: error: "Location of JAGS headers not defined. Use configure arg '--with-jags-include' or environment variable 'JAGS_INCLUDE'"
ERROR: configuration failed for package ‘rjags’
* removing ‘/home/marco/.rkward/library/rjags’
The downloaded source packages are in
‘/tmp/RtmpditLat/downloaded_packages’
Warning message:
In install.packages("rjags") :
installation of package ‘rjags’ had non-zero exit status
显然,第一条错误消息是
配置:错误:“未定义 JAGS 标头的位置。使用配置参数 '--with-jags-include' 或环境变量 'JAGS_INCLUDE'”
我该如何解决这个问题?