Ubuntu-- 报错解决 fatal error: histedit.h: No such file or directory

本文解决了一个在编译过程中遇到的找不到histedit.h头文件的问题,通过安装libedit-dev依赖项成功解决了该错误。

问题描述

程序中用到了histedit.h:,
但程序编译时候出现了 找不到 histedit.h: 头文件的情况。

报错如下:

In file included from /home/robot/catkin_ws/src/dg_common/dg_console/src/DGConsole.cpp:1:0:
/home/robot/catkin_ws/src/dg_common/dg_console/include/dg_console/DGConsole.h:5:22: fatal error: histedit.h: No such file or directory
compilation terminated.
dg_common/dg_console/CMakeFiles/dg_console.dir/build.make:62: recipe for target 'dg_common/dg_console/CMakeFiles/dg_console.dir/src/DGConsole.cpp.o' failed
make[2]: *** [dg_common/dg_console/CMakeFiles/dg_console.dir/src/DGConsole.cpp.o] Error 1
CMakeFiles/Makefile2:943: recipe for target 'dg_common/dg_console/CMakeFiles/dg_console.dir/all' failed
make[1]: *** [dg_common/dg_console/CMakeFiles/dg_console.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed

在这里插入图片描述

解决

这是因为缺少依赖项,执行

sudo apt-get install libedit-dev
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值