eulerto / pg_similarity

set of functions and operators for executing similarity queries
BSD 3-Clause "New" or "Revised" License
363 stars 39 forks source link

How to install on version 9.5 #11

Closed zloi47 closed 8 years ago

zloi47 commented 8 years ago

when running "make" in builds in directory for 9.4, what should I change to force it install on postgres 9.5?

eulerto commented 8 years ago

Is postgres 9.5 in your PATH?

$ echo $PATH $ export PATH=/home/foo/pg951/bin:$PATH $ USE_PGXS=1 make

If it does not work, show me the commands.

zloi47 commented 8 years ago

I am somehow new to ubuntu actually, but when searching for pg_config in ubuntu, it shows only:

/usr/lib/postgresql/9.4/bin/pg_config /usr/bin/pg_config

zloi47 commented 8 years ago

I installed posgresql-server-dev-9.5 and it fixed the problem. When running cosine, it gives me error:

ERROR: argument exceeds the maximum length of 1024 bytes.

Any ideas how to increase limit?

eulerto commented 8 years ago

PGS_MAX_STR_LEN at similarity.h