Skip to content

Fails to install #1

Closed
Closed
@skvskv

Description

@skvskv

The product fails to install (as well as build), when one follows the documentation:

$ make
Makefile:20: ../../src/Makefile.global: No such file or directory
Makefile:21: /contrib/contrib-global.mk: No such file or directory
make: *** No rule to make target '/contrib/contrib-global.mk'.  Stop.
$ make install
Makefile:20: ../../src/Makefile.global: No such file or directory
Makefile:21: /contrib/contrib-global.mk: No such file or directory
make: *** No rule to make target '/contrib/contrib-global.mk'.  Stop.

But it runs pretty well when used with USE_PGXS=1:

$ make USE_PGXS=1
gcc -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.c
gcc -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 the USE_PGXS parameter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions