![sumo 模拟器显示“SUMO_HOME 变量未设置”和“无法连接”](https://linux22.com/image/1202742/sumo%20%E6%A8%A1%E6%8B%9F%E5%99%A8%E6%98%BE%E7%A4%BA%E2%80%9CSUMO_HOME%20%E5%8F%98%E9%87%8F%E6%9C%AA%E8%AE%BE%E7%BD%AE%E2%80%9D%E5%92%8C%E2%80%9C%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E2%80%9D.png)
my@my-HP-15-Notebook-PC:~$ cd iitk/
my@my-HP-15-Notebook-PC:~/iitk$ netconvert --osm-files iitk.osm -o iitk.net.xml
Warning: Environment variable SUMO_HOME is not set, using built in type maps.
Warning: Environment variable SUMO_HOME is not set, schema resolution will use slow website lookups.
Error: unable to connect socket for URL 'http://sumo.dlr.de/xsd/types_file.xsd'
In file 'built in type map'
At line/column 1/0.
The types could not be loaded from 'built in type map'.
Quitting (on error).
答案1
第一个只是警告。如果你想要消除它,请执行以下操作
export SUMO_HOME=/home/sumo-0.30.0/sumo/