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