shpree error while loading shared libraries

Paul Ramsey pramsey at REFRACTIONS.NET
Mon Feb 5 15:11:50 EST 2007


Puneet,

Add /usr/local/arcsde/sdeexe83/lib to your /etc/ld.so.conf and run 
ldconfig. (It is dynamically linked, so the linker (ld.so) needs to know 
where to look for it, since it is not in one of the standard system 
locations. (I don't know why your mapserv is not failing as well, 
perhaps it is not actually linked? Run 'ldd mapserv' to see.))

If you want to recompile just shptree, you should be able to run 'make 
shptree' and do that too.

Paul

P Kishor wrote:
> My software maker friend tells me that he has the following in the 
> Makefile --
> 
> # ESRI SDE Support. You MUST have the SDE Client libraries and include 
> files
> # on your system someplace. The actual SDE server you wish to connect to 
> can
> # be elsewhere.
> SDE=      -DUSE_SDE
> SDERASTER=
> SDE_LIB=  -L/usr/local/arcsde/sdeexe83/lib -lsde83 -lpe83 -lsg83 
> -lpthread -ldl
> SDE_INC=  -I/usr/local/arcsde/sdeexe83/include
> 
> All this seems to be in place. The question is, why cannot shptree
> find libsde83.so?  It lives here:
> /usr/local/arcsde/sdeexe83/lib/libsde93.so Where it would be expected?
> 
> 
> 
> On 2/5/07, P Kishor <punkish at eidesis.org> wrote:
>> On 2/5/07, Howard Butler <hobu at iastate.edu> wrote:
>> > It appears that they linked it against the ArcSDE libraries.  You
>> > will likely have to recompile yourself or acquire the SDE SDK .so
>> > files for ArcSDE 8.3.
>> >
>>
>>
>> Yes, so they did. Yet, everything else works (well, I should correct
>> that -- mapserv works fine via cgi, but the command line utils croak).
>>
>> Question -- can I build shptree all by itself (in fact, I would like
>> to do that on my Macbook as well without having to build the entire
>> kitchen sink).
>>
>> A related question -- it is correct to assume that indexes built on
>> one computer will work on another computer? So, if I index my shape
>> files on a 'doze computer and move it to Red Hat or Mac, will the
>> indexes work?
>>
>>
>>
>> >
>> > At 12:43 PM 2/5/2007, P Kishor wrote:
>> > >I was trying to use shptree that someone else had built. I got the
>> > >following error.
>> > >
>> > >/usr/src/mapserver-4.4.2/shptree: error while loading shared
>> > >libraries: libsde83.so: cannot open shared object file: No such file
>> > >or directory
>> > >
>> > >How can I make this work? This is on Red Hat Advanced Server or some
>> > >such thing.
>> > >
>>
>> -- 
>> Puneet Kishor http://punkish.eidesis.org/
>> Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/
>> Open Source Geospatial Foundation http://www.osgeo.org/education/
>> ---------------------------------------------------------------------
>> collaborate, communicate, compete
>> =====================================================================
>>
> 
> 


-- 

   Paul Ramsey
   Refractions Research
   http://www.refractions.net
   pramsey at refractions.net
   Phone: 250-383-3022
   Cell: 250-885-0632



More information about the mapserver-users mailing list