forked fromtvondra/shared_ispell
- Notifications
You must be signed in to change notification settings - Fork1
Closed
Labels
Description
The product fails to install (as well as build), when one follows the documentation:
$ makeMakefile:20: ../../src/Makefile.global: No such file or directoryMakefile:21: /contrib/contrib-global.mk: No such file or directorymake: *** No rule to make target '/contrib/contrib-global.mk'. Stop.
$ make installMakefile:20: ../../src/Makefile.global: No such file or directoryMakefile:21: /contrib/contrib-global.mk: No such file or directorymake: *** No rule to make target '/contrib/contrib-global.mk'. Stop.
But it runs pretty well when used withUSE_PGXS=1
:
$ make USE_PGXS=1gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -pie -fno-omit-frame-pointer -fPIC -I. -I./ -I/usr/include/postgresql/9.6/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/mit-krb5 -c -o src/shared_ispell.o src/shared_ispell.cgcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -pie -fno-omit-frame-pointer -fPIC -shared -o shared_ispell.so src/shared_ispell.o -L/usr/lib/x86_64-linux-gnu -Wl,-z,relro -Wl,-z,now -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,--as-needed
$ sudo make USE_PGXS=1 install/bin/mkdir -p '/usr/lib/postgresql/9.6/lib'/bin/mkdir -p '/usr/share/postgresql/9.6/extension'/bin/mkdir -p '/usr/share/postgresql/9.6/extension'/usr/bin/install -c -m 755 shared_ispell.so '/usr/lib/postgresql/9.6/lib/shared_ispell.so'/usr/bin/install -c -m 644 .//shared_ispell.control '/usr/share/postgresql/9.6/extension/'/usr/bin/install -c -m 644 .//shared_ispell--1.1.0.sql '/usr/share/postgresql/9.6/extension/'
Probably, the documentation is unclear about theUSE_PGXS
parameter.