age icon indicating copy to clipboard operation
age copied to clipboard

Compatibility Query: Running Cloned Apache Age Code on Windows OS?

Open sir-sa opened this issue 1 year ago • 2 comments

As an intern at Apache Age, I'm querying if the cloned code is runnable on Windows OS. Seeking guidance to ensure seamless development.

sir-sa avatar May 14 '24 08:05 sir-sa

Please see here

  • Need to set PG_CONFIG environment variable, similar to Postgres version 16 Microsoft Windows build instructions
  • Need Microsoft Visual Studio 2022 latest c compiler with SDK
  • Need to have perl on build machine
  • Need to have windows edition of flex and bison on the machine and edit tools\msvc\config.pl, similar to [Postgres version 16 Microsoft Windows build instructions], (https://www.postgresql.org/docs/current/install-windows-full.html#INSTALL-WINDOWS-FULL-CLEAN-INST) here is example of ./tools/msvc/config.pl on my machine: $ENV{PATH}='C:\ActivePerl\bin;C:\dev\app\buildtool;' . $ENV{PATH};

Please run tools\msvc\build.pl from under root Please note, you may run into some SDK conflicts, please let me know. Need to modify some of the SDK files, here is how it looked on my machine:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winternl.h
STRING ->  STRING_TYPE;
typedef STRING_TYPE *PSTRING_TYPE;

#define STRING STRING_TYPE
#define PSTRING PSTRING_TYPE

C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared\wtypes.h
DECIMAL -> T_DECIMAL
typedef DECIMAL *LPDECIMAL; -> typedef T_DECIMAL *LPDECIMAL;
#define DECIMAL T_DECIMAL

MironAtHome avatar May 21 '24 19:05 MironAtHome

I run Apache AGE on WSL, Windows, if that's what you're looking for. You can also use Docker, which is the easiest way to install Apache AGE.

markgomer avatar Jun 04 '24 14:06 markgomer

This issue is stale because it has been open 60 days with no activity. Remove "Abondoned" label or comment or this will be closed in 14 days.

github-actions[bot] avatar Sep 18 '24 00:09 github-actions[bot]

This issue was closed because it has been stalled for further 14 days with no activity.

github-actions[bot] avatar Oct 02 '24 00:10 github-actions[bot]