跳转至主要内容
支持知识库

无法通过运行 install_prerequisites.sh 脚本配置模型优化器

内容类型: 错误讯息   |   文章 ID: 000088247   |   上次审核日期: 2023 年 03 月 01 日

环境

Ubuntu 18.04.x 长期支持 (LTS),64 位 Ubuntu 20.04.0 长期支持 (LTS),64 位

说明

  • Ran install_prerequisites.sh 脚本。
  • 收到错误:

    "/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(arena.o): relocation R_X86_64_TPOFF32 against hidden symbol `_ZN6google8protobuf5Arena13thread_cache_E' can not be used when making a shared object

    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(descriptor.o): relocation R_X86_64_PC32 against symbol `_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev' can not be used when making a shared object; recompile with -fPIC

解决方法

手动安装 protobuf:
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig

相关产品

本文适用于 4 产品。
英特尔® 至强融核™ 处理器软件 OpenVINO™ 工具包 性能函数库

停产的产品

英特尔® DevCloud for the Edge

免责声明

本页面上的内容是原始英文内容的人工翻译与计算机翻译的组合。我们提供此内容是为了您的便利并且仅供参考,未必完整或准确。如果本页面的英文版与翻译版之间存在任何冲突,应以英文版为准。 查看此页面的英语版本。