From 0ffcc10953eeab4a6ade76469ef1da78e5638e35 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Fri, 3 Feb 2023 16:52:14 -0800 Subject: [PATCH] docs: add example for installing emane using downloaded protoc --- docs/install.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/install.md b/docs/install.md index 68183b11..b3890cf7 100644 --- a/docs/install.md +++ b/docs/install.md @@ -271,7 +271,23 @@ is being used. Also, these EMANE bindings need to be built using `protoc` 3.19+. So make sure that is available and being picked up on PATH properly. + +Examples for building and installing EMANE python bindings for use in CORE: ```shell +# if your system does not have protoc 3.19+ +wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.6/protoc-3.19.6-linux-x86_64.zip +mkdir protoc +unzip protoc-3.19.6-linux-x86_64.zip -d protoc +git clone https://github.com/adjacentlink/emane.git +cd emane +git checkout v1.3.3 +./autogen.sh +PYTHON=/opt/core/venv/bin/python ./configure --prefix=/usr +cd src/python +PATH=/opt/protoc/bin:$PATH make +/opt/core/venv/bin/python -m pip install . + +# when your system has protoc 3.19+ cd # example version tag v1.3.3 # overriding python used to leverage the default virtualenv install