2016-04-22 640 views
1

我裝盤執行此命令:警告:環境變量SUMO_HOME未設置

/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). 

回答

1

第一個只是一個警告。如果你想擺脫它,像你的shell一樣做

export SUMO_HOME=/home/sumo-0.25.0/sumo/ 

。第二個是真正的錯誤。它表示該文件不可訪問。文件hello.nod.xml在您當前的工作目錄中並且可讀?