Install-MMGen-and-Its-Dependencies-on-Microsoft-Windows.md 3.5 KB

Note: The following instructions assume you'll be unpacking all archives to C:\, the root directory on most Windows installations. If you choose to unpack to another location, the cd commands must be adjusted accordingly.

1. Install the Python interpreter:

Grab the Windows 32-bit installer and run it, accepting the defaults. Add the Python base and Scripts directories to your path, e.g. C:\Python27;C:\Python27\Scripts.

2. Build OpenSSL:

Grab the latest tarball from the openssl.org download page and unpack it. At the MSYS prompt, run:

    $ cd /c/openssl-1.0.1g
    $ ./config --openssldir=/usr
    $ make
    $ make install

3. Build the Scrypt Python module:

Grab the latest tarball from python.org and unpack it. At the MSYS prompt, run:

    $ cd /c/scrypt-0.6.1

Open setup.py in your text editor and make the following changes:

Change the line:

        library_dirs = ['c:\OpenSSL-Win32\lib\MinGW']

to read:

        library_dirs = ['c:\msys\lib','c:\WINDOWS\system32']

Change the line:

        includes = ['c:\OpenSSL-Win32\include']

to read:

        includes = ['c:\msys\include']

Save the file. At the MSYS prompt, run:

    $ python setup.py build --compiler=mingw32

Ignore the warning messages at the end and run:

    $ python setup.py install

4. Install the Pycrypto Python module:

Source code is available from the Pycrypto home page, but it appears to build only with MS Visual Studio, not MinGW. Until this situation is fixed, you can install the precompiled binaries available from Voidspace. Download and run the Windows installer, accepting the defaults.

5. Install the ecdsa Python module:

Grab the tarball and unpack it. At the MSYS prompt, run:

    $ cd /c/ecdsa-0.11
    $ python setup.py install

6. Install the bitcoin-python Python module:

Grab the tarball and unpack it. At the MSYS prompt, run:

    $ cd /c/bitcoin-python-0.3
    $ cp -a src/bitcoinrpc /c/Python27/Lib/site-packages

This is a workaround for a dependency issue with the package's setup script. If your Python is installed in a different location, you'll have to adjust the destination path accordingly.

7. Install the colorama Python module (optional but recommended):

Grab the tarball and unpack it. At the MSYS prompt, run:

    $ cd /c/colorama-0.3.3
    $ python setup.py install

8. Install MMGen:

Get the zip archive from GitHub and unpack it. At the MSYS prompt, run:

    $ cd /c/mmgen-master
    $ sudo ./setup.py install

Type:

    $ echo $PATH

The C:\Python27;C:\Python27\Scripts you added to your path in Step 1 of this page should be included in your PATH variable. If not, then exit MSYS and open a new MSYS window to update your path.