Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/creepy-pasta101/postgis-termux
Its a short script to install postgis plugin for termux.
https://github.com/creepy-pasta101/postgis-termux
Last synced: 3 days ago
JSON representation
Its a short script to install postgis plugin for termux.
- Host: GitHub
- URL: https://github.com/creepy-pasta101/postgis-termux
- Owner: creepy-pasta101
- Created: 2021-03-21T08:41:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-17T04:03:48.000Z (almost 4 years ago)
- Last Synced: 2024-12-04T11:06:02.845Z (2 months ago)
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Postgis-termux
Its a short script to install postgis plugin for termux.Copy this script and runππ
```
pkg install build-essential
pkg install wget curl libiconv postgresql libxml2 libsqlite readline libiconv proj libgeos json-c libprotobuf-c gdal
wget https://download.osgeo.org/postgis/source/postgis-3.1.0.tar.gz
tar xfz postgis-3.1.0.tar.gz
cd postgis-3.1.0
./configure --prefix=$PREFIX --with-projdir=$PREFIX
make -j8
make install
mkdir -p $PREFIX/var/lib/postgresql
initdb $PREFIX/var/lib/postgresql
pg_ctl -D $PREFIX/var/lib/postgresql start
psql -l
createdb gis
```
Now you can also install it by
```
wget https://github.com/suhan-paradkar/Postgis-termux/releases/download/v3.1.0/postgis-plugin_3.1.0.0_all.deb
dpkg -i postgis-plugin_3.1.0.0_all.deb
```Thanks for @seabre to come up with itπ