CTM4XAS on Ubuntu
This guide will help the user understand how to install and use CTM4XAS on their own Ubuntu workstation. If you are using another platform, please refer to the appropriate documentation or contact Benjamin Alldritt for assistance.
Step-by-step guide
To run CTM4XAS, you will need the following software:
Requirements
- Wine 1.7+ (Wine Is Not an Emulator)
- Matlab Component Runtime 7.7
Instructions
Ubuntu 12.04 (64 bit)
Install the required programs and libraries.
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine libp11-kit-gnome-keyring:i386Configure Wine.
WINEARCH=win32 WINEPREFIX=${HOME}/.wine winecfg
winetricks vcrun2005 vcrun2005sp1Download and unpack the software for installation.
wget http://www.anorg.chem.uu.nl/CTM4XAS/Updates/cowan.zip
wget http://www.anorg.chem.uu.nl/CTM4XAS/Updates/MCRInstaller.zip
wget http://www.anorg.chem.uu.nl/CTM4XAS/Updates/CTM4XAS55.zip
unzip cowan.zip -d ${HOME}/.wine/drive_c/cowan
unzip MCRInstaller.zip -d ${HOME}/.wine/drive_c/MCRInstaller
unzip CTM4XAS55.zip -d ${HOME}/.wine/drive_c/CTM4XAS55Install the required runtime libraries and run the application (it may take a few seconds after running the application for the window to appear).
# MCRInstaller may need to be run twice in case the first time it fails (Wine magic)
wine ${HOME}/.wine/drive_c/MCRInstaller
wine ${HOME}/.wine/drive_c/CTM4XAS55/ctm4xas55.exeCreate the following shell scripts and copy them into ${HOME}/.wine/drive_c/cowan/batch
RCN2.sh#!/bin/sh
set +v
mv $1.rcn FTN10
rm -f FTN09
#date < dummy.dat
cat FTN10
wine ${HOME}/.wine/drive_c/cowan/bin/rcn31.exe
mv FTN09 $1.o31
mv FTN10 $1.rcn
cp ${HOME}/.wine/drive_c/cowan/inputs/RCN2.INP FTN10
wine ${HOME}/.wine/drive_c/cowan/bin/rcn2.exe
#date < ${HOME}/.wine/drive_c/cowan/inputs/dummy.dat
rm -f $1.o11
rm -f $1.o09
mv FTN11 $1.rcf
mv FTN09 $1.o21
rm FTN*RCG2.sh
#!/bin/sh
set +v
cp $1.rcg FTN10
wine ${HOME}/.wine/drive_c/cowan/bin/rcg9.exe
rm -f $1.m14
if [ -f "FTN14" ];then mv FTN14 $1.m14; fi
rm -f $1.org
cp FTN09 $1.orgRAC2.sh
#!/bin/sh
set +v
wine ${HOME}/.wine/drive_c/cowan/bin/racer.exe $1.m14 $1.ora < $1.rac
rm -f $1.m15
if [ -f "rmeout" ]; then mv rmeout $1.m15; fiPLOT2.sh
#!/bin/sh
set +v
wine ${HOME}/.wine/drive_c/cowan/bin/plo1.exe <$1.plo
Related articles
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
Unknown macro: contentbylabel. Click on this message for details.