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?