[Ubuntu] How to install the correct proj version?

Etienne Tourigny etourigny.dev at gmail.com
Sat Nov 17 14:00:16 PST 2012


As I asked you - did you install (lib)proj yourself, and the answer
hints to yes yes.
Now why did it get there in the first place... this reminds me of
other problems on the qgis mailing list, with ubuntugis installing
some files to /usr/local/

$ ldd `which gdalinfo` | grep proj
        libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00007ff5fa44f000)

gdal was built with proj-4.8 but it is using proj-4.7, hence the error.

remove you installation of proj in /usr/local/lib and /usr/local/include


Etienne

On Sat, Nov 17, 2012 at 7:24 PM, Luís de Sousa
<luis.a.de.sousa at gmail.com> wrote:
> Thank you all for continuing helping.
>
> Below is a new log where I tried to follow the suggestions both from
> Etienne and Jérôme.
>
> Regards,
>
> Luís
>
> $ proj
> bash: /usr/bin/proj: No such file or directory
>
> $ which proj
> $
>
> $ sudo apt-get remove proj
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package proj is not installed, so not removed
> 0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
>
> $ sudo apt-get update
> [...]
>
> $ sudo apt-get install proj
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
>   libproj-dev libproj0 proj-bin proj-data
> The following NEW packages will be installed:
>   libproj-dev libproj0 proj proj-bin proj-data
> 0 upgraded, 5 newly installed, 0 to remove and 34 not upgraded.
> Need to get 0 B/3,398 kB of archives.
> After this operation, 6,444 kB of additional disk space will be used.
> Do you want to continue [Y/n]? Y
> Selecting previously unselected package proj-data.
> (Reading database ... 462634 files and directories currently installed.)
> Unpacking proj-data (from .../proj-data_4.8.0-2~precise1_amd64.deb) ...
> Selecting previously unselected package libproj0.
> Unpacking libproj0 (from .../libproj0_4.8.0-2~precise1_amd64.deb) ...
> Selecting previously unselected package libproj-dev.
> Unpacking libproj-dev (from .../libproj-dev_4.8.0-2~precise1_amd64.deb) ...
> Selecting previously unselected package proj-bin.
> Unpacking proj-bin (from .../proj-bin_4.8.0-2~precise1_amd64.deb) ...
> Selecting previously unselected package proj.
> Unpacking proj (from .../proj_4.8.0-2~precise1_all.deb) ...
> Processing triggers for man-db ...
> Setting up proj-data (4.8.0-2~precise1) ...
> Setting up libproj0 (4.8.0-2~precise1) ...
> Setting up libproj-dev (4.8.0-2~precise1) ...
> Setting up proj-bin (4.8.0-2~precise1) ...
> Setting up proj (4.8.0-2~precise1) ...
> Processing triggers for libc-bin ...
> ldconfig deferred processing now taking place
>
> $ proj
> Rel. 4.7.1, 23 September 2009
> usage: proj [ -beEfiIlormsStTvVwW [args] ] [ +opts[=arg] ] [ files ]
>
> $ which proj
> /usr/bin/proj
>
> $ sudo apt-get install gdal-bin
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
>   libdap11 libdapclient3 libepsilon0 libgdal1 libhdf4-0-alt
> libhdf5-serial-1.8.4 libnetcdf6 libspatialite3
> Suggested packages:
>   python-gdal libhdf4-doc libhdf4-alt-dev hdf4-tools libnetcdf4
> The following NEW packages will be installed:
>   gdal-bin libdap11 libdapclient3 libepsilon0 libgdal1 libhdf4-0-alt
> libhdf5-serial-1.8.4 libnetcdf6 libspatialite3
> 0 upgraded, 9 newly installed, 0 to remove and 34 not upgraded.
> Need to get 0 B/8,880 kB of archives.
> After this operation, 28.1 MB of additional disk space will be used.
> Do you want to continue [Y/n]? Y
> Selecting previously unselected package libdap11.
> (Reading database ... 462711 files and directories currently installed.)
> Unpacking libdap11 (from .../libdap11_3.11.1-10_amd64.deb) ...
> Selecting previously unselected package libdapclient3.
> Unpacking libdapclient3 (from .../libdapclient3_3.11.1-10_amd64.deb) ...
> Selecting previously unselected package libhdf5-serial-1.8.4.
> Unpacking libhdf5-serial-1.8.4 (from
> .../libhdf5-serial-1.8.4_1.8.4-patch1-3ubuntu2_amd64.deb) ...
> Selecting previously unselected package libnetcdf6.
> Unpacking libnetcdf6 (from .../libnetcdf6_1%3a4.1.1-6_amd64.deb) ...
> Selecting previously unselected package libepsilon0.
> Unpacking libepsilon0 (from .../libepsilon0_0.9.1-2build1_amd64.deb) ...
> Selecting previously unselected package libhdf4-0-alt.
> Unpacking libhdf4-0-alt (from .../libhdf4-0-alt_4.2r4-12build1_amd64.deb) ...
> Selecting previously unselected package libspatialite3.
> Unpacking libspatialite3 (from
> .../libspatialite3_3.1.0~rc2-2~precise2_amd64.deb) ...
> Selecting previously unselected package libgdal1.
> Unpacking libgdal1 (from .../libgdal1_1.9.2-2~precise2_amd64.deb) ...
> Selecting previously unselected package gdal-bin.
> Unpacking gdal-bin (from .../gdal-bin_1.9.2-2~precise2_amd64.deb) ...
> Processing triggers for man-db ...
> Setting up libdap11 (3.11.1-10) ...
> Setting up libdapclient3 (3.11.1-10) ...
> Setting up libhdf5-serial-1.8.4 (1.8.4-patch1-3ubuntu2) ...
> Setting up libnetcdf6 (1:4.1.1-6) ...
> Setting up libepsilon0 (0.9.1-2build1) ...
> Setting up libhdf4-0-alt (4.2r4-12build1) ...
> Setting up libspatialite3 (3.1.0~rc2-2~precise2) ...
> Setting up libgdal1 (1.9.2-2~precise2) ...
> Setting up gdal-bin (1.9.2-2~precise2) ...
> Processing triggers for libc-bin ...
> ldconfig deferred processing now taking place
>
> $ ldd `which gdalinfo` | grep proj
>         libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00007ff5fa44f000)
>
> $ gdalinfo
> gdalinfo: symbol lookup error: /usr/lib/libgdal.so.1: undefined
> symbol: pj_ctx_alloc


More information about the Ubuntu mailing list