[Ubuntu] gdal 1.9.1 installation

Johan Van de Wauw johan.vandewauw at gmail.com
Mon Nov 3 12:41:04 PST 2014


Please include the error. And possibly also the file if it is no
secret, will help you get a much better answer.

Johan

BTW: keep the ubuntugis list in cc, other people may benefit from
reading how we solved your problem.

On Mon, Nov 3, 2014 at 9:39 PM, alassane toure <atourej at gmail.com> wrote:
> Hi Johan,
> I am not a sophisticated user of gdal.  I am looking for the easiest way to
> have the compiler running.  As such, I followed your instruction by running
> the version included in ubuntu "sudo apt-get install libgdal-dev" but the
> compilation of the program test.cpp did not work.  This issue started when i
> install the latest ubuntu version.
>
> Again, thanks for your insight!
>
> On Mon, Nov 3, 2014 at 1:26 PM, Johan Van de Wauw
> <johan.vandewauw at gmail.com> wrote:
>>
>> Hello Alassane,
>>
>> First of all, you should tell us what you actually want to achieve.
>> You may be better of using the gdal libraries which are already part
>> of ubuntu rather than compiling your own version.
>>
>> If you want to use the version of gdal included in ubuntu install the
>> package libgdal-dev . You can do so using your favorite package
>> manager or using the command prompt: sudo apt-get install libgdal-dev
>>
>> If you do that your command will probably work without extra effort.
>>
>> If there is a good reason to install your own version, you can still
>> do so, but you should be aware that you are probably installing to
>> /usr/local instead of /usr.
>>
>> In that case you should adjust for the include:
>> gcc -o test test.cpp -I /usr/local/include/gdal -lgdal
>>
>> adjusting the linking is slightly more work.try running ldconfig (as
>> root so sudo ldconfig) first after the installation. If that does not
>> work make sure  that the directory /usr/local/lib is part of
>> /etc/ld.so.conf and run ldconfig again.
>>
>> Johan
>>
>> Johan
>>
>> On Mon, Nov 3, 2014 at 9:12 PM, alassane toure <atourej at gmail.com> wrote:
>> > I was able to run it successfully but the following command did not
>> > work..
>> > gcc -o test test.cpp -I /usr/include/gdal -lgdal
>> >
>> > Any thoughts?
>> > Thanks,
>> >
>> > On Mon, Nov 3, 2014 at 12:24 PM, Johan Van de Wauw
>> > <johan.vandewauw at gmail.com> wrote:
>> >>
>> >> On ubuntu, run "sudo make install"
>> >>
>> >> Alternatively, you may wait a few days until gdal 1.11.1 hits
>> >> ubuntugis-unstable.
>> >>
>> >> Johan
>> >>
>> >> On Mon, Nov 3, 2014 at 8:11 PM, alassane toure <atourej at gmail.com>
>> >> wrote:
>> >> > Group,
>> >> > I downloaded the gdal version 1.11.1 and followed instructions
>> >> > provided
>> >> > in
>> >> > http://trac.osgeo.org/gdal/wiki/BuildingOnUnix
>> >> >
>> >> > % cd gdal
>> >> > % ./configure
>> >> > % make
>> >> > % su
>> >> > Password: ********
>> >> > # make install
>> >> > # exit
>> >> >
>> >> > All went well but without a 'su' credential, I was unable to complete
>> >> > the
>> >> > installation.
>> >> > I am running windows and unix on the same machine with the same
>> >> > access
>> >> > username and password.  Do i need to create a su account
>> >> >
>> >> > or is there another way to have the gdal compiler working again?
>> >> >
>> >> > I appreciate your help
>> >> >
>> >> > Regards,
>> >> > Alassane
>> >> >
>> >> >
>> >> >
>> >> > On Thu, May 24, 2012 at 1:16 PM, Alassane Toure <atourej at gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Group,
>> >> >> I need help to install GDAL 1.9.1 on Ubuntu 12.04.  I first
>> >> >> downloaded
>> >> >> gdal-1.9.1.tar.gz, uncompressed it and executed  ./configure.  Where
>> >> >> do
>> >> >> I go
>> >> >> from here?
>> >> >>
>> >> >> Thanks for your help
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > 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