can't find lxxx解决办法

本文介绍了在Ubuntu系统中遇到的环境配置难题,包括找不到ifconfig命令、无法进行update更新以及在编译过程中遇到的lxxx库缺失问题。作者分享了如何通过apt-cache search libxxx查找缺失的库,并使用apt-get install libxxx完成安装。

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

前言

这两天要被烦死了,头疼,搞个ubuntu居然连ifconfig命令都没有!!!update还更新不了??有没有天理了!!!编译个movfuscator整了一天没整出来,demovfuacator更加了,这环境也太难弄了吧!这两天啥也没干 关搭环境了!

can’t find lxxx解决办法

lxxx是libxxx的缩写。
首先我们可以在仓库中搜索一下有没有对应lib库

apt-cache search libxxx

我就不截图了,反正我是知道了!
如果有对应的lib就使用apt-get install libxxx安装就行了

总结

内容比较少但是知识点还是有那么一点的!顺带发发牢骚!

test2.c: In function ‘execute_script’: test2.c:22:34: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 22 | result = realloc(result, strlen(result) + strlen(buffer) + 1); | ^~~~~~ test2.c:22:34: warning: incompatible implicit declaration of built-in function ‘strlen’ test2.c:7:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ 6 | #include <security/pam_appl.h> +++ |+#include <string.h> 7 | test2.c:23:9: warning: implicit declaration of function ‘strcat’ [-Wimplicit-function-declaration] 23 | strcat(result, buffer); | ^~~~~~ test2.c:23:9: warning: incompatible implicit declaration of built-in function ‘strcat’ test2.c:23:9: note: include ‘<string.h>’ or provide a declaration of ‘strcat’ test2.c: In function ‘pam_conversation’: test2.c:39:31: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration] 39 | (*resp)[i].resp = strdup((char*)appdata); // 使用预设密码 | ^~~~~~ test2.c:39:31: warning: incompatible implicit declaration of built-in function ‘strdup’ test2.c: In function ‘show_x11_dialog’: test2.c:75:30: warning: incompatible implicit declaration of built-in function ‘strdup’ 75 | char* msg_copy = strdup(message); | ^~~~~~ test2.c:76:26: warning: implicit declaration of function ‘strtok’; did you mean ‘strtoq’? [-Wimplicit-function-declaration] 76 | char* line = strtok(msg_copy, "\n"); | ^~~~~~ | strtoq test2.c:76:26: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] test2.c:81:53: warning: incompatible implicit declaration of built-in function ‘strlen’ 81 | MARGIN, y_pos, line, strlen(line)); | ^~~~~~ test2.c:81:53: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ test2.c:82:22: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 82 | line = strtok(NULL, "\n"); | ^ /usr/bin/ld: 找不到 -lXutf8 collect2: error: ld returned 1 exit status
07-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值