Installing SNAP
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the source package.
tar zxvf snap-2013-11-29.tar.gz
- Go to the directory generated after the decompression.
cd snap
- Modify the Makefile file in the source code root directory.
- Open Makefile.
vi Makefile
- 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"
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Modify the Makefile file in the Zoe directory.
- Open Makefile.
vi Makefile
- 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"
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Perform the compilation and installation.
make
- Load the environment variable.
export PATH=/path/to/snap:$PATH
Parent topic: Configuring the Compilation Environment
