jaiminpan / pg_scws Goto Github PK
View Code? Open in Web Editor NEWPostgresql full-text search extension for chinese
License: BSD 3-Clause "New" or "Revised" License
Postgresql full-text search extension for chinese
License: BSD 3-Clause "New" or "Revised" License
when i use command “USE_PGXS=1 make && make install”
then
Not an internal command nor an external command
OS: Elementary OS Loki
Postgresql 9.5.5
Logged in as sudoer
Source downloaded into ~/Downloads/
Running command USE_PGXS=1 make && make install
stdout:
[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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o pg_scws.o pg_scws.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/charset.o libscws/charset.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/crc32.o libscws/crc32.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/pool.o libscws/pool.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/scws.o libscws/scws.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/xdict.o libscws/xdict.c
libscws/xdict.c: In function ‘_xdict_open_txt’:
libscws/xdict.c:108:23: warning: ignoring return value of ‘realpath’, declared with attribute warn_unused_result [-Wunused-result]
# define _realpath realpath
^
libscws/xdict.c:120:2: note: in expansion of macro ‘_realpath’
_realpath(fpath, buf);
^
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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/darray.o libscws/darray.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/rule.o libscws/rule.c
libscws/rule.c: In function ‘scws_rule_new’:
libscws/rule.c:190:17: warning: ‘rtail’ may be used uninitialized in this function [-Wmaybe-uninitialized]
rtail->next = a;
^
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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/lock.o libscws/lock.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/xdb.o libscws/xdb.c
libscws/xdb.c: In function ‘xdb_create’:
libscws/xdb.c:233:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, &xhdr, sizeof(xhdr));
^
libscws/xdb.c: In function ‘xdb_close’:
libscws/xdb.c:255:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, &x->fsize, sizeof(x->fsize));
^
libscws/xdb.c: In function ‘_xdb_read_data’:
libscws/xdb.c:61:3: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
read(x->fd, buf, len);
^
libscws/xdb.c: In function ‘xdb_nput’:
libscws/xdb.c:310:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, value, vlen);
^
libscws/xdb.c:316:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, &vlen, sizeof(vlen));
^
libscws/xdb.c:339:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, buf, pnew.len);
^
libscws/xdb.c:340:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, value, vlen);
^
libscws/xdb.c:346:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, &pnew, sizeof(pnew));
^
libscws/xdb.c: In function ‘_xdb_reset_nodes’:
libscws/xdb.c:531:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(x->fd, &ptr, sizeof(xptr_st));
^
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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -DHAVE_STRUCT_FLOCK -DHAVE_FLOCK -DHAVE_NAME_RULE -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o libscws/xtree.o libscws/xtree.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 -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -shared -o pg_scws.so pg_scws.o libscws/charset.o libscws/crc32.o libscws/pool.o libscws/scws.o libscws/xdict.o libscws/darray.o libscws/rule.o libscws/lock.o libscws/xdb.o libscws/xtree.o -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,--as-needed ](url)
Makefile:25: ../../src/Makefile.global: No such file or directory
Makefile:26: /contrib/contrib-global.mk: No such file or directory
make: *** No rule to make target '/contrib/contrib-global.mk'. Stop.
Should I download the source into specific directory? Should I run make
with sudo
? Should I run make install
with sudo
?
test=# select * from to_tsvector('scwscfg', '李小福是创新办主任也是云计算方面的 专家');
没有分词的结果??请教,是什么问题。
my postgres is installed with yum,how can this pg_scws extension install with it
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.