Wednesday, May 6, 2015

Setting Windows 7 Environment Variable for SUMO

When you try to run SUMO command in cmd for the the first time, you may get the error
'netconvert is not recognized as an internal or external command, program or batch files'

To run all sumo command comfortably, we want to set the path variable. Of coz you still can run SUMO command if you put all your files in sumo\bin directory. Refer Fig.1

Fig.1: Also can run SUMO command without setting the path

Ok, but I'd like to have all my works organized. So let's set the path, just like any other programming language interpreter (Java, Python, etc...).

  1. Open system properties
  2. Advanced system settings
  3. Click on environment variables @ bottom right
  4. Edit the path by append ";C:\sumo-0.19.0\bin" (replace C:\sumo-0.19.0\bin with your SUMO directory). Refer Fig.2
  5. Restart cmd
Fig.2: Append 'C:sumo-0.19.0\bin'. Make sure no space.


Fig.3: Successfully run 

No comments:

Post a Comment