Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing SNAP

Procedure

  1. Run the following command to decompress the installation package:
    tar zxvf snap-2013-11-29.tar.gz
  2. Run the following command to go to the directory generated after the decompression:
    cd snap
  3. Run the following commands to modify the Makefile file:
    1. Open Makefile.
      vi Makefile
    2. Press i to enter the insert mode and delete the -Werror option from line 97 to line 101.

      Before the modification:

      make $(APP)  CC="gcc" CFLAGS="-O2 –Wall -Werror"
      make $(APP2) CC="gcc" CFLAGS="-O2 –Wall -Werror "
      make $(APP3) CC="gcc" CFLAGS="-O2 –Wall -Werror "
      make $(APP4) CC="gcc" CFLAGS="-O2 –Wall -Werror "
      make $(APP5) CC="gcc" CFLAGS="-O2 –Wall -Werror "

      After the modification:

      make $(APP)  CC="gcc" CFLAGS="-O2 –Wall"
      make $(APP2) CC="gcc" CFLAGS="-O2 –Wall"
      make $(APP3) CC="gcc" CFLAGS="-O2 –Wall"
      make $(APP4) CC="gcc" CFLAGS="-O2 –Wall"
      make $(APP5) CC="gcc" CFLAGS="-O2 –Wall"
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Run the following command to go to the Zoe directory:
    cd Zoe
  5. Run the following commands to modify the Makefile file:
    1. Open Makefile.
      vi Makefile
    2. Press i to enter the insert mode and delete the -Werror option from line 94 to line 102.

      Before the modification:

      gcc:
           make $(APP)  CC="gcc" CFLAGS="-O2 -Wall -Werror"
      all:
           make $(APP)  CC="gcc" CFLAGS="-O2 –Wall -Werror "
           make $(APP2) CC="gcc" CFLAGS="-O2 –Wall -Werror "
           make $(APP3) CC="gcc" CFLAGS="-O2 –Wall -Werror "
           make $(APP4) CC="gcc" CFLAGS="-O2 –Wall -Werror "
           make $(APP5) CC="gcc" CFLAGS="-O2 –Wall -Werror "

      After the modification:

      gcc:
           make $(APP)  CC="gcc" CFLAGS="-O2 -Wall"
      all:
           make $(APP)  CC="gcc" CFLAGS="-O2 –Wall"
           make $(APP2) CC="gcc" CFLAGS="-O2 –Wall"
           make $(APP3) CC="gcc" CFLAGS="-O2 –Wall"
           make $(APP4) CC="gcc" CFLAGS="-O2 –Wall"
           make $(APP5) CC="gcc" CFLAGS="-O2 –Wall"
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the following commands to perform the installation and compilation:
    cd /path/to/SNAP/snap
    make
  7. Run the following command to add the environment variable:
    export PATH=/path/to/SNAP/snap:$PATH