Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CompilingCompiling 

 

 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
 

 

...

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

...