age icon indicating copy to clipboard operation
age copied to clipboard

Can't install or build from source for PostgreSQL 11 on Windows

Open ewrayjohnson opened this issue 3 years ago • 2 comments

I am posting this as a bug since I get errors.

First I tried create extension age; and got:

ERROR: could not open extension control file "C:/Program Files/PostgreSQL/11/share/extension/age.control": No such file or directory SQL state: 58P01

Since I could not find any windows binaries, I downloaded the source. I first placed the following files in my C:\Program Files\PostgreSQL\11\share\extension folder:

age.control age--1.0.0.sql

I again tried create extension age; and got:

ERROR: could not access file "$libdir/age": No such file or directory SQL state: 58P01

I then tried to run make install and got:

Makefile:106: Files/PostgreSQL/11/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory make: *** No rule to make target 'Files/PostgreSQL/11/lib/pgxs/src/makefiles/pgxs.mk'. Stop.

I then downloaded PostgreSQL source and copied the contents of its src folder to my C:\Program Files\PostgreSQL\11\lib\pgxs\src folder and Then I tried again to run make install and got:

C:/PROGRA~1/PostgreSQL/11/lib/pgxs/src/makefiles/pgxs.mk:226: /src/Makefile.shlib: No such file or directory make: *** No rule to make target '/src/Makefile.shlib'. Stop.

I can't find any good instructions on how to get things installed and running on Windows.

HELP

ewrayjohnson avatar May 16 '22 14:05 ewrayjohnson

Currently AGE supports Linux compilation. If you are on windows machine trying docker would be quit useful in your case.

On Mon, May 16, 2022 at 4:28 PM ewrayjohnson @.***> wrote:

First I tried create extension age; and got:

ERROR: could not open extension control file "C:/Program Files/PostgreSQL/11/share/extension/age.control": No such file or directory SQL state: 58P01

Since I could not find any windows binaries, I downloaded the source. I first placed the following files in my C:\Program Files\PostgreSQL\11\share\extension folder:

age.control age--1.0.0.sql

I again tried create extension age; and got:

ERROR: could not access file "$libdir/age": No such file or directory SQL state: 58P01

I then tried to run make install and got:

Makefile:106: Files/PostgreSQL/11/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory make: *** No rule to make target 'Files/PostgreSQL/11/lib/pgxs/src/makefiles/pgxs.mk'. Stop.

I then downloaded PostgreSQL source and copied the contents of its src folder to my C:\Program Files\PostgreSQL\11\lib\pgxs\src folder and Then I tried again to run make install and got:

C:/PROGRA~1/PostgreSQL/11/lib/pgxs/src/makefiles/pgxs.mk:226: /src/Makefile.shlib: No such file or directory make: *** No rule to make target '/src/Makefile.shlib'. Stop.

I can't find any good instructions on how to get things installed and running on Windows.

HELP

— Reply to this email directly, view it on GitHub https://github.com/apache/incubator-age/issues/216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKYCL67K6MPEO6RVFWKZNTVKJLQRANCNFSM5WBV5NVQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

muhammadshoaib avatar May 16 '22 14:05 muhammadshoaib

We also have tested the AGE version with WSL you can also compile using WSL on windows.

muhammadshoaib avatar Jul 25 '22 08:07 muhammadshoaib

This issue has been considered resolved.

muhammadshoaib avatar Jun 26 '23 03:06 muhammadshoaib