Difference between revisions of "Galfit"
Line 6: | Line 6: | ||
</pre> | </pre> | ||
− | + | to your "~/.bashrc" file, logout and login again. Then the following works: | |
<pre> | <pre> | ||
Latest revision as of 08:59, 25 April 2024
For quickly getting Galfit working on PIC, do the following: Add the lines:
export LD_LIBRARY_PATH=/data/agn/scratch2/eriksen/galfit_depend/:$LD_LIBRARY_PATH export PATH=$PATH:/data/agn/scratch2/eriksen/galfit/bin
to your "~/.bashrc" file, logout and login again. Then the following works:
galfit /data/agn/scratch2/eriksen/galfit/galfit-example/EXAMPLE/galfit.feedme
A more detailed description:
The problem with Galfit, is the code was last distributed on April 23, 2013
in binary form. Only downloading the binary (Redhat/Enterprise 64) cause a
problem with missing libsnl library. This note explains how to get galfit
working at PIC.
The fastest way is downloading the Redhat version and compile libsnl from source. This is relatively easy, but as indicated above, we have both downloaded and compiled this dependency. Setting these variables in your .bashrc makes the system find the binary ($PATH) and the library ($LD_LIBRARY_PATH). Note that you might need to specify these when submitting jobs through HTCondor.
For documentation and in the case someone wants their own installation or later needs to reproduce this:
1) Download the Galfit source code:
wget https://users.obs.carnegiescience.edu/peng/work/galfit/galfit3-enterprise64.tar.gz
tar -xf galfit3-enterprise64.tar.gz
2) Compile and install libsnl
Download libsnl:
wget https://github.com/thkukuk/libnsl/releases/download/v2.0.1/libnsl-2.0.1.tar.xz tar -xf libnsl-2.0.1.tar.xz
Compile libsnl:
./configure --prefix /data/agn/scratch2/eriksen/galfit_depend make make install