PostgreSQL error when trying to create an extension

后端 未结 15 836

ERROR: could not open extension control file \"/usr/share/postgresql/9.1/extension/postgis.control\": No such file or directory

Is what I get when I tr

15条回答
  •  隐瞒了意图╮
    2020-12-23 20:21

    The following will get you a working postgis install on Ubuntu 12.04 (Note: also tested on 13.10)

    echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/postgis.list
    wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
    sudo apt-get update
    sudo apt-get install postgresql-9.3 postgresql-9.3-postgis-2.1 postgresql-client-9.3
    sudo -u postgres psql -c 'create extension postgis;'
    

    Based on the docs at https://wiki.postgresql.org/wiki/Apt

提交回复
热议问题