cannot find -llua、-lhiredis等 与 /usr/bin/ld: skipping incompatible
来源:互联网 发布:飞思卡尔8位单片机 编辑:程序博客网 时间:2024/05/22 04:52
cannot find -llua/-lhiredis等问题就是libxxx.so或libxxx.a文件引入问题:
首先将生成好的库文件libxxx.so或libxxx.a文件放入/usr/local/lib,缺少什么库文件就去下载什么库源码编译生成
再在环境变量添加动态库或静态库路径/usr/local/lib即可
个人库目录环境变量配置:
vim /etc/profile
添加环境变量LD_LIBRARY_PATH(动态库)、LIBRARY_PATH(静态库)
保存退出,使配置生效
source /etc/profile
skipping incompatible类型问题的报错,通常是系统是64位系统,libhiredis.so或libhiredis.a文件是32位编译出来的
readelf -h libhiredis.a可以查看库文件是多少位的
拿redis的源码包重新在当前系统编译生成一次库文件即可
0 0
- cannot find -llua、-lhiredis等 与 /usr/bin/ld: skipping incompatible
- /usr/bin/ld: skipping incompatible错误
- /usr/bin/ld: skipping incompatible -转
- /usr/bin/ld: skipping incompatible解决方案
- 编译提示/usr/bin/ld: skipping incompatible....
- /usr/bin/ld: skipping incompatible 问题解决
- error:/usr/bin/ld:skipping incompatible ./libxxxx.so
- 处理 /usr/bin/ld: cannot find -lc等编译问题
- 处理 /usr/bin/ld: cannot find -lc等编译问题
- 处理 /usr/bin/ld: cannot find -lc等编译问题
- /usr/bin/ld: /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lstdc++ /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lstdc++ /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc
- 解决:/usr/bin/ld: cannot find -lltdl
- /usr/bin/ld: cannot find -lltdl
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- /usr/bin/ld: cannot find -lXt
- Oracle中采用存储过程的方式批量更新数据
- bootstrap laydate
- androoid framework学习之 - SubMenu创建选项菜单
- Java中抽象继承(模板模式)
- 根据地址查询经纬度
- cannot find -llua、-lhiredis等 与 /usr/bin/ld: skipping incompatible
- Android Handler导致内存泄漏的解决方案
- 我的2016小总结
- 第七节 CSS
- 移动端开发--物理像素和逻辑像素
- github 本地及服务器安装配置
- nifi发送消息到Kafka--示例
- yum换源/QQ安装
- 友盟 crash log 错误分析工具