[Ubuntu] How to install the correct proj version?

Etienne Tourigny etourigny.dev at gmail.com
Sat Nov 17 12:09:35 PST 2012


Luis - are you sure you didn't install it proj-4.7 yourself elsewhere?
 You can find out which proj install is used by gdal like this:

$ which proj
/usr/bin/proj

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

cheers
Etienne

On Sat, Nov 17, 2012 at 5:37 PM, Luís de Sousa
<luis.a.de.sousa at gmail.com> wrote:
> Hi Jérôme,
>
> I already tried that, but I still get version 4.7 installed. This is
> really boggling, apt-get is reporting version 4.8 during install but
> when I invoke it in the command line I get 4.7.
>
> Thank you in any case,
>
> Luís
>
> On 17 November 2012 16:28, Jérôme Villeneuve Larouche
> <jerome.vlarouche at gmail.com> wrote:
>> Hello,
>>
>> If you haven't done it, try to do : 'sudo apt-get update' before installing
>> proj.
>>
>> On 17 Nov 2012 03:07, "Luís de Sousa" <luis.a.de.sousa at gmail.com> wrote:
>>>
>>> Dear all,
>>>
>>> A few days ago all the software dependent on proj stopped working on
>>> my Ubuntu 12.04 64bit system. I contacted Alan Boudreault who
>>> identified this as an issue with proj, I have version 4.7 installed
>>> but should have 4.8 (I'm using the ubuntugis-unstable repo). I've
>>> tried to uninstall and reinstall proj several times but I always get
>>> version 4.7; there's a log bellow exemplifying.
>>>
>>> Any insights on this issue are welcome. Thank you,
>>>
>>> Luís
>>>
>>> $ proj
>>> Rel. 4.7.1, 23 September 2009
>>> usage: proj [ -beEfiIlormsStTvVwW [args] ] [ +opts[=arg] ] [ files ]
>>>
>>> $ sudo apt-get remove libproj0 proj-bin proj-data projectm-data
>>> python-pyproj
>>> Reading package lists... Done
>>> Building dependency tree
>>> Reading state information... Done
>>> The following packages were automatically installed and are no longer
>>> required:
>>>   libdap11 libepsilon0 libhdf5-serial-1.8.4 libhdf4-0-alt
>>> libdapclient3 libnetcdf6
>>> Use 'apt-get autoremove' to remove them.
>>> The following packages will be REMOVED:
>>>   libproj0 proj-bin proj-data projectm-data python-pyproj
>>> 0 upgraded, 0 newly installed, 5 to remove and 34 not upgraded.
>>> After this operation, 7,891 kB disk space will be freed.
>>> Do you want to continue [Y/n]? Y
>>> (Reading database ... 463054 files and directories currently installed.)
>>> Removing proj-bin ...
>>> Removing libproj0 ...
>>> Removing python-pyproj ...
>>> Removing proj-data ...
>>> Removing projectm-data ...
>>> Processing triggers for man-db ...
>>> Processing triggers for libc-bin ...
>>> ldconfig deferred processing now taking place
>>> Processing triggers for doc-base ...
>>> Processing 1 removed doc-base file...
>>> Registering documents with scrollkeeper...
>>>
>>> $ proj
>>> bash: /usr/bin/proj: No such file or directory
>>>
>>> $ sudo apt-get install libproj0 proj-bin proj-data projectm-data
>>> python-pyproj
>>> Reading package lists... Done
>>> Building dependency tree
>>> Reading state information... Done
>>> The following packages were automatically installed and are no longer
>>> required:
>>>   libdap11 libepsilon0 libhdf5-serial-1.8.4 libhdf4-0-alt
>>> libdapclient3 libnetcdf6
>>> Use 'apt-get autoremove' to remove them.
>>> The following NEW packages will be installed:
>>>   libproj0 proj-bin proj-data projectm-data python-pyproj
>>> 0 upgraded, 5 newly installed, 0 to remove and 34 not upgraded.
>>> Need to get 0 B/3,773 kB of archives.
>>> After this operation, 7,891 kB of additional disk space will be used.
>>> Selecting previously unselected package projectm-data.
>>> (Reading database ... 462689 files and directories currently installed.)
>>> Unpacking projectm-data (from .../projectm-data_2.0.1+dfsg-12_all.deb) ...
>>> Selecting previously unselected package proj-data.
>>> Unpacking proj-data (from .../proj-data_4.8.0-2~precise1_amd64.deb) ...
>>> Selecting previously unselected package python-pyproj.
>>> Unpacking python-pyproj (from .../python-pyproj_1.8.9-1build1_amd64.deb)
>>> ...
>>> Selecting previously unselected package libproj0.
>>> Unpacking libproj0 (from .../libproj0_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) ...
>>> Processing triggers for doc-base ...
>>> Processing 1 added doc-base file...
>>> Registering documents with scrollkeeper...
>>> Processing triggers for man-db ...
>>> Setting up projectm-data (2.0.1+dfsg-12) ...
>>> Setting up proj-data (4.8.0-2~precise1) ...
>>> Setting up python-pyproj (1.8.9-1build1) ...
>>> Setting up libproj0 (4.8.0-2~precise1) ...
>>> Setting up proj-bin (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 ]
>>> _______________________________________________
>>> UbuntuGIS mailing list
>>> Ubuntu at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/ubuntu
>>> http://trac.osgeo.org/ubuntugis/wiki
> _______________________________________________
> UbuntuGIS mailing list
> Ubuntu at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/ubuntu
> http://trac.osgeo.org/ubuntugis/wiki


More information about the Ubuntu mailing list