VMD Linux Installation Notes:

  • Linux graphics driver bugs
    VMD users should be aware that specific versions of ATI, nVidia, and other graphics drivers have serious problems and that you'll need to install a known-stable driver version in order to get good results with VMD. If you encounter problems, please report them to nVidia and ATI on their respective web sites.
    ATI Linux driver support site
    nVidia Linux driver support site
  • If you have problems running VMD (i.e. console window briefly pops up and then immediately disappears again) it is usually caused by one of two problems, either a graphics driver problem, or a C++ library problem. The easy way to determine which is the cause, is to run VMD in text mode with the command: vmd -dispdev text If VMD fails to run in text mode, this usually indicates a C++ (or other) dynamic link library problem, which is typically solved as described in this list below by installing missing libraries.
  • If VMD runs in text mode, but fails to start in graphics mode, the next thing to do is to run the Linux command glxinfo, which will access OpenGL and report on the installed hardware, software, and all supported video modes and extensions. If there are fundamental problems with the OpenGL installation the glxinfo output may contain errors or warnings. Generally speaking, if glxinfo reports serious problems, then there's no way VMD or other graphics programs can run correctly until they are solved. In a few rare cases, users may encounter bugs in their OpenGL drivers which only manifest themselves when VMD is actually being used, causing crashes or garbled output. This kind of problem can be debugged by running VMD with the command: vmd -debug This will start a debugging session on VMD. When the debugger is ready and presents a prompt, simply type the command: run At this point, you can run VMD as usual until the crashing or other problems occur again. If the program terminates unexpectedly, type this command in the debugger, and email the output to the VMD development team for analysis: where This will tell the VMD developers what VMD was doing when the crash occured, and can be very helpful in localizing bugs in graphics drivers and related software, and even in VMD itself.
  • With Fedora Core 5, and other recent distributions, users of the 32-bit VMD binary may have to install an additional libstdc++ backward-compatibility package as the 32-bit versions of VMD are compiled on an old Redhat 9 machine, which allows individuals with similarly old Linux installations to run these binaries. With more recent distributions, one may have to add a missing libstdc++.so.5 shared library. On Fedora Core 5, this is done with the command:
      yum install compat-libstdc++-33 
  • With Fedora Core 5, and other recent distributions, the SELinux may cause problems for dynamically loaded VMD plugins. If you don't want to disable SELinux, 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 this line in your /etc/sysconfig/selinux and then reboot the machine:
      SELINUX=disabled
  • In order to use the built-in Python interpreter in VMD, you'll need to install the matching Python library distribution.
  • The XFree86 docs cover various info on checking your installation to make sure that the OpenGL/DRI support is working correctly. See their docs (www.xfree86.org) for more info.
  • In order to run VMD, you may have to have a Mesa 4.x RPM installed on your system. This is sometimes needed in order to get the GLU libraries on your system, which are needed by VMD. For Mesa, go to: www.mesa3d.org
  • In order to achieve hardware accelerated 3-D rendering, your video board must have an XFree 4.x "DRI" type video driver. Once you have an appropriate driver, you may need to set the board it to a particular video mode in order to enable the hardware acceleration features. The instructions that come with the video driver should mention what modes are fully accelerated.
  • A "Howto" on setting up stereo for VMD with NVidia cards