You probably need to install this Postgres extension first in the sytem. On Debian/Ubuntu like sytems I think it is in postgresql-contrib-VERSION package you can install with apt-get.
Its runing in centos , but Package postgresql-contrib-8.4.20-6.el6.x86_64 already installed and this is the latest version, cant find about the citext info either.
Since there is no postgres 9.4 available in official CentOS 6 repositories (and even CentOS 7 has only postgresql 9.2), I do think the typo has been in the first post, or there are some inofficial repositories in the game.
But we are talking about CentOS here, which is one of the slowest but most stable linux distributions I am aware of. AND it is a quasi standard in “enterprise” environments.
I am sorry to add a question in old post, but I think it is better than making duplicate post.
I just installed Fedora 28 and postgresql 10
I tried to do mix ecto.migrate and got an error 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 tried pg_config --sharedir and returns
/usr/share/pgsql
and I can find
/usr/share/pgsql/extension/citext.control
file. but not in /usr/pgsql-10/share/extension directory.
I installed postgresql-contrib as @hubertlepicki said…
but it is not working…
What am I missing here?