libcoap下载、安装、编译、报错解决、make死循环

1. 下载

git clonehttps://github.com/obgm/libcoap

百度云盘
链接: https://pan.baidu.com/s/1LnsGwsW0Odmuo2FwB_006A
提取码:9020

2. 赋权

进入libcoap文件夹执行chmod 777 *

3. 编译和安装

【1】生成configure文件
./autoconf
【2】生成makefile文件
./configure
【3】编译
make
【4】安装
make install

4. 报错解决

【1】
configure: error: ==> Install the package that contains doxygen or disable the doxygen documentation using ‘–disable-doxygen’.

configure: error: ==> Install the package that contains a2x (mostly asciidoc) or disable the build of the manpages using ‘–disable-manpages’’.

解决:执行./configure --prefix=$(pwd)/Linux --disable-manpages --disable-dtls --disable-doxygen
缺什么加什么

【2】libtool、gcc等
直接yum install -y xxx

【3】make死循环
make: Warning: File `Makefile.am’ has modification time 43829 s in the future
系统时间有问题,同步系统时间,再执行

find . -type f | xargs -n 5 touch

make clean

make

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值