Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
Hi Josef,yes, I do want to have "stable" qgis with fdgb (+mrsid) support AND master for testing/new features, and yes, I already found your blog and also managed to build gdal on a virtual machine. But as with all those blogs, there is the "glue" missing.For example I never found a text describing building gdal AND using the rest from the repositories. Normally, they only cover building everything and only latest versions and master and other cutting edge stuff, but simple how-tos how to set-up an easy to maintain system comparable what you get on windows out of the box with osgeo4w seem not to exist.Fortunately, Alex and Eric already gave some very important hints. Assuming that worked, you would then probably want to put a hold on gdal so it doesn't get updated and lose your customizations. I assume that too, but how would I do "put a hold on gdal"?It's called Pinning in the debian world. In synaptic you highlight thepackage in the list, then to Package - Lock Version The command line fu way is to edit an apt file like this example (justchange the package names)http://askubuntu.com/questions/23578/how-do-i-pin-a-particular-mysql-version-to-avoid-unnecessary-upgradesThis was completely new for me and I would never ever have managed to find out on myself just through googling cause for that you need to know the terms to search for.Ok, at the moment I have no time for the experimenting, but at least I know how to "pin" this thread in my mail-client for later use ;)CheersBerndAm 12.03.2014, 20:44 Uhr, schrieb josef k groundwater...@gmail.com:Bernd,I recently installed gdal with filegdb on ubuntu 13.10. My notes-to-self about the installation procedure are found here: http://hydrogeotools.blogspot.se/2013/07/install-gdal-with-file-gdb-and.html Then I installed qgis 2.2 from ubuntugis-unstable. And now I do have qgis with filegdb-support.Is this what you were trying to achieve? ( I have to admit I did not read the full thread.) /Josef -- Vidarebefordrat meddelande --From:"Bernd Vogelgesang" bernd.vogelges...@gmx.deTo:"Eric Goddard" egoddard1...@gmail.com Cc:qgis-developer@lists.osgeo.orgDate:Tue, 11 Mar 2014 21:10:12 +0100Subject:Re: [Qgis-developer] Run stable and master versions of QGIS on UbuntuAm 11.03.2014, 20:35 Uhr, schrieb Eric Goddard egoddard1...@gmail.com: What I still do not get is, why my requirements seem to be so "exotic", that there is no easier way for all this. But maybe I manage to solve all this and maybe post it somewhere. Lots of googling ahead ... after already googling a lot. -- Bernd VogelgesangSiedlerstraße 291083 Baiersdorf/IgelsdorfTel: 09133-825374___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
Bernd, I recently installed gdal with filegdb on ubuntu 13.10. My notes-to-self about the installation procedure are found here: http://hydrogeotools.blogspot.se/2013/07/install-gdal-with-file-gdb-and.html Then I installed qgis 2.2 from ubuntugis-unstable. And now I do have qgis with filegdb-support. Is this what you were trying to achieve? ( I have to admit I did not read the full thread.) /Josef -- Vidarebefordrat meddelande -- From: Bernd Vogelgesang bernd.vogelges...@gmx.de To: Eric Goddard egoddard1...@gmail.com Cc: qgis-developer@lists.osgeo.org Date: Tue, 11 Mar 2014 21:10:12 +0100 Subject: Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu Am 11.03.2014, 20:35 Uhr, schrieb Eric Goddard egoddard1...@gmail.com: What I still do not get is, why my requirements seem to be so exotic, that there is no easier way for all this. But maybe I manage to solve all this and maybe post it somewhere. Lots of googling ahead ... after already googling a lot. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
The only non-compile way I can think of on an Ubuntu box would be to run a virtual machine. Otherwise you have to compile to avoid package manager conflicts. So up to you which is more time/hassle to setup. Enjoy, Alex On 03/10/2014 01:26 PM, Etienne Tourigny wrote: AFAIK, you have to build your own version (preferrably master) with a different install prefix (e.g. /home/softdev/), and when you want to use that version you need to add relevant paths to PATH and LD_LIBRARY_PATH. I have a shell function that sets this up on demand: setup_softdev() { export SOFT_PREFIX=/home/softdev export LD_LIBRARY_PATH=/home/softdev/lib export LIBRARY_PATH=/home/softdev/lib export LD_RUN_PATH=/home/softdev/lib export PATH=/home/softdev/bin:$PATH export CPLUS_INCLUDE_PATH=/home/softdev/include export C_INCLUDE_PATH=/home/softdev/include export CPPFLAGS=-I/home/softdev/include export PYTHONPATH=/home/softdev/lib/python2.7/site-packages/ export GDAL_DATA=/home/softdev/share/gdal } export -f setup_softdev On Mon, Mar 10, 2014 at 5:19 PM, Rémi Bovard remi.bov...@gmail.com wrote: Hi list, I'm wondering if there is there a simple way to run stable and master versions of QGIS on Ubuntu? By simple, I mean - if possible - without compile QGIS from source. For now, as described in doc [1], I edit /etc/apt/sources.list to define which repository to use : http://qgis.org/debian or http://qgis.org/debian-nightly. But doing like this, I cannot run the two versions at the same time. Thank you in advance for your answers. Rémi [1] http://qgis.org/en/site/forusers/alldownloads.html#ubuntu ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
Thanx Remi for bringing this up ... I didn't dare to ... The problem with compiling the dev version imho is, that you will have to recompile it permanently if you are trying to be of any help with bug tracking, am I right? (Haven't compiled anything yet, cause I don't get rid of the knots in my brain) On the other hand, to use QGIS professionaly, I need GDAL with FGDB and MrSID support, so I will have to compile GDAL myself beforehand. But wanting to use it for work, I better not use the master version but the stable. So, as I see it, it would be much better to compile the stable version and then get the master version for the candies and the testing from debian-nightly. But all guidelines propose it the other way round, which I do not really understand ... Said this, when I want to compile the stable version instead of the master, but with a handmade GDAL, is there any way to take benefit from the ubuntugis-unstable repository (things I can install beforehand and then disabling the repository again)? As I said, I have knots in my brain on this and never managed to have a nice and easy environment on Ubuntu as I have with Windows (which is sd) Can someone help me with the surgery? Cheers Bernd Am 11.03.2014 17:59, schrieb Alex Mandel: The only non-compile way I can think of on an Ubuntu box would be to run a virtual machine. Otherwise you have to compile to avoid package manager conflicts. So up to you which is more time/hassle to setup. Enjoy, Alex On 03/10/2014 01:26 PM, Etienne Tourigny wrote: AFAIK, you have to build your own version (preferrably master) with a different install prefix (e.g. /home/softdev/), and when you want to use that version you need to add relevant paths to PATH and LD_LIBRARY_PATH. I have a shell function that sets this up on demand: setup_softdev() { export SOFT_PREFIX=/home/softdev export LD_LIBRARY_PATH=/home/softdev/lib export LIBRARY_PATH=/home/softdev/lib export LD_RUN_PATH=/home/softdev/lib export PATH=/home/softdev/bin:$PATH export CPLUS_INCLUDE_PATH=/home/softdev/include export C_INCLUDE_PATH=/home/softdev/include export CPPFLAGS=-I/home/softdev/include export PYTHONPATH=/home/softdev/lib/python2.7/site-packages/ export GDAL_DATA=/home/softdev/share/gdal } export -f setup_softdev On Mon, Mar 10, 2014 at 5:19 PM, Rémi Bovard remi.bov...@gmail.com wrote: Hi list, I'm wondering if there is there a simple way to run stable and master versions of QGIS on Ubuntu? By simple, I mean - if possible - without compile QGIS from source. For now, as described in doc [1], I edit /etc/apt/sources.list to define which repository to use : http://qgis.org/debian or http://qgis.org/debian-nightly. But doing like this, I cannot run the two versions at the same time. Thank you in advance for your answers. Rémi [1] http://qgis.org/en/site/forusers/alldownloads.html#ubuntu ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
I run QGIS from ubuntugis repos and build master when the whim strikes me, like I want to check a new feature. With handmade GDAL, the answer is a maybe, since you will still get pre-built geos, proj and QGIS, all of which will work with your custom rolled GDAL. So that's compiling 1 things instead of 4+ I haven't kept up with how to keep Mrsid and FGDB working but does that require a whole GDAL recompile? Mrsid used to just require a compile add-on. The other neat thing is the apt-get build-dep qgis which pulls in all the -dev libs you need for you. I think a virtual machine is a good way to keep up on master (and you can just use the qgis.org built ones) and still have a working stable build. You can easily share data mounts between. Thanks, Alex On 03/11/2014 10:45 AM, Bernd Vogelgesang wrote: Thanx Remi for bringing this up ... I didn't dare to ... The problem with compiling the dev version imho is, that you will have to recompile it permanently if you are trying to be of any help with bug tracking, am I right? (Haven't compiled anything yet, cause I don't get rid of the knots in my brain) On the other hand, to use QGIS professionaly, I need GDAL with FGDB and MrSID support, so I will have to compile GDAL myself beforehand. But wanting to use it for work, I better not use the master version but the stable. So, as I see it, it would be much better to compile the stable version and then get the master version for the candies and the testing from debian-nightly. But all guidelines propose it the other way round, which I do not really understand ... Said this, when I want to compile the stable version instead of the master, but with a handmade GDAL, is there any way to take benefit from the ubuntugis-unstable repository (things I can install beforehand and then disabling the repository again)? As I said, I have knots in my brain on this and never managed to have a nice and easy environment on Ubuntu as I have with Windows (which is sd) Can someone help me with the surgery? Cheers Bernd Am 11.03.2014 17:59, schrieb Alex Mandel: The only non-compile way I can think of on an Ubuntu box would be to run a virtual machine. Otherwise you have to compile to avoid package manager conflicts. So up to you which is more time/hassle to setup. Enjoy, Alex On 03/10/2014 01:26 PM, Etienne Tourigny wrote: AFAIK, you have to build your own version (preferrably master) with a different install prefix (e.g. /home/softdev/), and when you want to use that version you need to add relevant paths to PATH and LD_LIBRARY_PATH. I have a shell function that sets this up on demand: setup_softdev() { export SOFT_PREFIX=/home/softdev export LD_LIBRARY_PATH=/home/softdev/lib export LIBRARY_PATH=/home/softdev/lib export LD_RUN_PATH=/home/softdev/lib export PATH=/home/softdev/bin:$PATH export CPLUS_INCLUDE_PATH=/home/softdev/include export C_INCLUDE_PATH=/home/softdev/include export CPPFLAGS=-I/home/softdev/include export PYTHONPATH=/home/softdev/lib/python2.7/site-packages/ export GDAL_DATA=/home/softdev/share/gdal } export -f setup_softdev On Mon, Mar 10, 2014 at 5:19 PM, Rémi Bovard remi.bov...@gmail.com wrote: Hi list, I'm wondering if there is there a simple way to run stable and master versions of QGIS on Ubuntu? By simple, I mean - if possible - without compile QGIS from source. For now, as described in doc [1], I edit /etc/apt/sources.list to define which repository to use : http://qgis.org/debian or http://qgis.org/debian-nightly. But doing like this, I cannot run the two versions at the same time. Thank you in advance for your answers. Rémi [1] http://qgis.org/en/site/forusers/alldownloads.html#ubuntu ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
You could try downloading the source package for gdal and modifying the debian/rules file to add the necessary --with-FileGDB and --with-MRSID=... lines. Installing the modified gdal with the package manager should allow it to be used with the stable QGIS from the ubuntuGIS repo and the development version from debian-nightly. I've never actually done this with ubuntu/debian but I do the equivalent on Arch Linux. For ubuntu you would do something like: mkdir ~/build cd ~/build sudo apt-get build-dep gdal apt-get source gdal cd gdal-1.10.0 # or whatever directory it unpacks... nano debian/rules ##edit file to include the necessary --with-FileGDB and --with-MrSID lines and cd back to the main package directory and build the package: cd .. dpkg-buildpackage -us -uc -nc install the packages with something along the lines of sudo dpkg -i gdal* Assuming that worked, you would then probably want to put a hold on gdal so it doesn't get updated and lose your customizations. disclaimer: I have never tried this with ubuntu, but that appears to be the general flow from a little bit of googling. Eric On Tue, Mar 11, 2014 at 12:45 PM, Bernd Vogelgesang bernd.vogelges...@gmx.de wrote: Thanx Remi for bringing this up ... I didn't dare to ... The problem with compiling the dev version imho is, that you will have to recompile it permanently if you are trying to be of any help with bug tracking, am I right? (Haven't compiled anything yet, cause I don't get rid of the knots in my brain) On the other hand, to use QGIS professionaly, I need GDAL with FGDB and MrSID support, so I will have to compile GDAL myself beforehand. But wanting to use it for work, I better not use the master version but the stable. So, as I see it, it would be much better to compile the stable version and then get the master version for the candies and the testing from debian-nightly. But all guidelines propose it the other way round, which I do not really understand ... Said this, when I want to compile the stable version instead of the master, but with a handmade GDAL, is there any way to take benefit from the ubuntugis-unstable repository (things I can install beforehand and then disabling the repository again)? As I said, I have knots in my brain on this and never managed to have a nice and easy environment on Ubuntu as I have with Windows (which is sd) Can someone help me with the surgery? Cheers Bernd Am 11.03.2014 17:59, schrieb Alex Mandel: The only non-compile way I can think of on an Ubuntu box would be to run a virtual machine. Otherwise you have to compile to avoid package manager conflicts. So up to you which is more time/hassle to setup. Enjoy, Alex On 03/10/2014 01:26 PM, Etienne Tourigny wrote: AFAIK, you have to build your own version (preferrably master) with a different install prefix (e.g. /home/softdev/), and when you want to use that version you need to add relevant paths to PATH and LD_LIBRARY_PATH. I have a shell function that sets this up on demand: setup_softdev() { export SOFT_PREFIX=/home/softdev export LD_LIBRARY_PATH=/home/softdev/lib export LIBRARY_PATH=/home/softdev/lib export LD_RUN_PATH=/home/softdev/lib export PATH=/home/softdev/bin:$PATH export CPLUS_INCLUDE_PATH=/home/softdev/include export C_INCLUDE_PATH=/home/softdev/include export CPPFLAGS=-I/home/softdev/include export PYTHONPATH=/home/softdev/lib/python2.7/site-packages/ export GDAL_DATA=/home/softdev/share/gdal } export -f setup_softdev On Mon, Mar 10, 2014 at 5:19 PM, Rémi Bovard remi.bov...@gmail.com wrote: Hi list, I'm wondering if there is there a simple way to run stable and master versions of QGIS on Ubuntu? By simple, I mean - if possible - without compile QGIS from source. For now, as described in doc [1], I edit /etc/apt/sources.list to define which repository to use : http://qgis.org/debian or http://qgis.org/debian-nightly. But doing like this, I cannot run the two versions at the same time. Thank you in advance for your answers. Rémi [1] http://qgis.org/en/site/forusers/alldownloads.html#ubuntu ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
Am 11.03.2014, 20:35 Uhr, schrieb Eric Goddard egoddard1...@gmail.com: You could try downloading the source package for gdal and modifying the debian/rules file to add the necessary --with-FileGDB and --with-MRSID=... lines. Installing the modified gdal with the package manager should allow it to be used with the stable QGIS from the ubuntuGIS repo and the development version from debian-nightly. I've never actually done this with ubuntu/debian but I do the equivalent on Arch Linux. For ubuntu you would do something like: mkdir ~/build cd ~/build sudo apt-get build-dep gdal apt-get source gdal cd gdal-1.10.0 # or whatever directory it unpacks... nano debian/rules ##edit file to include the necessary --with-FileGDB and --with-MrSID lines and cd back to the main package directory and build the package: cd .. dpkg-buildpackage -us -uc -nc install the packages with something along the lines of sudo dpkg -i gdal* Assuming that worked, you would then probably want to put a hold on gdal so it doesn't get updated and lose your customizations. disclaimer: I have never tried this with ubuntu, but that appears to be the general flow from a little bit of googling. Eric Hi Eric, thanx a ton for your input. I'm still quite unfamiliar with building from source and how all these things play together. What I still do not get is, why my requirements seem to be so exotic, that there is no easier way for all this. But maybe I manage to solve all this and maybe post it somewhere. Lots of googling ahead ... after already googling a lot. Assuming that worked, you would then probably want to put a hold on gdal so it doesn't get updated and lose your customizations. I assume that too, but how would I do put a hold on gdal? Cheers Bernd On Tue, Mar 11, 2014 at 12:45 PM, Bernd Vogelgesang bernd.vogelges...@gmx.de wrote: Thanx Remi for bringing this up ... I didn't dare to ... The problem with compiling the dev version imho is, that you will have to recompile it permanently if you are trying to be of any help with bug tracking, am I right? (Haven't compiled anything yet, cause I don't get rid of the knots in my brain) On the other hand, to use QGIS professionaly, I need GDAL with FGDB and MrSID support, so I will have to compile GDAL myself beforehand. But wanting to use it for work, I better not use the master version but the stable. So, as I see it, it would be much better to compile the stable version and then get the master version for the candies and the testing from debian-nightly. But all guidelines propose it the other way round, which I do not really understand ... Said this, when I want to compile the stable version instead of the master, but with a handmade GDAL, is there any way to take benefit from the ubuntugis-unstable repository (things I can install beforehand and then disabling the repository again)? As I said, I have knots in my brain on this and never managed to have a nice and easy environment on Ubuntu as I have with Windows (which is sd) Can someone help me with the surgery? Cheers Bernd Am 11.03.2014 17:59, schrieb Alex Mandel: The only non-compile way I can think of on an Ubuntu box would be to run a virtual machine. Otherwise you have to compile to avoid package manager conflicts. So up to you which is more time/hassle to setup. Enjoy, Alex On 03/10/2014 01:26 PM, Etienne Tourigny wrote: AFAIK, you have to build your own version (preferrably master) with a different install prefix (e.g. /home/softdev/), and when you want to use that version you need to add relevant paths to PATH and LD_LIBRARY_PATH. I have a shell function that sets this up on demand: setup_softdev() { export SOFT_PREFIX=/home/softdev export LD_LIBRARY_PATH=/home/softdev/lib export LIBRARY_PATH=/home/softdev/lib export LD_RUN_PATH=/home/softdev/lib export PATH=/home/softdev/bin:$PATH export CPLUS_INCLUDE_PATH=/home/softdev/include export C_INCLUDE_PATH=/home/softdev/include export CPPFLAGS=-I/home/softdev/include export PYTHONPATH=/home/softdev/lib/python2.7/site-packages/ export GDAL_DATA=/home/softdev/share/gdal } export -f setup_softdev On Mon, Mar 10, 2014 at 5:19 PM, Rémi Bovard remi.bov...@gmail.com wrote: Hi list, I'm wondering if there is there a simple way to run stable and master versions of QGIS on Ubuntu? By simple, I mean - if possible - without compile QGIS from source. For now, as described in doc [1], I edit /etc/apt/sources.list to define which repository to use : http://qgis.org/debian or http://qgis.org/debian-nightly. But doing like this, I cannot run the two versions at the same time. Thank you in advance for your answers. Rémi [1] http://qgis.org/en/site/forusers/alldownloads.html#ubuntu ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list
Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu
On 03/11/2014 01:10 PM, Bernd Vogelgesang wrote: Am 11.03.2014, 20:35 Uhr, schrieb Eric Goddard egoddard1...@gmail.com: You could try downloading the source package for gdal and modifying the debian/rules file to add the necessary --with-FileGDB and --with-MRSID=... lines. Installing the modified gdal with the package manager should allow it to be used with the stable QGIS from the ubuntuGIS repo and the development version from debian-nightly. I've never actually done this with ubuntu/debian but I do the equivalent on Arch Linux. For ubuntu you would do something like: mkdir ~/build cd ~/build sudo apt-get build-dep gdal apt-get source gdal cd gdal-1.10.0 # or whatever directory it unpacks... nano debian/rules ##edit file to include the necessary --with-FileGDB and --with-MrSID lines and cd back to the main package directory and build the package: cd .. dpkg-buildpackage -us -uc -nc install the packages with something along the lines of sudo dpkg -i gdal* Assuming that worked, you would then probably want to put a hold on gdal so it doesn't get updated and lose your customizations. disclaimer: I have never tried this with ubuntu, but that appears to be the general flow from a little bit of googling. Eric Hi Eric, thanx a ton for your input. I'm still quite unfamiliar with building from source and how all these things play together. What I still do not get is, why my requirements seem to be so exotic, that there is no easier way for all this. But maybe I manage to solve all this and maybe post it somewhere. Lots of googling ahead ... after already googling a lot. Assuming that worked, you would then probably want to put a hold on gdal so it doesn't get updated and lose your customizations. I assume that too, but how would I do put a hold on gdal? Cheers Bernd It's called Pinning in the debian world. In synaptic you highlight the package in the list, then to Package - Lock Version The command line fu way is to edit an apt file like this example (just change the package names) http://askubuntu.com/questions/23578/how-do-i-pin-a-particular-mysql-version-to-avoid-unnecessary-upgrades Enjoy, Alex ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer