Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Compiling 

 

 Step 3: Get and setup AFNI

 

export BASE_DIR=/nfsscratch/PREDICT/hjohnson/20121205_src/
mkdir -p ${BASE_DIR}
 
cd ${BASE_DIR}
curl http://afni.nimh.nih.gov/pub/dist/tgz/afni_src.tgz -o afni_src.tgz
tar xfz afni_src.tgz
# Optional: rm /nfsscratch/PREDICT/hjohnson/20121121_src/afni_src.tgz
 
## NOTE:  Suma won't build  SUMA because of missing GL library, and wont build parallel because it is stupid
 
 
cd afni_src
ls Makefile*
sed 's#/usr/bin/gcc#/usr/bin/gcc44#g' Makefile.linux_gcc33_64 | \
sed 's#/usr/X11R6/include#/usr/include#g' | \
sed 's#/usr/X11R6/lib64#/usr/lib64#g' | \
sed 's#LLIBS *= \(.*\)#LLIBS = \1 -lpng -ljpeg -lXm#g' | \
sed 's%^ *INSTALL_PREREQ%#%g' |
sed 's%INSTALLDIR = ./linux_gcc33_64%INSTALLDIR = ./linux_RHEL5%g' >  Makefile
 
make -j1 totality
 

 

 

 

NOTE:  EVERYTHING BELOW HERE IS NOT RELEVANT OR NEEDED FOR AFNI BUILD THEY ARE NOTES THAT MAY HELP WITH OTHER BUILDS.

 

 

 

Step 1: Get and install f2c

Step 2: Get and install X11

# Edit Makefile to use /usr/bin/gcc44 and not X11
 

Makefile (edited)

Makefile.INCLUDE

Step 4: Compiling AFNI

 

Running

  • No labels