duanlisha2335 2018-09-26 08:54
浏览 392

找不到gmp库

I try to install pbc library which have gmp as dependence. Dockerfile:

FROM golang:1.9.6-alpine3.7

RUN mkdir -p /go/src/app

WORKDIR /go/src/app

COPY . /go/src/app

RUN apk add --update git gcc build-base flex bison gmp

RUN wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz && \
    tar -xvf pbc-0.5.14.tar.gz && \
    cd pbc-0.5.14 && \
    ./configure --prefix=$HOME/.local && \
    make && make install

RUN rm pbc-0.5.14.tar.gz && rm -rf pbc-0.5.14 

RUN go-wrapper download

RUN go-wrapper install

CMD ["go-wrapper", "run", "-web"]

EXPOSE 8000

However when I run it I get such an error during pbc installation:

gmp library not found
add its path to LDFLAGS
see ./configure --help

Here I found that i should add export: How to add a path to LDFLAGS

Note that I add gmp to dependencies, but pbg dont see it

How should I do it throw docker?

  • 写回答

1条回答 默认 最新

  • dream_wu2015 2018-09-27 17:41
    关注

    Changing to Ubuntu env. solve this problem

    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题