eulerto/pg_similarity

Cannot install

HenryMehta opened this issue · 2 comments

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?

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

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