mapbox / windows-builds

DEPRECATED! build scripts for mapnik dependencies, mapnik, node-mapnik, node, libosmiom, osmium-tool
38 stars 22 forks source link

error running build_mapnik.bat: 'powershell' is not recognized as an internal or external command #29

Closed springmeyer closed 9 years ago

springmeyer commented 9 years ago

screen shot 2015-02-25 at 3 49 57 pm

@BergWerkGIS - any ideas what I need to do to avoid the "powershell" not found error? this is on my aws machine I've been using for several months. I ran settings.bat, then build_mapnik.bat, then hit this.

springmeyer commented 9 years ago

looks like its set PATH=C:\Windows\System32\WindowsPowershell\v1.0\;%PATH%

wilhelmberg commented 9 years ago

Strange. It should already be on %PATH% on recent OSes. I suppose you are using 2012?

Did you change any Windows features? While researching this, I found out, that PowerShell can suddenly disappear when doing so.

For later reference:

dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShellRoot
dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell /all
set PATH=C:\Windows\System32\WindowsPowershell\v1.0;%PATH%

Reference: http://serverfault.com/questions/431010/server-2012-server-core-powershell-not-installed

springmeyer commented 9 years ago

I'm now hitting broken/missing PATH to powershell on my AWS win ec2 when I run settings.bat. Going to add the path in there now to avoid having to re-find this ticket.

screen shot 2015-03-19 at 11 30 31 am