我要评分
获取效率
正确性
完整性
易理解

Installing SNAP

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the source package.
    tar zxvf snap-2013-11-29.tar.gz
  3. Go to the directory generated after the decompression.
    cd snap
  4. Modify the Makefile file in the source code root directory.
    1. Open Makefile.
      vi Makefile
    2. Press i to enter the insert mode and delete the -Werror option from line 97 to line 101.
      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"

      After performing 4.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Modify the Makefile file in the Zoe directory.
    1. Open Makefile.
      vi Makefile
    2. Press i to enter the insert mode and delete the -Werror option from line 94 to line 102.
      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"

      After performing 5.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Perform the compilation and installation.
    make
  7. Load the environment variable.
    export PATH=/path/to/snap:$PATH