<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Dear Regina & Vicky<div><br></div><div>We have tested the instructions below for building MobilityDB on Windows with msys2 and they work on arbitrary machines. </div><div><br></div><div>However, while I have already PostgreSQL and PostGIS installed on my Windows computer, the instructions below reinstall PostgreSQL and PostGIS on msys2 and build with those versions instead of the already installed ones. </div><div><br></div><div>Can you tell us whether this is the right way to do the build or how we can improve it ?</div><div><br></div><div>Many thanks for your help</div><div><br></div><div>--------------------------------------------------------------------------</div><div><div>Download the msys2 installer from <a href="https://www.msys2.org/" target="_blank">https://www.msys2.org/</a> and follow the instructions. In the following we assume that you install msys2 on drive D:<br><br>On the MSYS2 MSYS shell run the following commands to install the required dependencies<br><br>pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-postgresql mingw-w64-x86_64-postgis<br>pacman -S mingw-w64-x86_64-gsl mingw-w64-i686-xz git<br><br>Run "MSYS MinGW 64-bit" from Start menu and run the following commands<br><br>git clone <a href="https://github.com/estebanzimanyi/MobilityDB.git" target="_blank">https://github.com/estebanzimanyi/MobilityDB.git</a><br>cd MobilityDB<br>mkdir build<br>cd build<br>git checkout msys2-build<br>cmake -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" ..<br>cmake --build .<br>cmake --install .<br><br>You need to define where the databases will reside on your hard disk. In the following we assume the location D:/msys64/usr/local/pgsql/data. Run the following commands<br><br>export PGDATA="D:/msys64/usr/local/pgsql/data"<br>rm -rf $PGDATA # DANGER ! This remove all existing databases in that directory<br>initdb<br><br>To start the database you need to define the port used by PostgreSQL to listen for connections from client applications. This is typically 5432 unless you have other PostgreSQL versions installed. On msys2 you can use the following command to see the ports already in use<br><br>netstat -a -o | grep LISTENING<br><br>In the following we assume that we use the port 5433. Then issue the following command<br><br>export PGPORT=5433<br>pg_ctl start<br>createdb mydb<br>psql mydb<br><br>Now on psql issue the following commands<br><br>CREATE EXTENSION mobilitydb CASCADE;<br>SELECT mobilitydb_version();</div><div><br></div><div>You should see something like the following <br><br>                 mobilitydb_full_version<br>---------------------------------------------------------<br> MobilityDB 1.0.0 Beta 3, PostgreSQL 13.3, PostGIS 2.5.5<br>(1 row)</div><div><br>You are now ready to use MobilityDB !<br><div><div dir="ltr"><div dir="ltr"><div>--------------------------------------------------------------------------<br></div></div></div></div></div></div><div><br></div></div>