警告:未设置环境变量 SUMO_HOME
Warning: Environment variable SUMO_HOME is not set
我正在尝试执行此命令:
/home/sumo-0.25.0/sumo/bin/netconvert --node-files=hello.nod.xml
--edge-files=hello.edg.xml --output-file=hello.net.xml
但是我得到这个错误:
Warning: Environment variable SUMO_HOME is not set, using built in type maps.
Error: Could not open nodes-file 'hello.nod.xml'.
Quitting (on error).
第一个只是警告。如果您想摆脱它,请执行类似
的操作
export SUMO_HOME=/home/sumo-0.25.0/sumo/
在你的 shell 中。第二个是真正的错误。它表示无法访问相关文件。文件 hello.nod.xml
在您当前的工作目录中并且可读吗?
我正在尝试执行此命令:
/home/sumo-0.25.0/sumo/bin/netconvert --node-files=hello.nod.xml
--edge-files=hello.edg.xml --output-file=hello.net.xml
但是我得到这个错误:
Warning: Environment variable SUMO_HOME is not set, using built in type maps.
Error: Could not open nodes-file 'hello.nod.xml'.
Quitting (on error).
第一个只是警告。如果您想摆脱它,请执行类似
的操作export SUMO_HOME=/home/sumo-0.25.0/sumo/
在你的 shell 中。第二个是真正的错误。它表示无法访问相关文件。文件 hello.nod.xml
在您当前的工作目录中并且可读吗?