Skip to content

Set up gdal on Ubuntu 14.04

6. May 2014

Recently, I updated my system to Ubuntu 14.04 and now I noticed that gdal is not running in Python anymore!

Importing gdal (respectively ‘osgeo’) broke with a command, that ended like:

"...version GDAL_1.8 not defined in file with link time reference"

After a little investigation…I decided to (Re-) build gdal from source…like suggested:

But in contrast to the description…I installed the latest stable version of gdal (1.11.0):

So, here’s what I did:

Ctrl+Alt+T (Open terminal)

cd ~/folder/for/builds/from/source

sudo apt-get install build-essential python-all-dev

tar xvfz gdal-1.11.0.tar.gz
cd gdal-1.11.0

./configure --with-python
sudo make install

The answer on recommends also to update the shared library cache…but this was not necessary, in my case!

Now it works perfect…again!

  1. Dave permalink

    Excellent! Was struggling to get the rgdal package installed under Ubuntu … no matter what I did, I couldn’t get it sorted. Then I stumbled on your post and boom! Installed package no probs! Thanks for sharing!

  2. Shane permalink

    Thanks, it worked perfectly!

Trackbacks & Pingbacks

  1. GDAL build from source throwing OpenSSL errors on Ubuntu | DL-UAT

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: