Git Product home page Git Product logo

Comments (6)

4kangjc avatar 4kangjc commented on May 3, 2024 1

没有复现出来,看这的信息也看不出具体原因。用一个干净的docker容器编译一下试试。

from flare.

4kangjc avatar 4kangjc commented on May 3, 2024 1

应该是编译第三方依赖时缺少libtool,下面的测试ok了

docker run -it debian bash

# in docker
apt update && apt install git python3 -y && git clone https://github.com/Tencent/flare.git

# install bazel
# https://bazel.build/install/ubuntu?hl=zh-cn

cd flare/
bazel build ...
# configure: error: --with-nghttp2 was specified but could not find libnghttp2 pkg-config file.

# apt install -y autoconf libtool libnghttp2-dev
# build ok

那看上去应该是缺失autotools, 编译nghttp2,jemalloc,ctemplate和gperftools都用的是configure_make

新容器里autoconf libtool libnghttp2-dev 都需要安装 libnghttp2-dev是为了pkgconfig,最后应该还是链接的flare里编译出的库 libtool的问题参考下面链接 https://stackoverflow.com/questions/18978252/error-libtool-library-used-but-libtool-is-undefined

容器镜像使用GCC11(理论上GCC8以上就行)即可,如果是x86-64换成将bazel换成x86_64即可

FROM gcc:11

CMD git clone https://github.com/Tencent/flare.git && cd flare && \
 wget https://github.com/bazelbuild/bazel/releases/download/6.3.2/bazel-6.3.2-linux-arm64 && \
  chmod +x bazel-6.3.2-linux-arm64 && \
 ./bazel-6.3.2-linux-arm64 build ...

from flare.

liphx avatar liphx commented on May 3, 2024

bazel 6.3.2

from flare.

liphx avatar liphx commented on May 3, 2024

应该是编译第三方依赖时缺少libtool,下面的测试ok了

docker run -it debian bash

# in docker
apt update && apt install git python3 -y && git clone https://github.com/Tencent/flare.git

# install bazel
# https://bazel.build/install/ubuntu?hl=zh-cn

cd flare/
bazel build ...
# configure: error: --with-nghttp2 was specified but could not find libnghttp2 pkg-config file.

# apt install -y autoconf libtool libnghttp2-dev
# build ok

from flare.

4kangjc avatar 4kangjc commented on May 3, 2024

应该是编译第三方依赖时缺少libtool,下面的测试ok了

docker run -it debian bash

# in docker
apt update && apt install git python3 -y && git clone https://github.com/Tencent/flare.git

# install bazel
# https://bazel.build/install/ubuntu?hl=zh-cn

cd flare/
bazel build ...
# configure: error: --with-nghttp2 was specified but could not find libnghttp2 pkg-config file.

# apt install -y autoconf libtool libnghttp2-dev
# build ok

那看上去应该是缺失autotools, 编译nghttp2,jemalloc,ctemplate和gperftools都用的是configure_make

from flare.

liphx avatar liphx commented on May 3, 2024

应该是编译第三方依赖时缺少libtool,下面的测试ok了

docker run -it debian bash

# in docker
apt update && apt install git python3 -y && git clone https://github.com/Tencent/flare.git

# install bazel
# https://bazel.build/install/ubuntu?hl=zh-cn

cd flare/
bazel build ...
# configure: error: --with-nghttp2 was specified but could not find libnghttp2 pkg-config file.

# apt install -y autoconf libtool libnghttp2-dev
# build ok

那看上去应该是缺失autotools, 编译nghttp2,jemalloc,ctemplate和gperftools都用的是configure_make

新容器里autoconf libtool libnghttp2-dev 都需要安装
libnghttp2-dev是为了pkgconfig,最后应该还是链接的flare里编译出的库
libtool的问题参考下面链接
https://stackoverflow.com/questions/18978252/error-libtool-library-used-but-libtool-is-undefined

from flare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.