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 解决方法相关推荐

  1. Ubuntu编译cpp文件报错“teat.cpp:45:2: error: stray ‘\344’ in program” 解决方法

    首先参考了文章,可能是因为代码中含有中文字符/符号/空格,需要找出并更改 但是很多文章都没有写怎么找到这个中文字符 实际在命令行终端报错是已经给提示了: 就是在原cpp文件的第45行有非法字符,去找到 ...

  2. 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报错 ...

  3. Python使用pip安装报错ModuleNotFoundError: No module named ‘pip._internal.cli.main‘的解决方法

    Python使用pip安装报错ModuleNotFoundError: No module named 'pip._internal.cli.main'的解决方法   大家好,我叫亓官劼(qí guā ...

  4. XV6操作系统make报错Makefile:192: *** recipe commences before first target. Stop. 的解决方法

    XV6操作系统make报错Makefile:192: *** recipe commences before first target. Stop. 的解决方法   大家好,我叫亓官劼(qí guān ...

  5. 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 ...

  6. 控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法

    控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法 参考文章: (1)控制台报错:java.lang.C ...

  7. msfconsole启动失败并报错`not_after=‘: bignum too big to convert into `long‘的解决方法

    msfconsole启动失败并报错`not_after=': bignum too big to convert into `long'的解决方法 参考文章: (1)msfconsole启动失败并报错 ...

  8. 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 ...

  9. mysql 1033_mysql报错1033 Incorrect information in file: ''''xxx.frm''''问题的解决方法(图)...

    这篇文章主要介绍了关于mysql报错1033 Incorrect information in file: 'xxx.frm'问题的解决方法,文中通过示例代码介绍的很详细,需要的朋友可以参考借鉴,下面 ...

最新文章

  1. int最大值java_Java 中一个int型数组的求最大值最小值 | 学步园
  2. 土木工程和计算机专硕,第一次发帖 关于大工土木专硕
  3. [数论-欧拉函数的应用]NEFU 1115
  4. UI设计灵感|有声读物APP界面设计
  5. c语言中验证巴德哥赫猜想,哥赫巴德猜想具体内容是什么?
  6. 在Azure Data Studio中查看执行计划
  7. 通俗讲解c语言指针的作用,C语言指针讲解(史上最通俗最全面最经典)
  8. ceb转pdf linux,基于zynq的Linux根文件系统生成
  9. 【中软杯国二开源】基于PaddleOCR和深度学习的企业实体识别
  10. MUI框架-08-窗口管理-创建子页面
  11. 读《从优秀到卓越》乱摘
  12. OpenCV检测手指个数
  13. classes是什么意思怎么读_class是什么意思_class怎么读_class翻译_用法_发音_词组_同反义词_班-新东方在线英语词典...
  14. 影像组学工作站:医学影像组学中多模态的任务类型
  15. KiCad 5.1.6 泪滴插件安装与使用
  16. 每周分享第 23 期
  17. win10蓝牙不能用
  18. 【产品人卫朋】自媒体运营的5个阶段,以及增长策略
  19. 外边距合并及解决方法
  20. 从零开始制作游戏辅助

热门文章

  1. 云边协同 — 协同的类型
  2. Linux_系统进程管理
  3. NanoPi NEO Air使用七:获取并编译U-boot和Linux的源码
  4. k8s v1.9.6 超详细搭建步骤
  5. MySQL中的重做日志(redo log),回滚日志(undo log),以及二进制日志(binlog)的简单总结...
  6. Win7安装golang开发环境--备忘录
  7. Notification 浏览器右下角弹出提示消息
  8. Windows通过VNC访问Kylin桌面环境
  9. mvc中signalr实现一对一的聊天
  10. python 列表list