Skip to content

Instantly share code, notes, and snippets.

@pigreco
Last active May 7, 2023 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigreco/52b79a0bb516db04430c073efdcae912 to your computer and use it in GitHub Desktop.
Save pigreco/52b79a0bb516db04430c073efdcae912 to your computer and use it in GitHub Desktop.
per compilare GDAL dev in linux

il git clone, lo farei a partire da una cartella tmp, da creaere dentro la home del tuo utente su linux

sudo apt install libgeos-dev

sudo apt-get install swig
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install libproj-dev proj-data proj-bin unzip -y
sudo apt install curl && sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libcrypto++-dev libcrypto++-doc libcrypto++-utils

git clone https://github.com/OSGeo/gdal.git
cd gdal
sudo mkdir build
cd build

sudo cmake  GDAL_USE_GEOS=ON ..
sudo cmake --build .
sudo cmake --build . --target install

per verificare:

gdalinfo --version

NB: occorre installare prima GEOS (sudo apt install libgeos-dev) e Python (sudo apt install python3-pip)

@pigreco
Copy link
Author

pigreco commented May 7, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment