||
前提有了 Ubuntu 系统,或者你有root权限。
下载:xc-1.5.24-linux_x86-semishared.tar.gz
解压:tar zxvf xc-1.5.24-linux_x86-semishared.tar.gz
cd进入解压后的文件夹,输入命令./xcConfigure.sh
一路 enter 下去,记住是没有 crystal 软件。
设置环境变量。输入命令 vi ~/.bashrc
如果上面都ok, bashrc 最后会把所有的路径自动写进去,如:
XCRYSDEN_TOPDIR=/home/plgong/Soft/XCrySDen-1.5.17-bin-semishared
XCRYSDEN_SCRATCH=/home/plgong/xcrys_tmp
export XCRYSDEN_TOPDIR XCRYSDEN_SCRATCH
PATH="XCRYSDENTOPDIR:PATH:<span class="MathJax" id="MathJax-Element-2-Frame" tabindex="0" data-mathml="<math xmlns="http://www.w3.org/1998/Math/MathML">XCRYSDENTOPDIR<mrow class="MJX-TeXAtom-ORD">/scripts:" role="presentation" style="margin:0px;padding:0px;word-wrap:normal;display:inline;font-size:14px;float:none;direction:ltr;max-width:none;max-height:none;min-width:0px;min-height:0px;border:0px;font-family:tahoma, helvetica, simsun, sans-serif, hei;position:relative;background-color:#fdffd8;">XCRYSDENTOPDIR/scripts:XCRYSDEN_TOPDIR/util"
注:上面黄色标记是要修改成自己软件安装路径的,切忌!用pwd命令可查路径。
记得保存离开。然后输入命令source ~/.bashrc
OK,应该可以用了。你可以输入./xcrysden或者xcrysden启动软件。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-8-4 18:15
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社