Skip to content

Instantly share code, notes, and snippets.

@Komzpa
Last active May 6, 2021 13:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Komzpa/355f48120b579e6c15cd6c827e686291 to your computer and use it in GitHub Desktop.
Save Komzpa/355f48120b579e6c15cd6c827e686291 to your computer and use it in GitHub Desktop.
postgis-on-wsl
chmod a+x ~
apt update
apt install build-essential autoconf automake libtool postgresql-server-dev-all libxml2-dev libgeos-dev libproj-dev libxml2-utils xsltproc bison postgresql-10
service postgresql start
su postgres -c 'createuser root'
su postgres -c 'psql -d postgres -c "alter user root superuser;"'
git clone git@github.com:postgis/postgis.git
cd postgis
./autogen.sh
./configure --without-raster
make -j check
apt install gdb libgdal-dev
vim /etc/apt/sources.list
:%s/bionic/cosmic/g
:wq
apt update
apt install libsfcgal-dev gdb gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment