From: Adrian Klaver <adrian.klaver@aklaver.com>
To: hmidi slim <hmidi.slim2@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Could not open extension control file “/usr/share/postgresql/10/extension/pg_similarity.control”: No such file or directory
Date: Sat, 17 Mar 2018 07:06:36 -0700
Message-ID: <2a8967ae-4d8e-1b14-8c85-a95ec62be04e@aklaver.com> (raw)
In-Reply-To: <CAMsqVxtTR0NDZdLmEGtxm==iz0idFB1g1V=xrGPN_T67Xyzb2Q@mail.gmail.com>
References: <CAMsqVxvp4haqnwrZ=e5u_ojyvETTeMsq6ZyhpLoWbs1yRMS4fg@mail.gmail.com>
<849aee00-0209-4387-0870-cf3c847846a8@aklaver.com>
<CAMsqVxtTR0NDZdLmEGtxm==iz0idFB1g1V=xrGPN_T67Xyzb2Q@mail.gmail.com>
On 03/17/2018 03:03 AM, hmidi slim wrote:
> I didn't find the file pg_similarity.control when I run find / -name
> 'pg_similarity.control' 2> /dev/null
In your original post you use the file from pgFoundry:
pgfoundry.org/frs/download.php/2237/pg_similarity-0.0.19.tgz
When I installed from that file I got:
/usr/bin/mkdir -p '/usr/local/pgsql10/lib64'
/usr/bin/mkdir -p '/usr/local/pgsql10/share/contrib'
/usr/bin/install -c -m 755 pg_similarity.so
'/usr/local/pgsql10/lib64/pg_similarity.so'
/usr/bin/install -c -m 644 .//uninstall_pg_similarity.sql
pg_similarity.sql '/usr/local/pgsql10/share/contrib/'
Note no pg_similarity.control and also it did not install to
~/share/extension but to ~/share/contrib.
From here:
https://github.com/eulerto/pg_similarity
The latest version is 1.0 not 0.0.19. I did:
git clone https://github.com/eulerto/pg_similarity.git
and then ran the make process and got:
/usr/bin/mkdir -p '/usr/local/pgsql10/lib64'
/usr/bin/mkdir -p '/usr/local/pgsql10/share/extension'
/usr/bin/mkdir -p '/usr/local/pgsql10/share/extension'
/usr/bin/install -c -m 755 pg_similarity.so
'/usr/local/pgsql10/lib64/pg_similarity.so'
/usr/bin/install -c -m 644 .//pg_similarity.control
'/usr/local/pgsql10/share/extension/'
/usr/bin/install -c -m 644 .//pg_similarity--1.0.sql
.//pg_similarity--unpackaged--1.0.sql pg_similarity.sql
'/usr/local/pgsql10/share/extension/'
The pg_similarity.control was installed and the extension was installed
in ~/share/extension.
More importantly I could CREATE the extension:
test=# CREATE EXTENSION pg_similarity;
CREATE EXTENSION
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, hmidi.slim2@gmail.com
Subject: Re: Could not open extension control file “/usr/share/postgresql/10/extension/pg_similarity.control”: No such file or directory
In-Reply-To: <2a8967ae-4d8e-1b14-8c85-a95ec62be04e@aklaver.com>
References: <CAMsqVxvp4haqnwrZ=e5u_ojyvETTeMsq6ZyhpLoWbs1yRMS4fg@mail.gmail.com> <849aee00-0209-4387-0870-cf3c847846a8@aklaver.com> <CAMsqVxtTR0NDZdLmEGtxm==iz0idFB1g1V=xrGPN_T67Xyzb2Q@mail.gmail.com> <2a8967ae-4d8e-1b14-8c85-a95ec62be04e@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox