首先:centos 下安装jags
下载http://download.opensuse.org/repositories/home:/cornell_vrdc/CentOS_7/x86_64/jags4-4.3.0-67.1.x86_64.rpm
sudo rpm -i jags4-4.3.0-67.1.x86_64.rpm
下载http://download.opensuse.org/repositories/home:/cornell_vrdc/CentOS_7/x86_64/jags4-devel-4.3.0-67.1.x86_64.rpm
wget http://download.opensuse.org/repositories/home:/cornell_vrdc/CentOS_7/x86_64/jags4-devel-4.3.0-67.1.x86_64.rpm
sudo rpm -i jags4-devel-4.3.0-67.1.x86_64.rpm
打开R
install.packages('rjags')