Download Latest Version Installer-Windows-7-EasyDeployExtensionsPack-32-64-(sqlite_fdw,www_fdw,mysql_fdw,ldap_fdw,couchdb_fdw,oracle_fdw).7z (11.2 MB)
Email in envelope

Get an email when there's a new version of postgresql-mingw-w64

Name Modified Size InfoDownloads / Week
Parent folder
lib2to3 2013-12-07
lib-tk 2013-12-07
xml 2013-12-07
test 2013-12-07
multiprocessing 2013-12-07
email 2013-12-07
distutils 2013-12-07
ctypes 2013-12-07
wsgiref 2013-12-07
unittest 2013-12-07
sqlite3 2013-12-07
site-packages 2013-12-07
pydoc_data 2013-12-07
msilib 2013-12-07
logging 2013-12-07
json 2013-12-07
importlib 2013-12-07
hotshot 2013-12-07
encodings 2013-12-07
curses 2013-12-07
compiler 2013-12-07
bsddb 2013-12-07
__phello__.foo.py 2013-12-07 65 Bytes
_weakrefset.py 2013-12-07 6.6 kB
__future__.py 2013-12-07 4.5 kB
_pyio.py 2013-12-07 70.4 kB
_threading_local.py 2013-12-07 7.7 kB
_strptime.py 2013-12-07 20.2 kB
_LWPCookieJar.py 2013-12-07 6.7 kB
_MozillaCookieJar.py 2013-12-07 6.0 kB
_abcoll.py 2013-12-07 15.3 kB
zipfile.py 2013-12-07 55.5 kB
xmllib.py 2013-12-07 35.8 kB
xmlrpclib.py 2013-12-07 53.0 kB
xdrlib.py 2013-12-07 5.8 kB
webbrowser.py 2013-12-07 22.4 kB
whichdb.py 2013-12-07 3.5 kB
wave.py 2013-12-07 18.6 kB
weakref.py 2013-12-07 11.1 kB
warnings.py 2013-12-07 14.4 kB
uu.py 2013-12-07 6.8 kB
uuid.py 2013-12-07 21.7 kB
UserDict.py 2013-12-07 6.0 kB
UserString.py 2013-12-07 9.9 kB
UserList.py 2013-12-07 3.7 kB
urlparse.py 2013-12-07 14.8 kB
user.py 2013-12-07 1.7 kB
urllib2.py 2013-12-07 53.0 kB
urllib.py 2013-12-07 59.3 kB
traceback.py 2013-12-07 11.6 kB
tty.py 2013-12-07 915 Bytes
types.py 2013-12-07 2.1 kB
trace.py 2013-12-07 30.7 kB
tokenize.py 2013-12-07 16.9 kB
token.py 2013-12-07 3.1 kB
threading.py 2013-12-07 33.5 kB
timeit.py 2013-12-07 12.4 kB
toaiff.py 2013-12-07 3.3 kB
textwrap.py 2013-12-07 17.3 kB
this.py 2013-12-07 1.0 kB
tarfile.py 2013-12-07 91.6 kB
tempfile.py 2013-12-07 18.7 kB
telnetlib.py 2013-12-07 22.5 kB
sysconfig.py 2013-12-07 26.3 kB
tabnanny.py 2013-12-07 11.7 kB
symbol.py 2013-12-07 2.2 kB
symtable.py 2013-12-07 7.8 kB
sunaudio.py 2013-12-07 1.4 kB
subprocess.py 2013-12-07 57.2 kB
sunau.py 2013-12-07 17.0 kB
struct.py 2013-12-07 85 Bytes
stringold.py 2013-12-07 12.9 kB
stringprep.py 2013-12-07 13.8 kB
string.py 2013-12-07 21.4 kB
StringIO.py 2013-12-07 11.0 kB
stat.py 2013-12-07 1.9 kB
statvfs.py 2013-12-07 916 Bytes
sre_parse.py 2013-12-07 27.6 kB
ssl.py 2013-12-07 16.4 kB
sre_compile.py 2013-12-07 17.0 kB
sre_constants.py 2013-12-07 7.4 kB
socket.py 2013-12-07 21.1 kB
sre.py 2013-12-07 397 Bytes
SocketServer.py 2013-12-07 24.0 kB
smtplib.py 2013-12-07 31.9 kB
sndhdr.py 2013-12-07 6.2 kB
smtpd.py 2013-12-07 19.1 kB
SimpleXMLRPCServer.py 2013-12-07 26.5 kB
site.py 2013-12-07 20.9 kB
shutil.py 2013-12-07 18.9 kB
SimpleHTTPServer.py 2013-12-07 7.6 kB
shelve.py 2013-12-07 8.3 kB
shlex.py 2013-12-07 11.4 kB
sgmllib.py 2013-12-07 18.4 kB
sha.py 2013-12-07 408 Bytes
sets.py 2013-12-07 19.6 kB
sched.py 2013-12-07 5.2 kB
robotparser.py 2013-12-07 7.4 kB
runpy.py 2013-12-07 11.0 kB
rfc822.py 2013-12-07 34.3 kB
rlcompleter.py 2013-12-07 6.0 kB
rexec.py 2013-12-07 20.7 kB
random.py 2013-12-07 33.2 kB
repr.py 2013-12-07 4.4 kB
re.py 2013-12-07 13.3 kB
Queue.py 2013-12-07 8.8 kB
quopri.py 2013-12-07 7.2 kB
pydoc.py 2013-12-07 95.9 kB
py_compile.py 2013-12-07 6.1 kB
pyclbr.py 2013-12-07 13.6 kB
pstats.py 2013-12-07 27.1 kB
pty.py 2013-12-07 5.2 kB
profile.py 2013-12-07 23.4 kB
posixpath.py 2013-12-07 13.6 kB
pprint.py 2013-12-07 12.3 kB
poplib.py 2013-12-07 12.8 kB
posixfile.py 2013-12-07 8.2 kB
popen2.py 2013-12-07 8.6 kB
platform.py 2013-12-07 54.0 kB
plistlib.py 2013-12-07 15.7 kB
pickletools.py 2013-12-07 76.8 kB
pkgutil.py 2013-12-07 20.9 kB
pipes.py 2013-12-07 9.9 kB
pdb.py 2013-12-07 47.4 kB
pickle.py 2013-12-07 46.5 kB
optparse.py 2013-12-07 62.8 kB
os2emxpath.py 2013-12-07 4.8 kB
os.py 2013-12-07 26.5 kB
numbers.py 2013-12-07 10.7 kB
opcode.py 2013-12-07 5.7 kB
ntpath.py 2013-12-07 19.0 kB
nturl2path.py 2013-12-07 2.4 kB
nntplib.py 2013-12-07 21.8 kB
netrc.py 2013-12-07 4.7 kB
new.py 2013-12-07 627 Bytes
multifile.py 2013-12-07 5.0 kB
mutex.py 2013-12-07 1.9 kB
mimify.py 2013-12-07 15.5 kB
modulefinder.py 2013-12-07 25.0 kB
mimetypes.py 2013-12-07 21.2 kB
MimeWriter.py 2013-12-07 6.7 kB
mhlib.py 2013-12-07 34.4 kB
mimetools.py 2013-12-07 7.4 kB
mailbox.py 2013-12-07 80.5 kB
markupbase.py 2013-12-07 15.0 kB
md5.py 2013-12-07 372 Bytes
mailcap.py 2013-12-07 7.7 kB
locale.py 2013-12-07 91.1 kB
macurl2path.py 2013-12-07 3.4 kB
macpath.py 2013-12-07 6.5 kB
linecache.py 2013-12-07 4.1 kB
keyword.py 2013-12-07 2.1 kB
inspect.py 2013-12-07 43.5 kB
io.py 2013-12-07 3.7 kB
imputil.py 2013-12-07 26.5 kB
imaplib.py 2013-12-07 49.2 kB
imghdr.py 2013-12-07 3.7 kB
httplib.py 2013-12-07 47.8 kB
ihooks.py 2013-12-07 19.5 kB
htmllib.py 2013-12-07 13.4 kB
HTMLParser.py 2013-12-07 17.4 kB
hmac.py 2013-12-07 4.7 kB
htmlentitydefs.py 2013-12-07 18.3 kB
hashlib.py 2013-12-07 5.2 kB
heapq.py 2013-12-07 17.8 kB
gzip.py 2013-12-07 19.0 kB
gettext.py 2013-12-07 20.4 kB
glob.py 2013-12-07 2.3 kB
getopt.py 2013-12-07 7.5 kB
getpass.py 2013-12-07 5.7 kB
functools.py 2013-12-07 4.6 kB
genericpath.py 2013-12-07 3.1 kB
fractions.py 2013-12-07 23.0 kB
ftplib.py 2013-12-07 37.1 kB
formatter.py 2013-12-07 15.4 kB
fpformat.py 2013-12-07 4.8 kB
fnmatch.py 2013-12-07 3.4 kB
filecmp.py 2013-12-07 9.9 kB
fileinput.py 2013-12-07 14.6 kB
dummy_threading.py 2013-12-07 2.9 kB
dumbdbm.py 2013-12-07 9.1 kB
dummy_thread.py 2013-12-07 4.6 kB
doctest.py 2013-12-07 106.8 kB
DocXMLRPCServer.py 2013-12-07 10.8 kB
decimal.py 2013-12-07 227.0 kB
dis.py 2013-12-07 6.7 kB
dircache.py 2013-12-07 1.2 kB
difflib.py 2013-12-07 84.4 kB
csv.py 2013-12-07 16.8 kB
dbhash.py 2013-12-07 516 Bytes
copy_reg.py 2013-12-07 7.0 kB
cProfile.py 2013-12-07 6.7 kB
cookielib.py 2013-12-07 66.2 kB
copy.py 2013-12-07 12.0 kB
Cookie.py 2013-12-07 26.6 kB
ConfigParser.py 2013-12-07 28.5 kB
contextlib.py 2013-12-07 4.6 kB
compileall.py 2013-12-07 8.0 kB
collections.py 2013-12-07 26.1 kB
commands.py 2013-12-07 2.6 kB
colorsys.py 2013-12-07 3.8 kB
codeop.py 2013-12-07 6.2 kB
codecs.py 2013-12-07 36.4 kB
code.py 2013-12-07 10.5 kB
cmd.py 2013-12-07 15.3 kB
chunk.py 2013-12-07 5.5 kB
cgitb.py 2013-12-07 12.4 kB
CGIHTTPServer.py 2013-12-07 13.4 kB
cgi.py 2013-12-07 35.6 kB
calendar.py 2013-12-07 23.8 kB
bisect.py 2013-12-07 2.7 kB
binhex.py 2013-12-07 15.0 kB
bdb.py 2013-12-07 21.7 kB
Bastion.py 2013-12-07 5.9 kB
BaseHTTPServer.py 2013-12-07 23.1 kB
base64.py 2013-12-07 11.7 kB
audiodev.py 2013-12-07 7.9 kB
atexit.py 2013-12-07 1.8 kB
asyncore.py 2013-12-07 21.5 kB
asynchat.py 2013-12-07 11.7 kB
ast.py 2013-12-07 12.1 kB
argparse.py 2013-12-07 90.1 kB
anydbm.py 2013-12-07 2.7 kB
antigravity.py 2013-12-07 64 Bytes
aifc.py 2013-12-07 34.5 kB
abc.py 2013-12-07 7.3 kB
Totals: 226 Items   4.0 MB 0

NEW !

Support for two additional extensions (mysql_fdw and ldap_fdw) have been added to the project. (See This Wiki Page for HOWTO compile them)


Procedure for compiling PosgreSQL-9.3.1 + "sqlite_fdw" + "www_fdw":

(Using mingw-w64 - (cross-compiling => i686) / gcc 4.8.0)


Note 1:

In the following "/usr/local/" corresponds to "C:\mingw32\msys\local\", because I installed MSYS in the root directory of mingw "C:\mingw32" ...

Note 2:

See at the bottom of this page the final value for the "PATH" environment variable (to avoid missing something during the next steps of this procedure).


Setting up the system:

0.1. More handy for the next steps (change "SRCDIR" and "MGWDIR" at your convenience):

    * export ARCH="i686-w64-mingw32"; export SRCDIR="/d/32/"; 
    * export MGWDIR="/c/mingw32/" (should be the same as given in /etc/fstab)

0.2. To find the include files ".h" added later on:

    * export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/include

1.1. Intall libz [Source: http://zlib.net/zlib-1.2.8.tar.gz]

    - cd $SRCDIR"zlib-1.2.8"
    - patch win32/Makefile.gcc:
        patch win32/Makefile.gcc < ../fix-zlib-1.2.8-Makefile.gcc-mingw64.patch
    - make -f win32/Makefile.gcc
    - mkdir /usr/local/; mkdir /usr/local/bin ;mkdir /usr/local/include; mkdir /usr/local/lib;
    - cp zlib1.dll /usr/local/bin/zlib1.dll
    - cp zconf.h zlib.h /usr/local/include
    - cp libz.a /usr/local/lib
    - cp libz.dll.a /usr/local/lib/libz.dll.a

    - cp /usr/local/bin/zlib1.dll /usr/local/bin/libz.dll

1.2. Compile PostgreSQL-9.3.1 [Sources: http://ftp.postgresql.org/pub/source/v9.3.1/postgresql-9.3.1.tar.gz]

    * unzip postgresql-9.3.1.tar.gz
    * cd $SRCDIR"postgresql-9.3.1"
    * cp /usr/local/bin/libz.dll $MGWDIR$ARCH"/lib/"
    * ./configure --build=$ARCH --host=$ARCH
    * make
    * make install

        => install log:
            tout dans -> /usr/local/pgsql

    * Point to postgres utlities (pg_config.exe, ...):
        - export PATH=$PATH:/usr/local/pgsql/bin/

2.1 Compile Sqlite3 [Sources: http://www.sqlite.org/2013/sqlite-autoconf-3080100.tar.gz]

    * Download sqlite-autoconf-3080100.tar.gz (contains a "configure" script)
    * unzip
    * cd $SRCDIR"sqlite-autoconf-3080100"
    * ./configure --build=$ARCH --host=$ARCH
    * make 
    * make install

        => install log:
            sqlite3.h, sqlite3ext.h -> /usr/local/include
            libsqlite3-0.dll, sqlite3.exe -> /usr/local/bin

    * For MinGW to find the DLL while compiling "sqlite_fdw":
        - cp /usr/local/bin/libsqlite3-0.dll /usr/local/pgsql/lib/libsqlite3.dll
          [Think about removing the "-0"]

2.2 Compiling the extension sqlite_fdw

    * Get the source from SVN repository:
        - mkdir $SRCDIR"sqlite_fdw/"
        - cd $SRCDIR"sqlite_fdw"
        - svn checkout https://github.com/gleu/sqlite_fdw
    * cd $SRCDIR"sqlite_fdw/trunk"
    * make
    * make install

        => Install log:
            sqlite_fdw.dll -> /usr/local/pgsql/lib
            sqlite_fdw.control -> /usr/local/pgsql/share/extension
            sql/sqlite_fdw--0.0.1.sql -> /usr/local/pgsql/share/extension
            doc/sqlite_fdw.md -> /usr/local/pgsql/share/doc/extension

3. Compiling the extension www_fdw

  • Install iconv [Sources: http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz]

        * cd $SRCDIR"libiconv-1.14"
        * ./configure --build=$ARCH --host=$ARCH
        * make
        * make install
    
  • Install libxml2 [Sources: ftp://xmlsoft.org/libxml2/libxml2-2.9.1.tar.gz]

        * cp $WINDIR"/SysWOW64/ws2_32.dll" $MGWDIR$ARCH"/lib/libws2_32.dll"
            ("SysWOW64" - 'Sysnative' being a redirection - is the place where 32-bit versions of the libraries are located)
            [http://stackoverflow.com/q/20188451/1715716]
    
        * cd $SRCDIR"libxml2-2.9.1"
    
        * Adding Python 2.7 support:
    
            - Get the "opt" directory from "x32-4.8.0-release-win32-dwarf-rev2.7z" to "/c/mingw32"
    

    [Download: http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.0/32-bit/threads-win32/dwarf/x32-4.8.0-release-win32-dwarf-rev2.7z/download]

            - Patch by hand the very first line of "python2.7-config", "python-config" and "python2-config" into:
                #!/c/mingw32/opt/bin/python2.7.exe
                => OR, use the patch (which assumes msys's "fstab" was set correctly):
                    - cd $MGWDIR"opt/bin/"
                    - cp $SRCDIR/python-confg-files-32.patch ./
                    - patch -p1 < python-confg-files-32.patch
                    - rm python-confg-files-32.patch
    
            - cp $MGWDIR"opt/bin/libpython2.7.dll" $MGWDIR$ARCH"/lib/"
    
            - Apply patch to the originzal "configure" script of libxml2-2.9.1
                patch configure < ../fix-libxml2-2.9.1-configure-mingw64.patch
    
        * ./configure --build=$ARCH --host=$ARCH --with-zlib="/usr/local/" --with-iconv="/usr/local/" --with-python=$MGWDIR"opt/"
        * export C_INCLUDE_PATH=$C_INCLUDE_PATH:$MGWDIR"opt/include/python2.7/"
        * export LIBS="-lpython2.7"; export LDFLAGS="-L"$MGWDIR"opt/bin/"
        * make
        * make install
        * cp /usr/local/bin/libxml2-2.dll /usr/local/pgsql/lib/libxml2.dll
            [Think about removing the "-2"]
        * export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/include/libxml2
    
  • Install OpenSSL [Sources: http://www.openssl.org/source/openssl-1.0.1e.tar.gz]

        - cd $SRCDIR"openssl-1.0.1e"
    
        - Required patch: http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1e-fix_parallel_build-1.patch
        - Required patch: http://www.linuxfromscratch.org/patches/blfs/svn/openssl-1.0.1e-fix_pod_syntax-1.patch
        - patch -Np1 -i ../openssl-1.0.1e-fix_parallel_build-1.patch &&
          patch -Np1 -i ../openssl-1.0.1e-fix_pod_syntax-1.patch
    
        - perl Configure mingw64 --cross-compile-prefix=$ARCH"-" shared zlib-dynamic no-asm
        - make depend
        - make
        - make install
    
  • Install curl [Sources: http://curl.haxx.se/download/curl-7.33.0.tar.gz]

        - cd $SRCDIR"curl-7.33.0/"
        - ./configure --build=$ARCH --host=$ARCH --with-ssl="/usr/local/ssl" --with-zlib="/usr/local/"
    
                    >> configure output: Configured to build curl/libcurl:
    
                          curl version:     7.33.0
                          Host setup:       i686-w64-mingw32
                          Install prefix:   /usr/local
                          Compiler:         gcc
                          SSL support:      enabled (OpenSSL)
                          SSH support:      no      (--with-libssh2)
                          zlib support:     enabled
                          GSSAPI support:   no      (--with-gssapi)
                          SPNEGO support:   no      (--with-spnego)
                          TLS-SRP support:  enabled
                          resolver:         default (--enable-ares / --enable-threaded-resolver)
                          ipv6 support:     no      (--enable-ipv6)
                          IDN support:      no      (--with-{libidn,winidn})
                          Build libcurl:    Shared=yes, Static=no
                          Built-in manual:  enabled
                          --libcurl option: enabled (--disable-libcurl-option)
                          Verbose errors:   enabled (--disable-verbose)
                          SSPI support:     no      (--enable-sspi)
                          ca cert bundle:   no
                          ca cert path:     no
                          LDAP support:     enabled (winldap)
                          LDAPS support:    enabled
                          RTSP support:     enabled
                          RTMP support:     no      (--with-librtmp)
                          metalink support: no      (--with-libmetalink)
                          HTTP2 support:    disabled (--with-nghttp2)
                          Protocols:        DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS 
                                            POP3 POP3S RTSP SMTP SMTPS TELNET TFTP
    
        - make
        - make install
        - cp /usr/local/bin/libcurl-4.dll /usr/local/pgsql/lib/libcurl.dll
            [Think about removing "-4"]
    
  • Get the source from SVN repository

        - mkdir $SRCDIR"www_fdw/"
        - cd $SRCDIR"www_fdw"
        - svn checkout https://github.com/gleu/www_fdw
    
  • Patch source file $SRCDIR"www_fdw/trunk/src/utils.h"

        - patch trunk/src/utils.h < ../fix-www_fdw-utils.h-mingw64.patch
    
  • Build

        * cd $SRCDIR"www_fdw/trunk"
        * make
        * make install
    
            => Install log:
                www_fdw.dll -> /usr/local/pgsql/lib
                www_fdw.control -> /usr/local/pgsql/share/extension
                sql/www_fdw--0.1.6.sql -> /usr/local/pgsql/share/extension
    

Testing the extensions (Windows Prompt):

1. Add "C:\mingw32\msys\local\pgsql\bin" and "C:\mingw32\msys\local\pgsql\lib" to $PATH 2. Add "C:\mingw32\msys\local\bin" to $PATH (accessing "libsqlite3-0.dll", "sqlite3.exe") 3. Add "C:\mingw32\msys\bin" to $PATH (accessing "msys-iconv-2.dll", "msys-1.0.dll")

4. Initialize the "data" (database) directory for the server:

    * cd C:\mingw32\msys\local\pgsql\
    * bin\initdb -Ddata

5. Start the PostgreSQL server:

    * bin\postgres -Ddata

6. Create the superuser and role "postgres" (asking for password)

    * bin\createuser -s -r -W postgres

7.1. Creating and testing the sqlite_fdw extension (depends on sqlite3.dll):

    * CREATE EXTENSION sqlite_fdw;

    * cd D:\postgresql-test-extensions
    * Create a sqlite database (file "test.db")
        [or use the one I provide]

        - cd /usr/local/bin
        - sqlite3 "test.db"

                SQLite version 3.8.1 2013-10-17 12:57:35
                Enter ".help" for instructions
                Enter SQL statements terminated with a ";"
                sqlite> create table tbl1(one varchar(10), two smallint);
                sqlite> insert into tbl1 values('hello!',10);
                sqlite> insert into tbl1 values('goodbye', 20);
                sqlite> select * from tbl1;
                hello!|10
                goodbye|20
                sqlite>

    * Into the "postgres" database, create the sqlite server:

        CREATE SERVER sqlite_server
          FOREIGN DATA WRAPPER sqlite_fdw
          OPTIONS (database 'D:\postgresql-test-extxtensions\test.db'); /* adapt to your config. */

    * Mapping between "tbl1" (sqlite DB) and the new "local_tbl1"
        CREATE FOREIGN TABLE local_tbl1(one varchar(10), two smallint)
          SERVER sqlite_server
          OPTIONS (table 'tbl1');

    * Executing a request:
        SELECT * from local_tbl1;

7.2. Creating and testing the extension www_fdw (depends on iconv.dll and libxml2.dll)

    * CREATE EXTENSION www_fdw;

    * Create a server (example with a "google search" one...):
        [Example grabbed from: https://github.com/cyga/www_fdw/wiki/Examples]

        CREATE SERVER www_fdw_google_search_server FOREIGN DATA WRAPPER www_fdw 
            OPTIONS (
                uri 'https://ajax.googleapis.com/ajax/services/search/web?v=1.0',
                cainfo 'C:\mingw32\msys\local\share\curl\curl-ca-bundle.crt'
                );
        /* Adapt "cainfo" option to your config. The path MUST be written the Windows way */

        CREATE USER MAPPING FOR current_user SERVER www_fdw_google_search_server;

        CREATE FOREIGN TABLE www_fdw_google_search (
          title text,
          link text,
          snippet text,
          q text /* used for easy query specifying */
        ) SERVER www_fdw_google_search_server;

        Note:   "curl --with-ssl" (the default) requiring a certificate, 
        -----   this example only works if we specify the "cainfo" option 
                (".crt" certificate file)

    * Request:
        SELECT title,snippet FROM www_fdw_google_search WHERE q='cat dog' LIMIT 3;

PATH environment variable:

    C:\mingw32\bin;
    C:\mingw32\lib;
    C:\mingw32\msys\local\pgsql\bin;
    C:\mingw32\msys\local\pgsql\lib;
    C:\mingw32\msys\local\bin;
    C:\mingw32\msys\bin;
    C:\mingw32\msys\local\ssl\bin;
    C:\mingw32\i686-w64-mingw32\bin;
    C:\mingw32\i686-w64-mingw32\lib;
    C:\mingw32\opt\bin;

=>

    SET PATH=%PATH%;C:\mingw32\bin;C:\mingw32\lib;C:\mingw32\i686-w64-mingw32\bin;C:\mingw32\msys\local\pgsql\bin;C:\mingw32\msys\local\pgsql\lib;C:\mingw32\msys\local\bin;C:\mingw32\msys\bin;C:\mingw32\msys\local\ssl\bin;C:\mingw32\i686-w64-mingw32\lib;C:\mingw32\opt\bin;

OR, using MSYS:

    export PATH=$PATH:$MGWDIR"bin":$MGWDIR"lib":$MGWDIR$ARCH"/bin:/usr/local/pgsql/bin":/usr/msys/local/pgsql/lib:/usr/local/bin:/usr/bin:/usr/local/ssl/bin:$MGWDIR$ARCH"/lib":$MGWDIR"opt/bin"

TODO: create a ".sh" script that builds the standalone version from the mingw-32/64's install directory. (Identical script for both 32 and 64-bit versions using the environment variables: $ARCH, $SRCDIR and $MGWDIR)

01_Piwik_img

Source: README.md, updated 2013-12-29