<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    On 16/01/15 07:45, Zoltan Szecsei wrote:<br>
    <span style="white-space: pre;">> Hi,<br>
      > I compiled QGIS 2.7 successfully on ubuntu 14.10, and then
      noticed that it had gdal 1.10, so I downloaded the source for gdal
      1.11.1 and compiled it.<br>
      > The trouble is that running gdalinfo --version still gives me
      the 1.10 version.<br>
      ><br>
      > Can anyone spot my deliberate error?</span><br>
    <br>
    Have you tried running the ldconfig command after running `make
    install` on<br>
    GDAL?  This should solve the dynamic link issues resulting in the
    version errors<br>
    you're experiencing when running the GDAL 1.11.1 binaries. <br>
    <br>
    Alternatively you can adjust the `LD_LIBRARY_PATH` environment
    variable to point<br>
    to `/usr/local/lib` e.g.<br>
    <br>
        LD_LIBARY_PATH=/usr/local/lib /usr/local/bin/gdalinfo --version<br>
    <br>
    You should also compile any dependent software after installing your
    custom GDAL<br>
    i.e. compile GDAL first then QGIS.<br>
    <br>
    Best regards,<br>
    <br>
    Homme<br>
    <span style="white-space: pre;">><br>
      > This is a new system for experimenting with, so I am able to
      nuke it and start again by reloading ubuntu if need be.<br>
      > My goal is to fiddle with QGIS dev, python dev, mapserver and
      postgis.<br>
      > I'd like GRASS and  OTB  as well, plus all the "normal"
      dependencies like gdal, ogr, proj.....<br>
      > (So if someone has a recipe for the correct installation
      sequence so that all the dependencies work out with their correct
      versions, please post it on this list.)<br>
      ><br>
      > Thanks & regards,<br>
      > Zoltan<br>
      ><br>
      ><br>
      > So, to the current status:<br>
      ><br>
      >     #before make install:<br>
      >     geograph@gs01:~$ which gdalinfo<br>
      >     /usr/bin/gdalinfo<br>
      ><br>
      >     #after make install:   (note the different location)<br>
      >     geograph@gs01:~$ which gdalinfo<br>
      >     /usr/local/bin/gdalinfo<br>
      ><br>
      >     # So howcome?:<br>
      >     geograph@gs01:~$ /usr/bin/gdalinfo --version<br>
      >     GDAL 1.10.1, released 2013/08/26<br>
      >     geograph@gs01:~$<br>
      >     geograph@gs01:~$ /usr/local/bin/gdalinfo --version<br>
      >     GDAL 1.10.1, released 2013/08/26<br>
      >     geograph@gs01:~$<br>
      ><br>
      > Just before sending this email I did:<br>
      ><br>
      >     which gdalbuildvrt<br>
      >     /usr/local/bin/gdalbuildvrt<br>
      >     gdalbuildvrt --version<br>
      >     ERROR 1: gdalbuildvrt was compiled against GDAL 1.11.1
      but current library version is 1.10<br>
      ><br>
      > I then got into synaptic and removed gdal-bin and python-gdal
      but not libgdal-dev and libgdal1h (all ver 1.10) as the last one
      would have removed grass and a bunch of other stuff, including
      postgre 9.4 and postgis, which I want.<br>
      ><br>
      ><br>
      > The above is after running sudo make install:<br>
      ><br>
      >     <a class="moz-txt-link-abbreviated" href="mailto:geograph@gs01:~/dev/cpp/gdal-1.11.1$">geograph@gs01:~/dev/cpp/gdal-1.11.1$</a> sudo make install<br>
      >     [sudo] password for geograph:<br>
      >     (cd port; make)<br>
      >     make[1]: Entering directory
      '/home/geograph/dev/cpp/gdal-1.11.1/port'<br>
      >     make[1]: Nothing to be done for 'default'.<br>
      >     make[1]: Leaving directory
      '/home/geograph/dev/cpp/gdal-1.11.1/port'<br>
      >     (cd gcore; make)<br>
      >     make[1]: Entering directory
      '/home/geograph/dev/cpp/gdal-1.11.1/gcore'<br>
      >     make[1]: Nothing to be done for 'default'.<br>
      >     make[1]: Leaving directory
      '/home/geograph/dev/cpp/gdal-1.11.1/gcore'<br>
      >     (cd alg; make)<br>
      >     make[1]: Entering directory
      '/home/geograph/dev/cpp/gdal-1.11.1/alg'<br>
      ><br>
      > etc etc etc (and then the last few lines of the make install
      follow):<br>
      ><br>
      >     libtool: install:
      /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c .libs/ogrtindex
      /usr/local/bin/ogrtindex<br>
      >     libtool: install:
      /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c .libs/ogrlineref
      /usr/local/bin/ogrlineref<br>
      >     libtool: install:
      /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c .libs/testepsg
      /usr/local/bin/testepsg<br>
      >     libtool: install:
      /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c
      .libs/gdalbuildvrt /usr/local/bin/gdalbuildvrt<br>
      >     /bin/bash /home/geograph/dev/cpp/gdal-1.11.1/libtool
      --mode=install  /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c
      gdal-config-inst /usr/local/bin/gdal-config<br>
      >     libtool: install:
      /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c gdal-config-inst
      /usr/local/bin/gdal-config<br>
      >     make[1]: Leaving directory
      '/home/geograph/dev/cpp/gdal-1.11.1/apps'<br>
      >     for f in LICENSE.TXT data/*.* ; do
      /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c -m 0644 $f
      /usr/local/share/gdal ; done<br>
      >     /bin/bash /home/geograph/dev/cpp/gdal-1.11.1/libtool
      --mode=finish --silent /usr/local/lib<br>
      >     /home/geograph/dev/cpp/gdal-1.11.1/install-sh -d
      /usr/local/lib/pkgconfig<br>
      >     /home/geograph/dev/cpp/gdal-1.11.1/install-sh -c -m 0644
      gdal.pc /usr/local/lib/pkgconfig/gdal.pc<br>
      >     <a class="moz-txt-link-abbreviated" href="mailto:geograph@gs01:~/dev/cpp/gdal-1.11.1$">geograph@gs01:~/dev/cpp/gdal-1.11.1$</a><br>
      >     <a class="moz-txt-link-abbreviated" href="mailto:geograph@gs01:~/dev/cpp/gdal-1.11.1$">geograph@gs01:~/dev/cpp/gdal-1.11.1$</a><br>
      >     <a class="moz-txt-link-abbreviated" href="mailto:geograph@gs01:~/dev/cpp/gdal-1.11.1$">geograph@gs01:~/dev/cpp/gdal-1.11.1$</a> which gdalinfo<br>
      >     /usr/local/bin/gdalinfo<br>
      >     <a class="moz-txt-link-abbreviated" href="mailto:geograph@gs01:~/dev/cpp/gdal-1.11.1$">geograph@gs01:~/dev/cpp/gdal-1.11.1$</a> gdalinfo  --version<br>
      >     GDAL 1.10.1, released 2013/08/26<br>
      >     <a class="moz-txt-link-abbreviated" href="mailto:geograph@gs01:~/dev/cpp/gdal-1.11.1$">geograph@gs01:~/dev/cpp/gdal-1.11.1$</a><br>
      ><br>
      ><br>
      ><br>
      ><br>
      > -- <br>
      ><br>
      > ===========================================<br>
      > Zoltan Szecsei PrGISc [PGP0031]<br>
      > Geograph (Pty) Ltd.<br>
      > GIS and Photogrammetric Services<br>
      ><br>
      > P.O. Box 7, Muizenberg 7950, South Africa.<br>
      ><br>
      > Mobile: +27-83-6004028<br>
      > Fax:    +27-86-6115323     <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a><br>
      > ===========================================<br>
      ><br>
      ><br>
      > _______________________________________________<br>
      > gdal-dev mailing list<br>
      > <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
      > <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span><br>
    <br>
    <br>
  </body>
</html>