You can solve this problem in the following way.
I installed the UUID library
apt-get install libossp-uuid-dev uuid-dev -y
Then I installed the postgresql add-ons
apt-get install postgresql-contrib
After installing the dependencies.
Run the commands:
$ cd /usr/local/pgsql/contrib/uuid-ossp
$make
# make install
Log in with the postgresql user
$ sudo su - postgres
run the sql:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
With this your problem should have been resolved like mine.
If you have any questions, call me, I can try to help you.
translated with google translate