how to install splint

本文详细介绍了在Ubuntu虚拟机环境下,安装开源软件splint时遇到aclocal-1.6命令未找到的问题及解决方案,包括选择正确版本的源代码包、配置环境变量、以及最终成功安装并配置splint的过程。同时,文章还指导读者如何将安装路径加入到环境变量中,以便后续使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值