Group, Any thoughts on how to fix the following error (no version information available) resulting from running a gdal executable?
./mosaic_test /home/alassane/Data/IPDSData/testAOI.tif /home/alassane/Data/IPDSData/testbg.tif /home/alassane/Data/IPDSData/testmask.tif /home/alassane/Data/IPDSData/colorcode.tif /home/alassane/Data/IPDSData/eqbt.tif /home/alassane/Data/IPDSData/stdbt.tif /home/alassane/Data/IPDSData/eqbt.dat /home/alassane/Data/IPDSData/stdbt.dat ./mosaic_test: /usr/local/lib/libgdal.so.1: no version information available (required by ./mosaic_test) Thanks, Alassane On Mon, Nov 3, 2014 at 5:17 PM, alassane toure <[email protected]> wrote: > Hi Johan > I had a program working ok with the previous gdal version but i am it is > displaying the following errors... > > ./mosaic_test /home/alassane/Data/IPDSData/testAOI.tif > /home/alassane/Data/IPDSData/testbg.tif > /home/alassane/Data/IPDSData/testmask.tif > /home/alassane/Data/IPDSData/colorcode.tif > /home/alassane/Data/IPDSData/eqbt.tif > /home/alassane/Data/IPDSData/stdbt.tif > /home/alassane/Data/IPDSData/eqbt.dat /home/alassane/Data/IPDSData/stdbt.dat > ./mosaic_test: /usr/local/lib/libgdal.so.1: no version information > available (required by ./mosaic_test) > > Same error when compiled under the new gdal version! Any thoughts? > > Thanks, > > > On Mon, Nov 3, 2014 at 2:22 PM, alassane toure <[email protected]> wrote: > >> No error as a result!!! Thank you very much! >> >> On Mon, Nov 3, 2014 at 2:15 PM, Johan Van de Wauw < >> [email protected]> wrote: >> >>> On Mon, Nov 3, 2014 at 10:00 PM, alassane toure <[email protected]> >>> wrote: >>> > Please find attached the code and associated error after compilation... >>> > >>> > gcc -o test imagescale.cpp -I /usr/include/gdal -lgdal >>> > /usr/bin/ld: /tmp/ccrySeCX.o: undefined reference to symbol >>> > 'floor@@GLIBC_2.2.5' >>> > //lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing >>> from >>> > command line >>> > collect2: error: ld returned 1 exit status >>> >>> You are missing libmath, add -lm (previous versions of gcc had this >>> automatically): >>> gcc -o test imagescale.cpp -I /usr/include/gdal -lgdal -lm >>> >>> > >>> > >>> > On Mon, Nov 3, 2014 at 1:41 PM, Johan Van de Wauw >>> > <[email protected]> wrote: >>> >> >>> >> 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 <[email protected]> >>> 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 >>> >> > <[email protected]> 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 <[email protected]> >>> >> >> 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 >>> >> >> > <[email protected]> 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 < >>> [email protected]> >>> >> >> >> 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 >>> >> >> >> > <[email protected]> >>> >> >> >> > 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 >>> >> >> >> > [email protected] >>> >> >> >> > http://lists.osgeo.org/mailman/listinfo/ubuntu >>> >> >> >> > http://trac.osgeo.org/ubuntugis/wiki >>> >> >> > >>> >> >> > >>> >> > >>> >> > >>> > >>> > >>> >> >> >
_______________________________________________ UbuntuGIS mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki
