sraoss / pg_ivm

IVM (Incremental View Maintenance) implementation as a PostgreSQL extension
Other
943 stars 27 forks source link

Installation #35

Open quartermaine opened 1 year ago

quartermaine commented 1 year ago

I am tried the make install, but I am getting the following error:

make: *** No rule to make target 'install'. Stop.

yugo-n commented 1 year ago

Could you please try to set path to pg_config command before executing make install?

quartermaine commented 1 year ago

Yes, I tried the:

make PG_CONFIG=C:\Program Files\PostgreSQL\15\bin\pg_config.exe

but I am getting

make: *** No rule to make target 'Files\PostgreSQL\15\bin\pg_config.exe'. Stop.

should I add the PATH inside the Makefile?

yugo-n commented 1 year ago
make: *** No rule to make target 'Files\PostgreSQL\15\bin

It seems that the string following the first space character is regarded as a target. How about quoting the path like this?

 make PG_CONFIG="C:\Program Files\PostgreSQL\15\bin\pg_config.exe"
quartermaine commented 1 year ago

I tried this recommendation but also getting the same error.

make: *** No rule to make target 'Files\PostgreSQL\15\bin\pg_config.exe'. Stop.

yugo-n commented 1 year ago

Maybe you need to escape the space character, for example,

 make PG_CONFIG="C:\Program\ Files\PostgreSQL\15\bin\pg_config.exe"

although I'm not sure \ is the right escape character because I am not familiar with Windows command line...

koureasstavros commented 1 year ago

Try something like this C:\Test^ Folder\Test^ File.txt

quartermaine commented 1 year ago

I set the PATH inside the Makefile as:

PG_CONFIG = C:\%ProgramFiles%\PostgreSQL\15\bin\pg_config.exe

and managed to surpass the space in the PATH.

Then I run 'make install ' and got this error: process_begin: CreateProcess(NULL, C:\%ProgramFiles%\PostgreSQL\15\bin\pg_config.exe --pgxs, ...) failed. Makefile:18: pipe: No error make: *** No rule to make target 'install'. Stop.

It seems to start the process but in fails.

quartermaine commented 1 year ago

Furthermore, I tried on Docker container and when I run make install I got gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-ty pe -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Wer ror=format-security -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/postgresql/15/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOUR CE -I/usr/include/libxml2   -c -o createas.o createas.c

yugo-n commented 1 year ago

Then I run 'make install ' and got this error:

process_begin: CreateProcess(NULL, C:\%ProgramFiles%\PostgreSQL\15\bin\pg_config.exe --pgxs, ...) failed. Makefile:18: pipe: No error make: *** No rule to make target 'install'. Stop.

Hmm... What do you get when running C:\%ProgramFiles%\PostgreSQL\15\bin\pg_config.exe --pgxs? Does it succeed?

Furthermore, I tried on Docker container and when I run make install I got

In that case, did it succeed to build pg_ivm? Or, is there still any problem?

unforgettablexD commented 11 months ago

any idea how to install it on mac?

yugo-n commented 11 months ago

any idea how to install it on mac?

I am afraid I cannot answer it because I'm not a Mac user, but could not use configure & make on your mac?

nguyenhuyphuoc commented 8 months ago

I set the PATH inside the Makefile as:

PG_CONFIG = C:\%ProgramFiles%\PostgreSQL\15\bin\pg_config.exe

and managed to surpass the space in the PATH.

Then I run 'make install ' and got this error: process_begin: CreateProcess(NULL, C:\%ProgramFiles%\PostgreSQL\15\bin\pg_config.exe --pgxs, ...) failed. Makefile:18: pipe: No error make: *** No rule to make target 'install'. Stop.

It seems to start the process but in fails.

I set the PATH inside the Makefile as: C:/PROGRA~1/PostgreSQL/13/bin/pg_config.exe it also surpass the space as you did and then I got the same problem like yours I did some research and found out that the PGXS is only on Unix-like platform