how to install splint

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 !!!!




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值