selimnairb's answer is close but you wont have the headers unless you've installed libgdal-dev:
sudo apt-get install libgdal-dev
with that done,
pip install GDAL
The compilation ran to completion and I have GDAL in my virtual env. Phew!
(edit 2018) Note:
The instructions on the QGIS download site are not as intuitive as I'd like, but they do work when you know the command syntax:
First, what version of Debian Linux (Ubuntu / Mint) are you running?
The codename of your APT repository will depend on the version of the OS and which version of QGIS you can run.
QGIS 3.x will run on Ubuntu 18.04 (bionic) and ...
To create SVG symbols with modifiable fill color, stroke color and stroke width in QGIS, you should replace the style attribute from the path element with these 3 attributes:
If you are using InkScape, after writing the new SVG file, edit the file and replace the ...
You can use ubuntugis ppa, which contains everything you need:
$ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install qgis
The system will take care after the necessary dependencies
Your problem also suggests that you have broken dependencies for qgis. One way to fix this is to clean your cache by ...
Τhe header files cannot be found for some reason. Maybe you you are operating inside a Virtual Enviroment or they are not where they should be for some reason. In any case you can specify the include dirs when installing gdal via pip.
first download python's gdal :
pip install --no-install GDAL
in later versions of pip (>= 9.0.0) pip install --no-install ...
It looks like there actually is Xenial support in the debian repository and although I haven't tried the following solution myself I guess it is worth a try.
Before trying the following I would uninstall all previous qgis packages using sudo apt-get remove qgis python-qgis qgis-plugin-grass and remove deb http://qgis.org/debian wily main and deb-src http://...
Got the same problem on Linux Mint and finally fixed it.
The problem is that you've installed a few python libraries and one of them is a dependency of QGIS.
QGIS ~2.18 works fine with Scipy 0.17, and after upgrade this library to the newest version you have 0.19.
QGIS won't load with 0.19 because libqhull error.
All you need to do is downgrade, simply:
If you have Ubuntu 12.04, then you should have PostgreSQL 9.1, which makes things awesome for PostGIS 2.0, where you can use use the new EXTENSION framework. To spatially enable a database, use the DDL from a SQL window:
CREATE EXTENSION postgis;
See other details for installing PostGIS 2.0 from source for Ubuntu 12.04 here.
If you are using PostGIS 1.5, ...
After following a subset of this advice, this is how I got the Python GDAL 1.11.0 (the solution should be version-independent, see below) install to work on Ubuntu 14.04 with pip:
sudo apt-get install libgdal-dev libgdal1h
pip install by passing along the include path (prefix with sudo for system-wide install) and instructing pip to ...
I was also following the OP's installation method of PostgreSQL and PostGIS, namely
sudo apt-get install postgresql-9.4-postgis-2.1 pgadmin3 postgresql-contrib-9.4
I enabled the PostGIS extension in a database but didn't get shp2pgsql to work until I did
sudo apt-get install postgis
as listed toward the bottom of the page. Why postgresql-9.4-postgis-2.1 ...
Following the advice at the postgis-users maillist it was possible to identify the existence of outdated ligbeos libraries as the source of the problem:
$ locate libgeos_c.so
Going from what @user30184 said in the comment.
This issue is that the gdal2tiles.py script tells gdal to output 'mercator' as EPSG:900913. This is fine as long as it knows how to convert to this.
The fix is to change the following line in gdal2tile.py (line 785):
if self.options.profile == 'mercator':
While your database is technically spatial at this point, you would only be working with the inbuilt pg geometry types.
In order to complete your installation, you do need to run the scripts as suggested.
You can find them in your /usr/share/postgresql/[version number]/contrib/ postgis sub-directory.
You should see the following:
At present ArcGIS Desktop is not supported on the Linux platform but you can install Server platform software on Linux such as ArcGIS Server.
For more details please check Similar question: ArcGIS for Desktop on Linux?
See also Desktop GIS for Linux (in Linux Journal)
I suspect you'll get a lot of subjective answers to this question, but here's some (hopefully objective!) points to keep in mind:
running Linux natively will always be faster than running it in a virtual machine, so dual booting will be the faster option if you want to run under Linux
Linux filesystems are usually much faster than Window's (source: the ...
Practice using an Oracle VM Virtual Box and create a Ubuntu [12.04 LTS] install (use the iso from here http://www.ubuntu.com/download/desktop) on your current Windows PC and get use to the differences (some good, some not so much).
Created an 8GB VDI (Virtual Disk Image) and added the iso to the virtual disk
You can 'Try' Ubuntu or 'Install' Ubuntu - If ...
If you want a painless install, you might want to start over and use the OpenGeo Suite version of PostGIS.
$sudo wget -qO- http://apt.opengeo.org/gpg.key | apt-key add -
$sudo echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list
$sudo apt-get update
$apt-cache search opengeo
$sudo apt-get install opengeo-postgis
Or you could ...
Installing Python package gdal into virualenv on Linux
GDAL provides nice toolkit for GEO related operations. However,
installing it to virtualenv on Linux is not trivial task.
This recipe describes, how to do that.
here I use lowercase gdal for Python package and upper case GDAL for
general system wide library.
allow using ...
Since you have PostGIS 2.1.1 you're ahead of the game. Make sure you have wget installed, it is what will download the data from the Census FTP site.
Create a gisdata directory with:
sudo mkdir /gisdata
Use chown and chgrp commands to change the ownership and group of /gisdata so that your normal user can read and write to /gisdata.
Start psql and ...
In https://gis.stackexchange.com/questions/158457/gdal2tiles-how-to-make-filenames-of-tiles-to-represent-xyz-coordinates, somebody mentions doing:
sudo ln -s /usr/lib/libproj.so.0 /usr/lib/libproj.so
Which absolutely fixed the same error (ERROR 6: Unable to load PROJ.4 library (libproj.so)) for me.
On the x86_64 architecture you may need to use this ...
For easier installation the module is in the repositories:
sudo apt-get install python-shapely
From the directory you said, you've installed the module in a non standard place and not in a path that is being watched by python.
To check which paths are currently active you can issue the following from within the python interpreter:
Did some digging around on the QGIS site. Apparently you need to install the python-gis package if you want to use the python plugins.
sudo apt-get install python-qgis
You should now be able to add new plugins :)
If I'm not mistaken, you need to enable the Plugins Installer. Just activate it in Plugins Manager.
I had similar issue.
Found that the problem could be due to the following possibilities:
When you set up the QgsApplication, the PrefixPath must be done correctly.
My QGIS was installed on /usr/share/qgis.
But somehow I need to set the PrefixPath as "/usr" & not "/usr/share/qgis":
The path of the .shp ...
The same applications are available, but the general experience will be much smoother, especially updates. Package managment is one of the key user-facing strengths of Linux. Everything you need is already packaged and only a gui or command away. No need for separate downloads or anything like that.
So install one of the buntu flavours and add the UbuntuGIS ...
Try the following commands from a command line:
sudo add-apt-repository ppa:johanvdw/saga-gis
sudo apt-get update
sudo apt-get install saga
The problem may be that synaptic has not updated it sources because the signing key was not imported. This should be the most easy way to fix that error.
It seems the wxwidgets package for raring was uploaded ...
By now, ubuntugis-unstable has added trusty packages for QGIS 2.2 and GDAL 1.11. Unfortunately, libgdal-ecw-src is still missing, and the available versions for raring and precise are intended for GDAL 1.10.
However, I got it working (with some help from the qgis user mailing list):
Add ubuntugis-unstable for trusty to the sources list, or Ubuntu Software ...