Steps...
git clone --depth 1 https://github.com/OSGeo/gdal.git trunk
cd trunk
git filter-branch --prune-empty --subdirectory-filter gdal/ HEAD
If on Fedora make sure that gcc-c++ redhat-rpm-config are installed
pip install --global-option build_ext --global-option '--include-dirs=/usr/local/opt/gdal2/include' --global-option '--library-dirs=/usr/local/opt/gdal2/lib' GDAL
If you want to build with a special compiler (i.e., brew installed clang) you can do the ./bootstrap.sh
and then update the project-config.jam
file to reference the compiler you want to use.
# Automatically generated by bootstrap.sh
import option ;
import feature ;
# Compiler configuration. This definition will be used unless
# you already have defined some toolsets in your user-config.jam
sudo yum install python-devel gcc gcc-c++ | |
wget --http-user='user' --http-password='passwd' http://artifactory.geobigdata.io:8080/artifactory/gbdx-generic-local/gdal-2.1-4_4_23-31_54_amzn1_x86_64-0.1-28.x86_64.rpm | |
sudo yum localinstall gdal-2.1-4_4_23-31_54_amzn1_x86_64-0.1-28.x86_64.rpm | |
source /etc/profile.d/gdal-2.1.sh | |
virtualenv gdalenv | |
source gdalenv/bin/activate |
#!/bin/bash | |
# derived from https://bitbucket.org/bfx/jdk-download | |
if [ "$#" -lt 1 ]; then | |
echo -e "Download the oracle JDK from command line\n" | |
echo -e " $0 <version> <platform> [<build>]\n" | |
echo " <version> Something like 8u40" | |
echo " <build> The internal build number used by oracle, to avoid guessing and" | |
echo -e " trying to download starting from 99 to 1 (build 0, really?!!)\n" |
Based heavily on this old guide by TimLinux http://linfiniti.com/2012/09/remote-debugging-qgis-plugins-using-pycharm/
import sys
sys.path.append('/Applications/PyCharm.app/Contents/debug-eggs/pycharm-debug.egg')
cd ~/Downloads && wget http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-amd64.tar.gz && tar -zxvf jai_imageio-1_1-lib-linux-amd64.tar.gz && sudo cp jai_imageio-1_1/lib/*.jar /usr/java/latest/jre/lib/ext/ && sudo cp jai_imageio-1_1/lib/*.so /usr/java/latest/jre/lib/amd64/
cd ~/Downloads && wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64.tar.gz && tar -zxvf jai-1_1_3-lib-linux-amd64.tar.gz && sudo cp jai-1_1_3/lib/*.jar /usr/java/latest/jre/lib/ext/ && sudo cp jai-1_1_3/lib/*.so /usr/java/latest/jre/lib/amd64/