jsquery
jsquery copied to clipboard
Fatal error install - ubuntu
during installation an error occurs
server:/tmp/jsquery# 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 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -DLINUX_OOM_SCORE_ADJ=0 -fno-omit-frame-pointer -fpic -I. -I./ -I/usr/include/postgresql/9.4/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5 -c -o jsquery_gram.o jsquery_gram.c
jsquery_gram.y:50:26: fatal error: jsquery_gram.h: Нет такого файла или каталога
compilation terminated.
make: *** [jsquery_gram.o] Ошибка 1
$ git clone https://github.com/akorotkov/jsquery.git
$ cd jsquery
add $ su postgres
$ make USE_PGXS=1
$ sudo make USE_PGXS=1 install
$ make USE_PGXS=1 installcheck
$ psql DB -c "CREATE EXTENSION jsquery;"
Could you try to clean and make again?
make USE_PGXS=1 clean
make USE_PGXS=1
Also could you show output of following commands?
bison --version
flex --version
На самом деле вопрос уже решил, выше оставил комментарий. Часть команд в инструкции нужно делать от рута, а часть от юзера postgres.