> > Begin forwarded message: > > > From: Alexander Hansen <alexanderk.han...@gmail.com> > > Date: May 25, 2011 24:18:40 GMT+09:00 > > To: Geoffrey Smith <geoffrey.sm...@nrl.navy.mil> > > Cc: fink-us...@lists.sourceforge.net, BABA Yoshihiko < > babayoshih...@mac.com> > > Subject: Re: [Fink-users] gdal troubles/gdal-py25 > > Reply-To: fink-us...@lists.sourceforge.net > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On 5/24/11 10:29 AM, Geoffrey Smith wrote: > >> Hello - > >> > >> I am trying to use gdal2tiles.py to generate some .kml files, but am > >> having difficulties. Not sure where else to look, so since I > >> installed everything with fink I am trying here. > >> > >> I am running 10.5.8, version of fink is: > >> > >> mymachine:sw gbsmith$ fink -V > >> Package manager version: 0.30.0 > >> Distribution version: selfupdate-rsync Mon May 23 07:24:56 2011, 10.5, > >> i386 > >> Trees: local/main stable/main stable/crypto unstable/main unstable/ > >> crypto > >> > >> and > >> > >> mymachins:sw gbsmith$ fink list gdal > >> Information about 11512 packages read in 3 seconds. > >> i gdal 1.7.2-5 Raster/Vector Geospatial Format > >> Translator > >> i gdal-dev 1.7.2-5 GDAL/OGR development headers > >> gdal-grass 1.4.3-2 GRASS plug-in for GDAL/OGR > >> gdal-mysql 1.7.2-5 Raster/Vector Geospatial Format > >> Translator > >> gdal-mysql-dev 1.7.2-5 GDAL/OGR development headers > >> gdal-mysql-shli 1.7.2-5 GDAL/OGR shared libraries > >> gdal-pgsql 1.7.2-5 Raster/Vector Geospatial Format > >> Translator > >> gdal-pgsql-dev 1.7.2-5 GDAL/OGR development headers > >> gdal-pgsql-mysq 1.7.2-5 Raster/Vector Geospatial Format > >> Translator > >> gdal-pgsql-mysq 1.7.2-5 GDAL/OGR development headers > >> gdal-pgsql-mysq 1.7.2-5 GDAL/OGR shared libraries > >> gdal-pgsql-shli 1.7.2-5 GDAL/OGR shared libraries > >> i gdal-py25 1.7.2-2 Raster/Vector Geospatial Format > >> Translator > >> gdal-py26 1.7.2-2 Raster/Vector Geospatial Format > >> Translator > >> gdal-py27 1.7.2-2 Raster/Vector Geospatial Format > >> Translator > >> i gdal-shlibs 1.7.2-5 GDAL/OGR shared libraries > >> > >> > >> I installed gdal-py27 first and could not get it to work, so I removed > >> everything and went to gdal-py25. The error I get is: > >> > >> mymachine:quicklooks gbsmith$ gdal2tiles.py > >> 20070912_MWIR_run00_run11_mosaic_transparent.tif > >> Traceback (most recent call last): > >> File "/sw/bin/gdal2tiles.py", line 38, in <module> > >> from osgeo import gdal > >> File "/sw/lib/python2.5/site-packages/osgeo/__init__.py", line 24, > >> in <module> > >> import _gdal > >> ImportError: dlopen(/sw/lib/python2.5/site-packages/osgeo/_gdal.so, > >> 2): Symbol not found: _locale_charset > >> Referenced from: /sw/lib/libspatialite.1.1.3.dylib > >> Expected in: dynamic lookup > >> > >> The issue seems to be the symbol _locale_charset in /sw/lib/ > >> libspatialite.1.1.3.dylib > >> > >> I get this same error on several machines, one is a clean os/fink > >> install running 10.6... > >> > >> I am not even close to a python expert, so please consider that if > >> anyone can offer any insight. > >> > >> Any help appreciated - > >> > >> Thanks! > >> > >> -geoff s. > >> > >> -- > >> Geoff Smith > >> Naval Research Laboratory > >> 202.404.6324 > >> geoffrey.sm...@nrl.navy.mil > >> > >> > >> > > > > The real problem here is with libspatialite1, which really should link > > to the library which provides the missing _locale_charset symbol. > > (libintl) This will require fixes in how libspatialite1 builds. > > >
I added libgettext8-dev (and some env vars as in .info) . Now libspatialite is linked to intl (see below), and rebuilt gdal and gdal-py just in case, but the problem still remains. Could anyone help solve the problem? $ otool -L /sw/lib/libspatialite.1.1.3.dylib /sw/lib/libspatialite.1.1.3.dylib: /sw/lib/libspatialite.1.1.3.dylib (compatibility version 3.0.0, current version 3.3.0) /sw/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0) /sw/opt/libgeos3.2.2/lib/libgeos_c.1.dylib (compatibility version 8.0.0, current version 8.2.0) /sw/opt/libgeos3.2.2/lib/libgeos-3.2.2.dylib (compatibility version 0.0.0, current version 0.0.0) /sw/lib/libproj.0.dylib (compatibility version 6.0.0, current version 6.4.0) /sw/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) Thanks -- BABA Yoshihiko http://homepage.mac.com/babayoshihiko
libspatialite1.info
Description: Binary data
------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel