Re: Could not open extension control file “/usr/share/postgresql/10/extension/pg_similarity.control”: No such file or directory

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: hmidi slim <hmidi(dot)slim2(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Could not open extension control file “/usr/share/postgresql/10/extension/pg_similarity.control”: No such file or directory
Date: 2018-03-16 22:59:04
Message-ID: 849aee00-0209-4387-0870-cf3c847846a8@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 03/16/2018 03:18 PM, hmidi slim wrote:
> Hi,
> I’m trying to create the extension pg_similarity
> <https://github.com/eulerto/pg_similarity>
> (https://github.com/eulerto/pg_similarity) in a docker container.
> Dockerfile:
>
> |FROMpostgres:10ENV POSTGRES_USER userENV POSTGRES_PASSWORD userENV
> POSTGRES_DB user_db RUN apt-get update\&&apt-get upgrade -y \&&apt-get
> -y install \postgresql-server-dev-all \wget \make \gcc \&&rm -rf
> /var/lib/apt/lists/* RUN wget -c
> 'pgfoundry.org/frs/download.php/2237/pg_similarity-0.0.19.tgz
> <http://pgfoundry.org/frs/download.php/2237/pg_similarity-0.0.19.tgz>'
> RUN tar -zxf pg_similarity-0.0.19.tgz RUN cd pg_similarity \ &&
> USE_PGXS=1 make \ && USE_PGXS=1 make install
>
> Then I build the image and I run the container. I exec into the container:
>
>
> |psql -U user-d user_db psql (10.3(Debian 10.3-1.pgdg90+1))Type
> "help"forhelp.user_db=#createextension pg_similarity;|
>
>
> I got this error:
>
> |ERROR:could notopenextension control
> file"/usr/share/postgresql/10/extension/pg_similarity.control":No such
> fileordirectory|
>
>
> Under |/usr/share/postgres/10/contrib| I find the file
> pg_similarity.sql.How can I fix this problem?

But do you see pg_similarity.control which what the error is complaining
about?

>
>
> |
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hmidi slim 2018-03-17 10:03:17 Re: Could not open extension control file “/usr/share/postgresql/10/extension/pg_similarity.control”: No such file or directory
Previous Message hmidi slim 2018-03-16 22:18:16 Could not open extension control file “/usr/share/postgresql/10/extension/pg_similarity.control”: No such file or directory