salt icon indicating copy to clipboard operation
salt copied to clipboard

Using the helper batch file to install (bootstrap64.bat) contains error "Setup script exited with error: command 'swig.exe' failed: No such file or directory"

Open cdnporkchop opened this issue 13 years ago • 6 comments

  1. Read the docs from URL "https://salt.readthedocs.org/en/v0.11.1/topics/installation/windows.html" and it makes reference to "Single command bootstrap script"
  2. So I downloaded file "bootstrap64.bat" from URL "http://csa-net.dk/salt/bootstrap64.bat"
  3. Executed on clean Windows 2008 R2 server
  4. During the install, the follow error during call "Executing: cmd.exe /c c:\salt\python27\scripts\easy_install m2crypto"

error: Setup script exited with error: command 'swig.exe' failed: No such file or directory

c:\salt\logs\bootstrap.log: http://pastebin.com/52aLvp09 c:\salt\logs\python_install.log http://pastebin.com/xsKx2Ry3

cdnporkchop avatar Jul 08 '13 19:07 cdnporkchop

@UtahDave Is this more of a documentation issue, since swig and the openssl headers are required to build M2Crypto?

terminalmage avatar Jul 09 '13 02:07 terminalmage

I'm having the same problem when executing the bootstrap.bat file on Windows 7: error: Setup script exited with error: command 'swig.exe' failed: No such file or directory

Attempts to start minion result in: File "c:\salt\python27\lib\site-packages\salt\crypt.py", line 15, in from M2Crypto import RSA ImportError: No module named M2Crypto

emmellee avatar Jul 12 '13 23:07 emmellee

I need to go through the docs on this again. For now, I'd recommend just using the Salt Windows installer which can be found here:

http://docs.saltstack.com/topics/installation/windows.html

If you want to do Salt development you can still do that using the installed Salt.

Just delete the contents of C:\salt\salt-0.16.0.win-amd64\salt-0.16.0-py2.7.egg\salt and checkout the git repo there. Restart the minion and you'll be running on the latest Salt from the git develop branch.

UtahDave avatar Jul 12 '13 23:07 UtahDave

I'm going to look at this over the weekend, and revamp those docs. Sorry for the confusion.

UtahDave avatar Jul 12 '13 23:07 UtahDave

ah. success with setup.exe. thank you.

emmellee avatar Jul 12 '13 23:07 emmellee

@emmellee I'm glad the installer worked for you.

I'm going to close this issue. I added a notice that this script is not supported.

I will look at the script this week and decide if we're going to bring it up to date or remove it.

Please feel free to reopen this issue if you'd like to discuss this more.

UtahDave avatar Jul 14 '13 06:07 UtahDave