Last active
May 6, 2021 13:38
-
-
Save Komzpa/355f48120b579e6c15cd6c827e686291 to your computer and use it in GitHub Desktop.
postgis-on-wsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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