|
开始学习lammps,需要安装VMD,linux系统中有些不习惯,简单的程序安装都不会,网上一些安装教程对着操作都没成功,关键是自己对linux不熟悉,安装中不能灵活处理命令,导致很小的问题都卡克。最后,终于安装好了,总结一下。
1.下载VMD软件(http://www.ks.uiuc.edu/Research/vmd/)
2.在linux下解压缩
3.在解压后的文件夹上鼠标右键--选择:在终端中打开(这个方便的操作需要在linux系统里添加一个插件具体名字记不清了,软件库里就有自己下)
一下红色字体为输入命令,前面的黑色字体为文件存储的地址
4.botar@botar:~/下载/vmd-1.9.1$ ./configure LINUXAMD64
5.botar@botar:~/下载/vmd-1.9.1$ ./configure
using configure.options: LINUXAMD64
6.botar@botar:~/下载/vmd-1.9.1$ cd src
7.botar@botar:~/下载/vmd-1.9.1/src$ sudo make install
[sudo] password for botar:
输入密码后,即可安装,很快完成
屏幕显示如下:
if [ ! -d "/usr/local/lib/vmd" ]; then
mkdir -p "/usr/local/lib/vmd" ;
fi ;
if [ ! -d "/usr/local/bin" ]; then
mkdir -p "/usr/local/bin" ;
fi ;
if [ ! -d "/usr/local/lib/vmd"/doc ]; then
mkdir -p "/usr/local/lib/vmd"/doc;
fi
cp ../Announcement "/usr/local/lib/vmd"
cp ../README "/usr/local/lib/vmd"
cp ../LICENSE "/usr/local/lib/vmd"
cp ../doc/ug.pdf "/usr/local/lib/vmd"/doc
if [ -f /usr/local/lib/vmd/vmd_LINUXAMD64 ]; then
mv -f "/usr/local/lib/vmd/vmd_LINUXAMD64" "/usr/local/lib/vmd/OLD_vmd_LINUXAMD64" ; rm -f "/usr/local/lib/vmd/OLD_vmd_LINUXAMD64" ; fi
cp ../LINUXAMD64/vmd_LINUXAMD64 "/usr/local/lib/vmd"
if [ -d "../lib/redistrib/lib_LINUXAMD64" ]; then
cd ../lib/redistrib/lib_LINUXAMD64; tar -cf - ./* |
(cd "/usr/local/lib/vmd" ; tar -xf -)
fi ;
cp ../lib/stride/stride_LINUXAMD64 ../lib/surf/surf_LINUXAMD64 ../lib/tachyon/tachyon_LINUXAMD64 "/usr/local/lib/vmd"
cd ..; tar -cf - scripts |
(cd "/usr/local/lib/vmd" ; tar -xf -)
cd ../lib; tar -cf - scripts |
(cd "/usr/local/lib/vmd" ; tar -xf -)
cd ..; tar -cf - python |
(cd "/usr/local/lib/vmd"/scripts ; tar -xf -)
cd ..; tar -cf - plugins |
(cd "/usr/local/lib/vmd" ; tar -xf -)
cd ..; tar -cf - shaders |
(cd "/usr/local/lib/vmd" ; tar -xf -)
cp ../data/.vmdrc ../data/.vmdsensors ../data/vmd_completion.dat "/usr/local/lib/vmd"
cd ../bin ;
if [ -f run_vmd_tmp ]; then rm -f run_vmd_tmp; fi ;
if [ ! -x "/bin/csh" ]; then
echo "Info: /bin/csh shell not found, installing Bourne shell startup script instead" ;
echo '#!/bin/sh' >> run_vmd_tmp ;
echo 'defaultvmddir="/usr/local/lib/vmd"' >> run_vmd_tmp ;
echo 'vmdbasename=vmd' >> run_vmd_tmp ;
cat vmd.sh >> run_vmd_tmp ;
else
echo '#!/bin/csh' >> run_vmd_tmp ;
echo 'set defaultvmddir="/usr/local/lib/vmd"' >> run_vmd_tmp ;
echo 'set vmdbasename=vmd' >> run_vmd_tmp ;
cat vmd.csh >> run_vmd_tmp ;
fi ;
chmod +x run_vmd_tmp ;
cp run_vmd_tmp "/usr/local/bin"/vmd ;
rm -f run_vmd_tmp
echo Make sure "/usr/local/bin"/vmd is in your path.
Make sure /usr/local/bin/vmd is in your path.
echo "VMD installation complete. Enjoy!"
VMD installation complete. Enjoy!
测试:
在终端输入:vmd
回车后即可打开软件
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-23 15:08
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社