Installing OpenMx in Fedora distribution

No replies
Mike Cheung's picture
Offline
Joined: 10/08/2009

I have observed this for a while in two 32-bit and one 64-bit computers with Fedora 13.

When I installed OpenMx inside R with a root account by source('http://openmx.psyc.virginia.edu/getOpenMx.R'), I got the following errors:

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/usr/lib/R/library/OpenMx/libs/OpenMx.so':
/usr/lib/R/library/OpenMx/libs/OpenMx.so: cannot restore segment prot after reloc: Permission denied
ERROR: loading failed
* removing ‘/usr/lib/R/library/OpenMx’

The downloaded packages are in
‘/tmp/RtmpKejk7L/downloaded_packages’
Updating HTML index of packages in '.Library'
Warning message:
In install.packages(pkgs = c("OpenMx"), repos = repos) :
installation of package 'OpenMx' had non-zero exit status

When I tried "R CMD INSTALL OpenMx_0.9.1-1421.tar.gz" with the root account, I got:

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/usr/lib/R/library/OpenMx/libs/OpenMx.so':
/usr/lib/R/library/OpenMx/libs/OpenMx.so: cannot restore segment prot after reloc: Permission denied
ERROR: loading failed
* removing ‘/usr/lib/R/library/OpenMx’

It appears that this error is related to Fedora's SELinux. The workaround solution I found is to install OpenMx without testing whether it can be loaded.
R CMD INSTALL --no-test-load OpenMx_0.9.1-1421.tar.gz

Then I used the following command with the root account:
chcon -t textrel_shlib_t '/usr/lib/R/library/OpenMx/libs/OpenMx.so'