To build an x64 version on a clean Windows 7 x64 platform with python 2.7.2 x64 (I tested this on a clean Windows 7 x64 VM so I'm hopeful that it works, ymmv):
- Download and install dot net framework 4.0 for server and development (x86 and x64)
from: http://www.microsoft.com/net/download
- Download and install Microsoft Visual C++ 2010 Express
from: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
- Download and install Microsoft Windows SDK 7.1 (GRMSDKX_EN_DVD.iso - the x64 version)
from: http://www.microsoft.com/download/en/details.aspx?id=8442
- Install Windows Updates
Visit Windows Update (multiple times) and make sure you update everything. Brilliantly, installing Visual Studio 2010 Service Pack 1 (SP1) deletes the Visual Studio compilers and libraries. The next step fixes this.
- Download and install the compiler update that fixes the problem that SP1 deletes the compilers
from: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=4422
- If you don't have a tar utility that can decompress files (xzf), download and install libarchive.
from: http://downloads.sourceforge.net/gnuwin32/libarchive-2.4.12-1-setup.exe
- Put where it's installed (c:\Program Files (x86)\GNuWin32\bin) in the system path
- The tar utility in libarchive is bsdtar, not tar.
- Download and install python 2.7.2
from: http://python.org/ftp/python/2.7.2/python-2.7.2.amd64.msi
- Install to c:\python27-x64
- Add c:\python27-x64\scripts;c:\python-27-x64 to the system path
- Edit msvc9compiler.py (in something like C:\Python27-x64\Lib\distutils) and add a line after line 651 so that it looks like this (see http://bugs.python.org/issue4431):
ld_args.append('/MANIFESTFILE:' + temp_manifest)
ld_args.append('/MANIFEST')
- Create a setup.bat file containing the following dos commands and execute it in an admin dos box (this environment should fool distutils into using "Visual C++ 2010 Express" instead of MSVS 2008.):
REM BEGIN DOS Command File
set path=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64;%path%
set Include="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include";"C:\Program Files\Microsoft SDKs\Windows\v7.1\Include";%Include%
set Lib="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64";"C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64";%Lib%
set VCINSTALLDIR="c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC"
set VS90COMNTOOLS="c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools"
set VSINSTALLDIR="c:\Program Files (x86)\Microsoft Visual Studio 10.0"
set WindowsSdkDir="C:\Program Files\Microsoft SDKs\Windows\v7.1"
set DISTUTILS_USE_SDK=1
set MSSdk=1
REM END DOS Command File
- Download and install pycrypto. Use the admin dos box you ran setup.bat in so the environment is correct.
from: http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.5.tar.gz (Note: see http://connect.microsoft.com/VisualStudio/feedback/details/106634/mt-exe-fails-sometimes-with-code-31-in-release-builds regarding the fact that mt.exe might exit with code 31.)
and untar it using your tar utility. If you're using the bsdtar you downloaded in step 4:
- cd a cmd box with admin privileges into the download folder
- type: bsdtar xzf pycrypto-2.5.tar.gz
- type: cd pycrypto-2.5
- type: python setup.py build (several times - see note above)
- type: python setup.py install
- Download and install dnspython from: http://www.dnspython.org/kits/1.9.4/ download dnspython-1.9.4.zip
- unzip dnspython-1.9.4
- cd a cmd box with admin privileges into the unzipped folder
- type: python setup.py install
- Download the vsResolver zip and unzip it.
-
It should be possible to run vsResolver against a comcast resolver, poorly.
- cd into the unzip folder
- type: python vsResolver.py 8.8.8.8 0
-
or
- type: set PYTHONPATH=c:\Python27-x64\Lib;c:\Python27-x64\Lib\site-packages
- type: vsResolver.py 8.8.8.8 0
For best results, run vsResolver against your own DNSSEC aware recursive resolver. That's the subject of another wiki article.