Tae
Tae

Reputation: 313

could not open extension control file for Citext in postgresql 10

I just installed postgresql 10 in Fedora 28. then I did a mix ecto.migrate but it says

** (Postgrex.Error) ERROR 58P01 (undefined_file): could not open extension control file "/usr/pgsql-10/share/extension/citext.control": No such file or directory

I installed postgresql10-contrib also..

pg_config --sharedir returns

/usr/share/pgsql

and I can find

/usr/share/pgsql/extension/citext.control

file. but not in /usr/pgsql-10/share/extension directory.

what am I missing?

Upvotes: 2

Views: 3602

Answers (2)

Aníbal Leite
Aníbal Leite

Reputation: 21

On CentOS or RHEL, install the Postgres Extensions library postgresql-contrib. You can do this with dnf with the following command:

sudo dnf install postgresql-contrib

Upvotes: 2

Tae
Tae

Reputation: 313

Just installed "postgresql10-contrib-10.4-1PGDG.f28.x86_64.rpm" and it works!

Upvotes: 1

Related Questions