alpine编译mysql,Alpinel 编译软件注意事项

使用国内镜像,加速下载

安装 autoconf(无configure脚本时):apk add --no-cache -U autoconf

安装 C 编译器:apk add --no-cache -U gcc、apk add --no-cache -U libc-dev

安装 make

安装 linux 内核文件头 linux-headers:apk add --no-cache -U linux-headers

报:

/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find Scrt1.o: No such file or directory

/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory

/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared

错误时需要安装 libc-dev:apk add --no-cache -U libc-dev

报 No curses library functions found,需安装 ncurses-dev:apk add --no-cache -U ncurses-dev

Cannot locate header file libintl.h,需安装 gettext-dev:apk add --no-cache -U gettext-dev

安装 curl-dev 和 openssl-dev 时报:

ERROR: unsatisfiable constraints:

libressl-dev-2.7.5-r0:

conflicts: openssl-dev-1.0.2r-r0[pc:libcrypto=2.7.5] openssl-dev-1.0.2r-r0[pc:libssl=2.7.5] openssl-dev-1.0.2r-r0[pc:openssl=2.7.5]

satisfies: curl-dev-7.61.1-r2[libressl-dev] libssh2-dev-1.8.2-r0[pc:libcrypto] libssh2-dev-1.8.2-r0[pc:libssl]

openssl-dev-1.0.2r-r0:

conflicts: libressl-dev-2.7.5-r0[pc:libcrypto=1.0.2r] libressl-dev-2.7.5-r0[pc:libssl=1.0.2r] libressl-dev-2.7.5-r0[pc:openssl=1.0.2r]

satisfies: world[openssl-dev] libssh2-dev-1.8.2-r0[pc:libcrypto] libssh2-dev-1.8.2-r0[pc:libssl]

需改成 apk add --no-cache -U libressl-dev、apk add --no-cache -U curl-dev

configure: error: Invalid C++ compiler or C++ compiler flags : apk add --no-cache -U g++

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值