Article ID: 000088247 Content Type: Error Messages Last Reviewed: 03/01/2023

Unable to Configure Model Optimizer by Running install_prerequisites.sh Script

Environment

Ubuntu 18.04.x long-term support (LTS), 64-bit Ubuntu 20.04.0 long-term support (LTS), 64-bit

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Steps to install Protocol Buffers (protobuf) manually

Description
  • Ran install_prerequisites.sh script.
  • Received error:

    "/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

Resolution

Install protobuf manually:
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

Related Products

This article applies to 2 products