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

Cannot install #20

Closed HenryMehta closed 6 years ago

HenryMehta commented 6 years ago

I'm trying to install pg_similarity following the instructions given in ReadMe.

I'm probably doing something really basic incorrectly but at the stage: USE_PGXS=1 make install I'm getting the following output.

/bin/mkdir -p '/usr/lib/postgresql/9.5/lib'
/bin/mkdir -p '/usr/share/postgresql/9.5/contrib'
/usr/bin/install -c -m 755  pg_similarity.so '/usr/lib/postgresql/9.5/lib/pg_similarity.so'
/usr/bin/install: cannot remove '/usr/lib/postgresql/9.5/lib/pg_similarity.so': Permission denied
/usr/lib/postgresql/9.5/lib/pgxs/src/makefiles/../../src/Makefile.shlib:506: recipe for target 'install-lib-shared' failed
make: *** [install-lib-shared] Error 1

Could you advise what I should do?

HenryMehta commented 6 years ago

I am actually able to get past this stage by running it as sudo, but when I get to CREATE EXTENSION pg_similarity I get :

ERROR: could not open extension control file "/usr/share/postgresql/9.5/extension/pg_similarity.control": No such file or directory

HenryMehta commented 6 years ago

Sorted - tar file did not have everything. When I used zip from here it worked.