Emacs Error Message - spawning child process: invalid argument
- When you call the shell
- When you call the compiler, such as mingw32-make
Details
- Emacs Version 23.1 for Windows
- Windows XP Professional Service Pack 3
- Powershell Version 1
Solution
- Go to the windows console
- Enter the command "set" to bring up your system variables
- I had shell=c:\progra~1\rational\ration~1\nutcroot\mksnt\sh.exe
- Enter "set shell=" to remove the variable
- Try Emacs again
Tips
- Anonymous commentator (18/6/11) found the cause of the error to be a different environmental variable, MKS. I suggest that you examine your other environmental variables if changing SHELL or MKS does not work for you.
Notes
- This took me a long time to fix and a caused me a lot of stress
- Please leave a comment if you found this useful
Thanks for sharing your fix to the problem.
ReplyDeleteHi Anonymous,
ReplyDeleteThanks for leaving a comment. Much appreciated :)
Thank you so much for sharing and saving me a lot of trouble.
ReplyDeleteHi Anonymous,
ReplyDeleteGlad you found this useful. It was driving me nuts for quite a while.
I got the same error message. Although the exact fix is a little bit different: the MKS environment variable was pointing to the wrong place, this article nevertheless did give me some hint as where to look.
ReplyDeleteThank you.
Thanks anonymous (18/6/11) for leaving a comment about your experience. I wonder what the MKS variable is for Windows and for Emacs.
ReplyDeleteHi Frazer,
ReplyDeleteMy parents are Vietnamese and I was born in Melbourne Australia.