Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the main program installation directory.
    cd /path/to/VMD
  3. Decompress the installation package.
    tar -xvf vmd-1.9.4a55.src.tar.gz
  4. Go to the directory generated after the decompression.
    cd vmd-1.9.4a55
  5. Install FLTK.
    yum install fltk fltk-devel
  6. Install ACTC.
    1. Create an ACTC directory and switch to the directory.
      mkdir -p /path/to/VMD/vmd-1.9.4a55/lib/actc
      cd /path/to/VMD/vmd-1.9.4a55/lib/actc
    2. Download the ACTC installation package.

      https://sourceforge.net/projects/actc/

    3. Decompress the installation package.
      tar xvf actc-1.1.tar.gz
    4. Compile ACTC.
      mv actc-1.1/* ./
      make

      If the command output contains libactc.a, the compilation is successful. For additional information, see README.

  7. Install Stride.
    1. Go to the stride directory.
      cd /path/to/VMD/vmd-1.9.4a55/lib/stride
    2. Download the Stride installation package.

      http://webclu.bio.wzw.tum.de/stride/stride.tar.gz

    3. Decompress the installation package.
      tar xvf stride.tar.gz
    4. Install Stride.
      make
    5. Create a soft link.
      ln -s /path/to/VMD/vmd-1.9.4a55/lib/stride/stride /path/to/VMD/vmd-1.9.4a55/lib/stride/stride_LINUXARM64
  8. Install Surf.
    1. Go to the Surf directory.
      cd /path/to/VMD/vmd-1.9.4a55/lib/surf
    2. Decompress the installation package.
      tar xvf surf.tar.Z
    3. Install Surf.
      yum install imake
      make depend
      make surf
    4. Create a soft link.
      ln -s /path/to/VMD/vmd-1.9.4a55/lib/stride/surf /path/to/VMD/vmd-1.9.4a55/lib/stride/surf_LINUXARM64
  9. Install VRPN.
    1. Create a VRPN directory and switch to the directory.
      mkdir -p /path/to/VMD/vmd-1.9.4a55/lib/vrpn
      cd /path/to/VMD/vmd-1.9.4a55/lib/vrpn
    2. Download the VRPN installation package.

      https://github.com/vrpn/vrpn

    3. Decompress the installation package.
      unzip vrpn-master.zip
    4. Install VRPN.
      mv vrpn-master/* ./
      mkdir build
      cd build
      yum install cmake libarchive
      cmake ../ -DCMAKE_INSTAL_PREFIX=/path/to/vmd/vmd-1.9.4a55/lib/vrpn/
      make && make install
  10. Install Tachyon.
    1. Go to the Tachyon directory.
      cd /path/to/VMD/vmd-1.9.4a55/lib/tachyon
    2. Download the Tachyon installation package.

      https://ftp.sudhip.com/archlinux/other/community/tachyon/tachyon-0.99b6.tar.gz

    3. Decompress the installation package.
      tar xvf tachyon-0.99b6.tar.gz
    4. Go to the unix directory of the installation package.
      cd tachyon/unix
    5. Modify the Make-config file.
      1. Open the Make-config file.
        vi Make-config
      2. Press i to enter the edit mode and comment out the JPEG and PNG lines.

        Before the modification:

        169 USEJPEG=
        170 JPEGINC=
        171 JPEGLIB=
        ...
        189 USEPNG=
        190 PNGINC=
        191 PNGLIB=

        After the modification:

        169 #USEJPEG=
        170 #JPEGINC=
        171 #JPEGLIB=
        ...
        189 #USEPNG=
        190 #PNGINC=
        191 #PNGLIB=

        After performing 10.e.i, press Esc, type :set nu, and press Enter to display the line number.

      3. Press Esc, enter :wq!, and press Enter to save the script and exit.
    6. Delete the -m64 compilation parameters.
      sed -i "s/-m64//" Make-arch

    7. Modify the spaceball.c file.
      1. Open the spaceball.c file.
        cd ../ demosrc
        vi spaceball.c
      2. Press i to enter the edit mode, change port in line 35 to serialport, and add parentheses to lines 109, 110, and 111.

        Before the modification:

        35   if (port != NULL) {
        ...
        109   if ((buttonchanged & SBALL_BUTTON_PICK) && (buttons & SBALL_BUTTON_PICK)) ||
        110       (buttonchanged & SBALL_BUTTON_1) && (buttons & SBALL_BUTTON_1)) ||
        111       (buttonchanged & SBALL_BUTTON_LEFT) && (buttons & SBALL_BUTTON_LEFT)) ) {

        After the modification:

        35   if (serialport != NULL) {
        ...
        109   if (((buttonchanged & SBALL_BUTTON_PICK) && (buttons & SBALL_BUTTON_PICK)) ||
        110       ((buttonchanged & SBALL_BUTTON_1) && (buttons & SBALL_BUTTON_1)) ||
        111       ((buttonchanged & SBALL_BUTTON_LEFT) && (buttons & SBALL_BUTTON_LEFT)) ) {

        After performing 10.g.i, press Esc, type :set nu, and press Enter to display the line number.

      3. Press Esc, enter :wq!, and press Enter to save the script and exit.
    8. Install Tachyon.
      cd ../unix
      make linux-64-thr
    9. Create a soft link.
      ln –s  /path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/compile/linux-64-thr/tachyon /path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon_LINUXARM64
  11. Install TCL 8.5 and TK 8.5.
    1. Download the TCL and TK RPM packages.

      TCL: http://mirror.centos.org/altarch/7/os/aarch64/Packages/tcl-8.5.13-8.el7.aarch64.rpm

      http://mirror.centos.org/altarch/7/os/aarch64/Packages/tcl-devel-8.5.13-8.el7.aarch64.rpm

      TK: http://mirror.centos.org/altarch/7/os/aarch64/Packages/tk-8.5.13-6.el7.aarch64.rpm

      http://mirror.centos.org/altarch/7/os/aarch64/Packages/tk-devel-8.5.13-6.el7.aarch64.rpm

    2. Use an SFTP tool to upload the TCL and TK installation packages to the /path/to/rpm directory on a server.
    3. Install TCL and TK.
      cd /path/to/rpm
      rpm –ivh tcl-8.5.13-8.el7.aarch64.rpm
      rpm –ivh tcl-devel-8.5.13-8.el7.aarch64.rpm
      rpm –ivh tk-8.5.13-6.el7.aarch64.rpm
      rpm –ivh tk-devel-8.5.13-6.el7.aarch64.rpm
  12. Compile plugins.
    1. Go to the plugins directory.
      cd /path/to/VMD/plugins
    2. Set the environment variables of the TCL header file and library file.
      export TCL_INCLUDE_DIR=/usr/share/tcl8.5
      export TCL_LIBRARY_DIR=/usr/lib64/tcl8.5
    3. Perform the compilation.
      make LINUXARM64
      mkdir /path/to/vmd/vmd-1.9.4a55/plugins
      export PLUGINDIR=/path/to/vmd/vmd-1.9.4a55/plugins
      make distrib
  13. Compile VMD.
    1. Go to the vmd-1.9.4a55 directory.
      cd /path/to/vmd/vmd-1.9.4a55/
    2. Modify the configuration file.
      1. Open the configuration file.
        vi configure
      2. Press i to enter the edit mode.
        • Set the installation path.
          $install_bin_dir="/path/to/vmd/ vmd-1.9.4a55/bin";
          $install_library_dir="/path/to/vmd/ vmd-1.9.4a55/lib/vmd";
        • Set the Tachyon environment variables.
          $libtachyon_dir="/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon";
          $libtachyon_include="-I/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/src";
          $libtachyon_library="-L"/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/compile/linux-64-thr;
        • Modify the $arch_nvccflags parameter of Linux ARM64 and comment out "-gencode arch=compute_30,code=compute_30 " .s.

          Before the modification:

          16 $install_bin_dir="/usr/local/bin";
          17
          18 # Directory where VMD files and executables are installed
          19 $install_library_dir="/usr/local/lib/$install_name";
          ...
          1354 $libtachyon_dir         = "$vmd_library_dir/tachyon";
          1355 $libtachyon_include     = "-I$libtachyon_dir/include";
          1356 $libtachyon_library     = "-L$libtachyon_dir/lib_$config_arch";
          ...
          2627                     "-gencode arch=compute_30,code=compute_30 " .

          After the modification:

          16 $install_bin_dir="/path/to/vmd/vmd-1.9.4a55/bin";
          17
          18 # Directory where VMD files and executables are installed
          19 $install_library_dir="/path/to/vmd/vmd-1.9.4a55/lib/vmd";
          ...
          1354 $libtachyon_dir         = "/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon";
          1355 $libtachyon_include     = "-I/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/src";
          1356 $libtachyon_library     = "-L/path/to/vmd/vmd-1.9.4a55/lib/tachyon/tachyon/compile/linux-64-thr";
          ...
          2627   #"-gencode arch=compute_30,code=compute_30 " .

          After performing 13.b.i, press Esc, type :set nu, and press Enter to display the line number.

      3. Press Esc, enter :wq!, and press Enter to save the script and exit.
    3. Perform the compilation.
      ./configure LINUXARM64 EGLPBUFFER CUDA IMD LIBTACHYON ZLIB COLVARS TCL PTHREADS SILENT
      cd src && make veryclean
      make

      If "No resource compiler required on this platform" is displayed, the compilation is successful.

      make install

      If "Make sure /Projects/vmd/ vmd-1.9.4a55/bin is in your path.VMD installation complete. Enjoy!" is displayed, the installation is successful.