24小时热门版块排行榜    

查看: 4101  |  回复: 0

syd89522

木虫 (小有名气)

[求助] 如何在linux系统下安装VMD?

我下的是1.9.2的vmd版本,Linux系统为:Red Hat Enterprise Linux Server release 6.3,官网下载vmd解压后,vi README,内容如下:
For quick installation of the binary distribution for Unix do the following:
  1) Uncompress and untar the distribution into a working directory.
     In this working directory, there are several subdirectories such
     as bin, src, doc, data, as well as this README and a configure script.
     Change to this working directory after the unpacking is complete.

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

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

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

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

  4) After configuration is complete, cd to the src directory,
     and type "make install".  This will install VMD in the two
     directories listed above.  Note that running "make install"
     twice will print error messages because you are attempting to
     overwrite some read-only files.  Similarly, if you have incorrectly
     specified the target installation directories or attempt to overwrite
     an existing VMD installation, you will get error messages.

  5) When installed, type 'vmd' to start (make sure the
     $install_bin_dir directory is in your path).

而在按照提示,vi configure文件后,我将路径改为如下两个:1. $install_bin_dir="/home/shaox/VMD" 替换原内容:$install_bin_dir="/usr/local/bin";2. $install_library_dir="/home/shaox/VMDFILE"替换原内容:$install_library_dir="/usr/local/lib/$install_name"
其他configure文件内容如下:
#!/usr/bin/env perl
# (C) Copyright 1995-2011 The Board of Trustees of the University of Illinois
#     All Rights Reserved
#
# Usage: configure [ optionlist ]   (See full option description down below)
# Perl 5.x must be in your path, and /usr/bin/env must exist in order
# for this to work correctly.

##############################################################################
# User modifiable installation parameters, can be overridden by env variables
##############################################################################
# Name of shell script used to start program; this is the name used by users
$install_name = "vmd";

# Directory where VMD startup script is installed, should be in users' paths.
$install_bin_dir="/home/shaox/VMD";

# Directory where VMD files and executables are installed
$install_library_dir="/home/shaox/VMDFILE";


# optionally override hard-coded defaults above with environment variables
if ($ENV{VMDINSTALLNAME}) {
  $install_name = $ENV{VMDINSTALLNAME}
}
if ($ENV{VMDINSTALLBINDIR}) {
  $install_bin_dir = $ENV{VMDINSTALLBINDIR}
}
if ($ENV{VMDINSTALLLIBRARYDIR}) {
  $install_library_dir = $ENV{VMDINSTALLLIBRARYDIR}
}
然后,输入bash ./configure 命令就会出现如下错误:
./configure: line 13: =: command not found
./configure: line 16: =/home/shaox/VMD: No such file or directory
./configure: line 19: =/home/shaox/VMDFILE: No such file or directory
./configure: line 23: syntax error near unexpected token `{'
./configure: line 23: `if ($ENV{VMDINSTALLNAME}) {'
请问这是怎么回事呢?
有没有VMD的详细安装步骤可以让我参考一下呢?
回复此楼

» 猜你喜欢

走自己的路,让别人说去吧~不以物喜,不以己悲
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 syd89522 的主题更新
信息提示
请填处理意见