计算化学公社

标题: 在Linux环境下如何安装VMD [打印本页]

作者
Author:
梁梁    时间: 2023-11-4 20:39
标题: 在Linux环境下如何安装VMD
请教一下大佬,如何在linux环境下,下载安装VMD并且运行,网上的教程都尝试了一遍,只能够解压缩VMD压缩文件,继续往下输入命令的时候,要不就是提示我找不到原文件,路径不对;要不就是没有反应。
作者
Author:
zmjsce    时间: 2023-11-4 21:54
tar -zxvf 包名
su
yum install freeglut* -y
cd vmd-1.9.3
./configure LINUXAMD64
cd src
make install
作者
Author:
zmjsce    时间: 2023-11-4 21:55
zmjsce 发表于 2023-11-4 21:54
tar -zxvf 包名
su
yum install freeglut* -y

intel处理器,centos7下
作者
Author:
sobereva    时间: 2023-11-5 12:27
CentOS/Rocky Linux下只需要
解压VMD包
./configure
cd src
make install


若有报错,拿截图说事。在此之前先用google搜报错。

作者
Author:
梁梁    时间: 2023-11-5 22:01
zmjsce 发表于 2023-11-4 21:54
tar -zxvf 包名
su
yum install freeglut* -y

谢谢大佬的回答 已解决
作者
Author:
梁梁    时间: 2023-11-5 22:01
sobereva 发表于 2023-11-5 12:27
CentOS/Rocky Linux下只需要
解压VMD包
./configure

谢谢大佬的回答 已解决
作者
Author:
丁越    时间: 2023-11-6 09:40
梁梁 发表于 2023-11-5 22:01
谢谢大佬的回答 已解决

通常程序安装包都会有一个README或者INSTALL的文本文件,里面详细写了怎么安装程序,自己从头到尾读一遍就知道了。比如这是VMD的:

  1. Quick Installation Instructions
  2. -------------------------------
  3. Detailed instructions for compiling VMD from source code
  4. can be found in the programmer's guide.

  5. The Windows version of VMD is distributed as a self-extracting
  6. archive, and should be entirely self explanatory.

  7. The native MacOS X version of VMD is packaged as a disk image and is
  8. extracted by opening the disk image, and dragging the "VMD" application
  9. contained inside into an appropriate directory.

  10. For quick installation of the binary distribution for Unix do the following:
  11.   1) Uncompress and untar the distribution into a working directory,
  12.      being sure to do this and subsequent steps as a non-root user.
  13.      In this working directory, there are several subdirectories such
  14.      as bin, src, doc, data, as well as this README and a configure script.
  15.      Change to this working directory after the unpacking is complete.

  16.   2) Edit the file 'configure'; change the values for
  17.      the $install_library_dir and $install_bin_dir to a directory in
  18.      which vmd data files and executables should be installed, be sure
  19.      that you installing into a clean target directory and not overwriting
  20.      an existing version of VMD (which would otherwise give problems):

  21.      $install_bin_dir is the location of the startup script 'vmd'.
  22.      It should be located in the path of users interested in running VMD.

  23.      $install_library_dir is the location of all other VMD files.
  24.      This included the binary and helper scripts.  It should not be
  25.      in the path.

  26.   3) A Makefile must be generated based on these configuration variables
  27.      by running "./configure".

  28.   4) After configuration is complete, cd to the src directory,
  29.      become root or use sudo if necessary, e.g., for installation
  30.      of VMD into /usr/local or other permission-protected system directories,
  31.      and type "make install".  This will install VMD in the two
  32.      directories listed above.  Note that running "make install"
  33.      twice will print error messages because you are attempting to
  34.      overwrite some read-only files.  Similarly, if you have incorrectly
  35.      specified the target installation directories or attempt to overwrite
  36.      an existing VMD installation, you will get error messages.

  37.   5) When installed, type 'vmd' to start (make sure the
  38.      $install_bin_dir directory is in your path).
复制代码



作者
Author:
qaqfdmmj    时间: 2024-7-27 10:03
sobereva 发表于 2023-11-5 12:27
CentOS/Rocky Linux下只需要
解压VMD包
./configure

sob老师,请问ubuntu下安装的步骤和这里有什么不同吗?
btw安装之前怎么把原来的vmd卸载干净呢?
作者
Author:
sobereva    时间: 2024-7-29 02:36
qaqfdmmj 发表于 2024-7-27 10:03
sob老师,请问ubuntu下安装的步骤和这里有什么不同吗?
btw安装之前怎么把原来的vmd卸载干净呢?

应该一样
不用卸载




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3