Error: 58P01: could not open the extension control file"/usr/share/postgresql10/extension/pgcrypto.control": No such file or directory. The path exists, the file does not. The File Reporter documentation for PostgreSQL points you to the PostgreSQL site and you have to figure it out on your own. I saw no mention of installing a pgcrypto.control extension.