红联Linux门户
Linux帮助

Splint Linux Installation

发布时间:2007-10-23 00:30:54来源:红联作者:wmbodbc
Instructions for installing Splint using the linux binary installation:

Download http://www.splint.org/downloads/binaries/splint-3.1.1.Linux.tgz

tar -xzf splint-3.1.1.Linux.tgz
This will create a splint-3.1.1 directory, containing several subdirectories. The file splint-3.1.1/bin/splint is the Splint binary.

3. To install Splint binaries and libraries in a different directory (optional):

./configure --prefix=directory

make install
GNU's make utility is required; it may be named gmake or gnumake on your system.

Set environment variables:

LARCH_PATH - path to search for splint libraries and initializations files. If you are using the standard directories, this should be ".:base-directory/splint-3.1.1/lib".

LCLIMPORTDIR - directory containing lcl imports files. If you are using the standard directories, this is base-directory/splint-3.1.1/imports.

If you followed step 3 above set LARCH_PATH to directory/share/splint/lib and LCLIMPORTDIR to directory/share/splint/import instead.

Put the commands to set these variables (the actual commands will depend on the shell you are using) in one of your initialization dotfiles (usually ~/.environment).

Set up your command path to include the directory containing splint-3.1.1/bin/splint, or move the binary to a directory in your command path.
文章评论

共有 0 条评论