X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=simulators%2Fe2sim%2Ftools%2Finstall_asn1c;fp=simulators%2Fe2sim%2Fbuild_and_run_e2agent;h=7d1391f40d1395b4667a36fd2e96d8ee50bacf05;hb=07d27778d0053beb672db05c58a8be00805c1567;hp=1af78d63a9262199d0e22b74244a67ea92ae05e6;hpb=8b44bbcc8e5538fa2e14b87dbcc252d1932a8f09;p=it%2Ftest.git diff --git a/simulators/e2sim/build_and_run_e2agent b/simulators/e2sim/tools/install_asn1c similarity index 81% rename from simulators/e2sim/build_and_run_e2agent rename to simulators/e2sim/tools/install_asn1c index 1af78d6..7d1391f 100755 --- a/simulators/e2sim/build_and_run_e2agent +++ b/simulators/e2sim/tools/install_asn1c @@ -1,4 +1,5 @@ -#***************************************************************************** +#!/bin/bash +#/***************************************************************************** # * # Copyright 2019 AT&T Intellectual Property * # Copyright 2019 Nokia * @@ -15,18 +16,16 @@ # See the License for the specific language governing permissions and * # limitations under the License. * # * -#***************************************************************************** +#******************************************************************************/ -# Run a default build and run the e2sim executable - -set -e - -clear - -./build_e2sim --clean - -./build_e2sim - -echo "===================== Running E2 Agent Simulator ========================" - -./build/e2agent +echo "Will install asn1c" +sudo rm -rf asn1c +git clone https://gerrit.o-ran-sc.org/r/com/asn1c.git +cd asn1c/ +autoreconf -iv +./configure +cd examples +chmod u+x crfc2asn1.pl +cd .. +make +sudo make install