【问题标题】:while working with tensorflow model server I encounter this error: version `GLIBC_2.28' not found在使用 tensorflow 模型服务器时,我遇到了这个错误:未找到版本 `GLIBC_2.28\'
【发布时间】:2022-08-24 00:41:52
【问题描述】:

在运行tutorial 时,我运行下面的代码

%%bash --bg nohup tensorflow_model_server
--rest_api_port=8501
--model_name=tfrbert
--model_base_path=\"/content/drive/MyDrive/app/model14/export/best_model_by_loss/\" >server.log 2>&1

它以前对我有用。但现在我遇到了这个错误:

tensorflow_model_server: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28\' not found (required by tensorflow_model_server) tensorflow_model_server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.26\' not found (tensorflow_model_server 需要) tensorflow_model_server:/lib/x86_64-linux-gnu/libm.so.6:未找到版本“GLIBC_2.29\”(tensorflow_model_server 需要)

我搜索了很多,但没有任何帮助。有人知道如何解决这个问题吗? 多谢。

    标签: tensorflow glibc


    【解决方案1】:

    错误意味着:您拥有的 tensorflow_model_server 二进制文件是在 GLIBC-2.28 或更高版本的系统上编译和链接的,而您正试图在 GLIBC-2.27 或更高版本的系统上运行它。

    你应该找到tensorflow_model_server 的构建合适的为您的系统。

    或者,您可以使用带有 GLIBC-2.28 或更高版本的 docker 容器,并在该容器中运行 tensorflow_model_server。

    另一种选择是在您的系统上自己构建tensorflow_model_server——生成的二进制文件将在其上运行。

    【讨论】:

    • 谢谢。但我在 colab 中运行我的代码。如何在 colab 环境中解决我的问题?
    【解决方案2】:

    当我尝试在Colab 上为我训练有素的对象检测模型提供服务时,我遇到了同样的错误。原因是安装在Colab 上的 GLIBC 版本是 2.27,而最新版本的 Tensorflow Serving(2.9.1) 需要更新版本的 GLIBBC,恰好是 2.28。您可以阅读更多关于 GLIBC here 的信息。

    这是您检查 GLIBC 版本的方式:ldd --version

    就我而言,我没有使用最新版本的 Tensorflow Serving,而是使用了在 Google Colab 上运行良好的1.15 版本。这就是我安装1.15 版本的方式:

    !wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-1.15.0/t/tensorflow-model-server/tensorflow-model-server_1.15.0_all.deb'
    !dpkg -i tensorflow-model-server_1.15.0_all.deb
    !pip3 install tensorflow-serving-api==1.15
    
    !sudo apt-get update && sudo apt-get install tensorflow-model-server
    

    【讨论】:

      【解决方案3】:

      只需安装它,一切都会正常。

      !wget 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-universal-2.8.0/t/tensorflow-model-server-universal/tensorflow-model-server-universal_2.8.0_all.deb'
      

      !dpkg -i tensorflow-model-server-universal_2.8.0_all.deb

      【讨论】:

        猜你喜欢
        • 2020-10-01
        • 2022-11-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-03-18
        • 2017-12-07
        • 2022-08-18
        • 1970-01-01
        相关资源
        最近更新 更多