【发布时间】:2015-11-25 06:02:58
【问题描述】:
S.O.: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'”
我该如何解决这个问题?
【问题讨论】:
-
你有什么问题?
-
您需要在系统中安装
jags(Just Another Gibbs Sampler for Bayesian MCMC simulation)。在 Ubuntu 14.04 上,sudo apt-get install jags应该可以工作。