在Alpine上从源代码安装GCC [英] Installing GCC from source on Alpine

查看:219
本文介绍了在Alpine上从源代码安装GCC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Alpine上安装GCC 6.4.0时,我遇到了:

While trying to install GCC 6.4.0 on Alpine, I run into:

checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... no

但是在似乎是标准查找目录的/usr/lib 中,我有:

But in /usr/lib, which seems to be the standard lookup directory, I have:

libgmp.a
libgmp.so
libgmp.so.10
libgmp.so.10.3.2
libmpc.so.3
libmpc.so.3.0.0
libmpfr.so.4
libmpfr.so.4.1.5

有什么问题吗?

推荐答案

事实证明,在这种特殊情况下,需要安装mpc1-dev,gmp-dev或mpfr-dev.我错过了mpc1-dev.

It turns out that in this particular case one needs to install mpc1-dev, gmp-dev or mpfr-dev. I was missing out on mpc1-dev.

sudo apk add mpc1-dev

这篇关于在Alpine上从源代码安装GCC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆