[GRASS-dev] re: python grass problems on OSX (Incompatible library version for module)

Markus Neteler neteler at osgeo.org
Mon May 11 04:14:44 EDT 2009


On Mon, May 11, 2009 at 9:49 AM, massimo di stefano
<massimodisasha at yahoo.it> wrote:
> I tried :
>
> cd /Users/Shared/source/grass_trunk/
>
> svn up
>
> make distclean
>
> export CXXFLAGS="-arch ppc -arch i386 -Os" ; export CFLAGS="-arch ppc -arch
> i386 -Os" ; export LDFLAGS="-arch ppc -arch i386 -Os" ; export
> GDAL_BIN=/Library/Frameworks/gdal.framework/unix/bin/ ; export
> NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
>
> ./configure .. .. .. --prefix=/usr/local/
>
> make
>
> sudo make install
>
>
> then i copied the the script i.img2rr inside the scripts directory :
>
> cp i.img2rr /usr/local/grass-7.0.svn/scripts
>
> chmod a+x /usr/local/grass-7.0.svn/scripts/i.img2rr
>
>
> run  grass70
>
> GRASS 7.0.svn (spearfish60):~ > i.img2rr image1=geology
> MPI running with 1 processors...
> ERROR: Incompatible library version for module. You need to rebuild GRASS
>       or untangle multiple installations.
> GRASS 7.0.svn (spearfish60):~ >
>
>
>
> i tried the command "ldd"
> but it is not found on my system
>
> a google search tell me about "otool" as an osx "ldd" replacment
> inside grass shell :
>
> otool -L `which i.img2rr`
> /usr/local/grass-7.0.svn/scripts/i.img2rr: is not an object file

otool won't work on scripts but on binaries.

please try
otool -L `which g.parser`

Additionally, you can do shell debugging by changing the first line of
your script from
#!/bin/sh
to
#!/bin/sh -x

This may help to see which libs are picked up.

Markus


More information about the grass-dev mailing list