Open quartermaine opened 2 years ago
Could you please try to set path to pg_config
command before executing make install
?
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?
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"
I tried this recommendation but also getting the same error.
make: *** No rule to make target 'Files\PostgreSQL\15\bin\pg_config.exe'. Stop.
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...
Try something like this C:\Test^ Folder\Test^ File.txt
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.
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
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?
any idea how to install it on mac?
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?
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
I am tried the make install, but I am getting the following error:
make: *** No rule to make target 'install'. Stop.