“CABUORCH-1697”的版本间的差异
来自qingwei personal wiki
(→在NSO docker安装ntool) |
(→tool) |
||
第21行: | 第21行: | ||
</source> | </source> | ||
+ | === 问题 === | ||
+ | <source lang="shell"> | ||
+ | /usr/bin/ant: Failed to set JAVACMD | ||
+ | Error: JAVA_HOME is not defined correctly. | ||
+ | We cannot execute /usr/bin/java/bin/java | ||
+ | make: *** [javac] Error 1 | ||
+ | make: Leaving directory `/mnt/datafs/ncs-run/packages/ntool/src' | ||
+ | </source> | ||
[[category: cisco]] | [[category: cisco]] | ||
[[category: task]] | [[category: task]] |
2018年5月28日 (一) 06:47的版本
描述
Investigation: CLI to XML Conversion for NSO
tool
https://github.com/NSO-developer/ntool
在NSO docker安装ntool
# 修改 repo
# editing both /etc/yum.repos.d/epel.repo and /etc/yum.repos.d/epel-testing.repo files, commenting all entries starting with mirrorlist=... and uncommenting all the entries starting with baseurl=....
# 配置代理
bash-4.2# export http_proxy=http://proxy-wsa.esl.cisco.com:80
bash-4.2# export https_proxy=http://proxy-wsa.esl.cisco.com:80
bash-4.2# env | grep proxy
http_proxy=http://proxy-wsa.esl.cisco.com:80
https_proxy=http://proxy-wsa.esl.cisco.com:80
# 安装 make
yum install make
# 安装 ant
yum install ant
问题
/usr/bin/ant: Failed to set JAVACMD
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/bin/java/bin/java
make: *** [javac] Error 1
make: Leaving directory `/mnt/datafs/ncs-run/packages/ntool/src'