From: John Stone (
Date: Tue Apr 04 2006 - 11:28:38 CDT

  Indeed, my understanding from browsing the web is that the default
FC5 SELinux settings break essentially everything that uses plugins,
including web browsers, and VMD, as setup out of the box.

If you don't want to disable SELinux entirely, I suggest you try
running this command on the VMD installation directory (Assumes the
VMD directory is local to the machine... If you're mounting over NFS,
this may or may not work. If not, then you may have to disable SELinux
as described below)
  cd /usr/local/lib/vmd
  find . -name \*.so -exec chcon -t texrel_shlib_t {} \;

If you'd rather just turn SELinux off, try setting the line:
in your /etc/sysconfig/selinux and then reboot the machine.

One of those two options ought to solve the problem in the short term.

Redhat has modified the C/C++ compilers and linkers shipping with
FC5 to produce executables and shared libraries that conform to the
SELinux requirements. Programs (like VMD) that are compiled on an older
or different Linux version can't use these new flags, so the result is that
SELinux blocks them until you make an exception for them.
For VMD 1.8.4, I'm going to ship Linux executables built the normal way.
I'll be looking into using the new SELinux related "-fpie" flags in builds
of future versions of VMD, which should hopefully eliminate this SELinux
relocatable .so file fiasco.

  John Stone

On Tue, Apr 04, 2006 at 09:04:43AM +0200, Eugen Leitl wrote:
> On Tue, Apr 04, 2006 at 12:18:22AM -0500, snoze pa wrote:
> > after upgrading to Fedora core 5, I am getting following error message
> > in VMD. Any idea about this error message
> >
> > package require solvate
> > couldn't load file
> > "/usr/local/lib/vmd/plugins/LINUX/tcl/psfgen1.4/":
> > /usr/local/lib/vmd/plugins/LINUX/tcl/psfgen1.4/ cannot
> > restore segment prot after reloc: Permission denied
> Try turning SELinux off, and rebooting.
> --
> Eugen* Leitl leitl
> ______________________________________________________________
> ICBM: 48.07100, 11.36820
> 8B29F6BE: 099D 78BA 2FD3 B014 B08A 7779 75B0 2443 8B29 F6BE

NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email:                 Phone: 217-244-3349
  WWW:      Fax: 217-244-6078