Science Blog of Dr. Yuan分享 http://blog.sciencenet.cn/u/albumns This blog is mainly on Molecular molecular modelling and simulations

博文

Compile VMD-1.9.1 from source code

已有 7481 次阅读 2013-1-29 19:09 |个人分类:科研笔记|系统分类:科研笔记| Linux, System, into, Source, tcl

As the most widely used MD analysis tool, VMD is distributed the pre-compiled version for almost all kinds of platform. However, if we would like to use advanced module of VMD such as running python script or render scene with alternative engine, the pre-compiled versions are most likely to fail for those purposes. 

In this regard, compile VMD from source code would be necessary for some users. Here are some some steps for how to compile it under SUSE Linux Enterprise Desktop 11 SP2 OS.

Pre-requisition:

python2.6.8 (system lib)
fltk (system lib)
actc
tcl/tk 8.5
libsball
points
raster3d
stride
surf
tachyon
cuda-4.2

1. compile tcl/tk 8.5 and setup proper envrionment:
setenv TCLINC -I/soft/vmd-1.9.1.src/tcl-8.5/include
setenv TCLLIB -F/soft/vmd-1.9.1.src/tcl-8.5/lib

2. compile plugin
untar the source code into somewhere you like :
/soft/vmd-1.9.1.src
cd /soft/vmd-1.9.1.src/plugins

make LINUXAMD64
make ARCH=LINUXAMD64 PLUGINDIR=/soft/vmd-1.9.1.src/vmd-1.9.1/plugins distrib

3. compile VMD main code
cd /soft/vmd-1.9.1.src/vmd-1.9.1/
edit /soft/vmd-1.9.1.src/vmd-1.9.1/configure file, and setup proper environment for all possible plugin such as: python, tcl/tk, tachyon, libsball, stride, cuda and so on.

./configure LINUXAMD64 OPENGL FLTK TK CUDA IMD LIBSBALL XINERAMA XINPUT LIBTACHY
ON VRPN NETCDF TCL PYTHON PTHREADS NUMPY SILENT

cd src
make veryclean
make

if it goes well, you should see

" No resource compiler required on this platform."

make install
you should see

"Make sure /soft/vmd-1.9.1/bin/vmd is in your path.
VMD installation complete.  Enjoy!"

now you can enjoy your VMD now with command:

/soft/vmd-1.9.1/bin/vmd

be sure that there is no any complain for missing modules n the terminal.

good luck.




https://blog.sciencenet.cn/blog-355217-657665.html

上一篇:dos2unix, simple and helpful command
下一篇:SUSE Linux Enterprise 11 SP3 is on the road
收藏 IP: 128.178.56.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

全部作者的精选博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-7-19 00:15

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部