NCEMSS(National Center for Electron Microscope Simulation Software)是个免费的高分辨成像程序,后来作者Roar Kilaas在其基础上开发了商业版本的MacTempasX.今天总算把NCEMSS安装到我的Debian上了,下面记录一下安装过程.对于个人而言,最好的安装方法是在windows下使用cygwin加编译好的源码
1. 源代码下载
主页在http://www.numis.northwestern.edu/edm/
2. 安装编译环境,NCEMSS的安装环境比较古怪,需要下面这些包
g77-2.95 g++-3.3 gcc-3.3 build-essential libasm-dev libasm1 libelf-dev libelf1 libfontenc-dev libfreetype6-dev libpthread-stubs0 libpthread-stubs0-dev libx11-dev libxau-dev libxcb-xlib0-dev libxcb1-dev libxdmcp-dev libxfont-dev x11proto-fonts-dev x11proto-input-dev x11proto-kb-dev xlibs-static-dev xtrans-dev zlib1g-dev
3. 编译安装源码
./configure --prefix=/opt/edm CC=/usr/bin/gcc-3.4 CXX=/usr/bin/g++-3.3 F77=/usr/bin/g77-2.95 --x-lib=/usr/lib/X11 --x-include=/usr/include/X11 --enable-ncemss --enable-focus --enable-both
sudo make
编译过程会在organ.f处编译失败,我之前在OpenSUSE上用icc,ifort,在MacPro上用icc和ifort也出现这样的问题,不过不影响NCEMSS的安装.
sudo make install