I want to create extension for my database using postgis. but it is not able to due to these errors both from command line and interface:
# CREATE EXTENSION IF NOT EXISTS "postgis";
ERROR: extension "postgis" is not available
DETAIL: Could not open extension control file "/www/server/pgsql/share/extension/postgis.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.

Please kindly help what should I need to enable this?