how to install splint

来源:互联网 发布:java infinity 编辑:程序博客网 时间:2024/05/18 02:46

Environment: ubuntu 3.13.0-24-generic

run in virtual machine


How to get the Opensource?

From web :http://www.splint.org/download.html

when I choose splint-3.1.1.Linux.tgz to downloade,Then tar,./configure make.......then find the messages like this:

root@tony-virtual-machine:/work/splint-3.1.1# make
cd . && /bin/bash /work/splint-3.1.1/config/missing --run aclocal-1.6 
/work/splint-3.1.1/config/missing: line 46: aclocal-1.6: command not found
WARNING: `aclocal-1.6' is needed, and you do not seem to have it handy on your
         system.  You might have modified some files without having the
         proper tools for further handling them.  Check the `README' file,
         it often tells you about the needed prerequirements for installing
         this package.  You may also peek at any GNU archive site, in case
         some other package would contain this missing `aclocal-1.6' program.
make: *** [aclocal.m4] Error 1


I do not know why and how to solve.


then try to choose another Source Code :splint-3.1.2.src.tgz and test it is ok !


you can do like this:

#tar -xvf splint-3.1.2.src.tgz

#cd splint-3.1.2

#./configure --prefix=/usr/local/splint

#make 

#make install 

......

succesed to install the splint.


Then configure the bashrc:

#vi ~/.bashrc


add some XXXX like this:

export LARCH_PATH=/usr/local/splint/share/splint/lib
export LCLIMPORTDIR=/usr/splint/share/splint/imports

save and quit.


#source ~/.bashrc


final add splint to environment variables:

export PATH=/usr/local/splint/bin:$PATH



Then you can use splint commend !!!!




0 0
原创粉丝点击