'Installing rjags on Fedora 33

I'm trying to install rjags on a Fedora 33 system running R 4.0.3. I've installed JAGS 4.3.0 from source and can run the software from the command line, but when I try to install the package in R, I get this error:

checking version of JAGS library... link error
configure: error: Runtime link error: See the INSTALL file for help
ERROR: configuration failed for package ‘rjags’

I've followed this tutorial for building an installing on Fedora, and have all the expected directories under /usr/local/lib64, but get the same errors.

I've also followed this tutorial which specifies the various file locations - also get the same errors.

Finally, I found this which gives some options under section 3, but none of those worked.



Solution 1:[1]

I stumbled across a solution here that seems to work: https://github.com/cran/rjags/blob/master/INSTALL

Installing rjags with the argument below seems to have worked:

> install.packages("rjags", configure.args="--enable-rpath")

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Matt Tyers