麒麟SP1系统ltp编译安装指导

麒麟SP1系统ltp编译安装指导

使用麒麟系统编译LTP,会出现不同版本编译时候会有报错的情况,解决办法:
1) ltp的安装文件默认安装在/opt
2) ltp-full-20160510版本编译报错
报错截图
解决方法
1.下载安装ltp测试工具以及补丁(changed_bykylin.patch)
    $sudo tar -xvf ltp-full-20160510.tar.bz2 
    $cd ltp-full-20160510
    arm版本执行:$sudo ./configure –build=arm-linux或sudo ./configure –host=aarch64
2.拷贝changed_bykylin.patch至ltp-full-20160510,然后执行:
   $ cd ..
   $ patch -p0 < ./ltp-full-20160510/changed_bykylin.patch
   $ cd ltp-full-20160510
3.$ sudo make
   $ sudo make install
4.$sed -i ‘s/$(free/$(LC_ALL=C free/’ /opt/ltp/testscripts/ltpstress.sh
5.$cd /opt/ltp/testscripts && ./ltpstress.sh -l ~/ltpstress.log -t 48 -n-t 48表示测试时间48小时。