02-28-2018 09:02 PM - edited 03-01-2019 04:06 AM
Hi,
I don't seem to be able to run one of the examples provided on the user guide because of the following error when running "make stop clean all start" :
root@localhost mpls-vpn]# make stop clean all start
ncs-netsim stop
*** Need to either specify a netsim directory with --dir or be able
*** to find a netsim directory above us in the directory hierarchy
Try ncs-netsim --help or man ncs-netsim to get usage text
make: [stop] Error 1 (ignored)
ncs --stop
connection refused (stop)
make: [stop] Error 1 (ignored)
for i in l3vpn l3vpnui cisco-ios cisco-iosxr juniper-junos alu-sr; do \
make -C packages/${i}/src clean || exit 1; \
done
make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'
rm -rf ../load-dir/*
rm -f ../*jar/*.jar
cd java && ant -q clean || true
/bin/sh: ant: command not found
rm -f java/src/com/example/l3vpn/namespaces/*.java
make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'
make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpnui/src'
rm -rf ../load-dir/*
#rm -f ../*jar/*.jar
#cd java && ant -q clean || true
#rm -f java/src//namespaces/*.java
make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpnui/src'
make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/cisco-ios/src'
rm -rf ncsc-out/* ../load-dir/* ncsc-out/*
rm -f ../jar/*.jar
rm -f java/src/com/tailf/packages/ned/ios/namespaces/*.java
cd java && ant clean
/bin/sh: ant: command not found
make[1]: *** [clean] Error 127
make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/cisco-ios/src'
make: *** [clean] Error 1
[root@localhost mpls-vpn]#
I appreciate your input.
Thanks,
Kerim
Solved! Go to Solution.
03-01-2018 05:04 AM
Hi,
"/bin/sh: ant: command not found"
You need to install ant
Ubuntu ex:
sudo apt-get install ant
Make sure you also have JDK installed
br,
Martin
03-01-2018 05:04 AM
Hi,
"/bin/sh: ant: command not found"
You need to install ant
Ubuntu ex:
sudo apt-get install ant
Make sure you also have JDK installed
br,
Martin
03-01-2018 06:01 AM
Hi Martin,
;
thanks for the reply. It got me a bit closer. But, still no luck. Below is what am seeing now:
[root@localhost mpls-vpn]# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
[root@localhost mpls-vpn]# ant -version
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64/lib/tools.jar
Apache Ant(TM) version 1.9.10 compiled on February 3 2018
[root@localhost mpls-vpn]# make stop clean all start
ncs-netsim stop
make: ncs-netsim: Command not found
make: [stop] Error 127 (ignored)
ncs --stop
make: ncs: Command not found
make: [stop] Error 127 (ignored)
for i in l3vpn l3vpnui cisco-ios cisco-iosxr juniper-junos alu-sr; do \
make -C packages/${i}/src clean || exit 1; \
done
make[1]: Entering directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'
Makefile:16: /src/ncs/build/include.ncs.mk: No such file or directory
make[1]: *** No rule to make target `/src/ncs/build/include.ncs.mk'. Stop.
make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/l3vpn/src'
make: *** [clean] Error 1
[root@localhost mpls-vpn]#
03-01-2018 06:27 AM
Hi,
Make sure you source the ncsrc file in the NSO installation directory.
ex:
source /home/kerim/ncs_install/ncsrc
ncsrc has the paths to all the nso libs and binaries.
03-01-2018 12:02 PM
I sourced it. In fact, I installed jdk1.9 and set the environment variables (PATH). did new installation of ncs. but still...
able to give further configuration.
/bin/sh: line 4: 23231 Killed /home/kerim/ncs_install//bin/ncsc --ncs-compile-module yang/tailf-ned-cisco-ios.yang --ncs-device-dir ncsc-out --ncs-skip-statistics --ncs-device-type cli-ned
make[1]: *** [ncsc-out/modules/fxs/tailf-ned-cisco-ios.fxs] Error 137
make[1]: Leaving directory `/home/kerim/ncs_install/examples.ncs/service-provider/mpls-vpn/packages/cisco-ios/src'
make: *** [build-all] Error 1
[root@localhost mpls-vpn]#
03-01-2018 01:30 PM
thanks...cleaned up the whole thing and restarted the VM. it starts working now. I appreciate your help.
Kerim
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide