linux centos 使用 alpine 编译的二进制文件 报错 /lib/ld-musl-x86_64.so.1: bad ELF interpreter 解决方法
CentOS 下如果直接使用 Alpine Linux 下编译的二进制文件,会报类似 ld-musl-x86_64.so.1: bad ELF interpreter
的错误
那么我们需要补一个musl的静态库文件来让编译的二进制文件在CentOS下正常使用
具体解决方法如下
方法一
wget https://copr.fedorainfracloud.org/coprs/ngompa/musl-libc/repo/epel-7/ngompa-musl-libc-epel-7.repo -O /etc/yum.repos.d/ngompa-musl-libc-epel-7.repo
yum install -y musl-libc-static
下载地址可能失效
方法二
curl https://forensics.cert.org/cert-forensics-tools-release-el7.rpm -o cert-forensics-tools-release-el7.rpm
rpm -Uvh cert-forensics-tools-release*rpm
yum --enablerepo=forensics install -y musl-libc-static
方法二下载地址说明:https://centos.pkgs.org/7/forensics-x86_64/musl-libc-static-1.2.1-1.el7.x86_64.rpm.html
安装后再执行下对应的可执行二进制程序,就可以正常工作啦
linux centos 使用 alpine 编译的二进制文件 报错 /lib/ld-musl-x86_64.so.1: bad ELF interpreter 解决方法相关推荐
- Ubuntu编译cpp文件报错“teat.cpp:45:2: error: stray ‘\344’ in program” 解决方法
首先参考了文章,可能是因为代码中含有中文字符/符号/空格,需要找出并更改 但是很多文章都没有写怎么找到这个中文字符 实际在命令行终端报错是已经给提示了: 就是在原cpp文件的第45行有非法字符,去找到 ...
- centos在yum install报错:Another app is currently holding the yum lock解决方法
centos在yum install报错:Another app is currently holding the yum lock解决方法 参考文章: (1)centos在yum install报错 ...
- Python使用pip安装报错ModuleNotFoundError: No module named ‘pip._internal.cli.main‘的解决方法
Python使用pip安装报错ModuleNotFoundError: No module named 'pip._internal.cli.main'的解决方法 大家好,我叫亓官劼(qí guā ...
- XV6操作系统make报错Makefile:192: *** recipe commences before first target. Stop. 的解决方法
XV6操作系统make报错Makefile:192: *** recipe commences before first target. Stop. 的解决方法 大家好,我叫亓官劼(qí guān ...
- phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法
phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法 参考文章: (1)php ...
- 控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法
控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法 参考文章: (1)控制台报错:java.lang.C ...
- msfconsole启动失败并报错`not_after=‘: bignum too big to convert into `long‘的解决方法
msfconsole启动失败并报错`not_after=': bignum too big to convert into `long'的解决方法 参考文章: (1)msfconsole启动失败并报错 ...
- SVN报错:can‘t open file db/txn-current-lock:permission denied 解决方法
SVN报错:can't open file db/txn-current-lock:permission denied 解决方法 参考文章: (1)SVN报错:can't open file db/t ...
- mysql 1033_mysql报错1033 Incorrect information in file: ''''xxx.frm''''问题的解决方法(图)...
这篇文章主要介绍了关于mysql报错1033 Incorrect information in file: 'xxx.frm'问题的解决方法,文中通过示例代码介绍的很详细,需要的朋友可以参考借鉴,下面 ...
最新文章
- int最大值java_Java 中一个int型数组的求最大值最小值 | 学步园
- 土木工程和计算机专硕,第一次发帖 关于大工土木专硕
- [数论-欧拉函数的应用]NEFU 1115
- UI设计灵感|有声读物APP界面设计
- c语言中验证巴德哥赫猜想,哥赫巴德猜想具体内容是什么?
- 在Azure Data Studio中查看执行计划
- 通俗讲解c语言指针的作用,C语言指针讲解(史上最通俗最全面最经典)
- ceb转pdf linux,基于zynq的Linux根文件系统生成
- 【中软杯国二开源】基于PaddleOCR和深度学习的企业实体识别
- MUI框架-08-窗口管理-创建子页面
- 读《从优秀到卓越》乱摘
- OpenCV检测手指个数
- classes是什么意思怎么读_class是什么意思_class怎么读_class翻译_用法_发音_词组_同反义词_班-新东方在线英语词典...
- 影像组学工作站:医学影像组学中多模态的任务类型
- KiCad 5.1.6 泪滴插件安装与使用
- 每周分享第 23 期
- win10蓝牙不能用
- 【产品人卫朋】自媒体运营的5个阶段,以及增长策略
- 外边距合并及解决方法
- 从零开始制作游戏辅助