perl mapscript error

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Tue Jul 12 18:46:39 PDT 2005


Duh!  I forgot to run make install after perl Makefile.PL && make.  The
old mapscript was built off an older (since removed) libpq.

Sorry for the fuss.  Must go for drink now.

..Tom


> -----Original Message-----
> From: UMN MapServer Users List
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of 
> Kralidis,Tom [Burlington]
> Sent: Tuesday, 12 July, 2005 21:32
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] perl mapscript error
> 
> 
> Hi,
> 
> I've been trying to install mapscript for Perl from latest
> CVS on a Fedora box.
> 
> Note that mapscript/perl/README provides swig command:
> 
> $ swig -perl5 -shadow -outdir . -o mapscript_wrap.c ../mapscript.i
> 
> -outdir is not a valid flag (swig 1.3.19)
> 
> ...so I removed it and ran:
> 
> $ swig -perl5 -shadow -o mapscript_wrap.c ../mapscript.i
> 
> ..and things worked.  Now, when I try to run a Perl script, I get
> errors:
> 
> $ perl -Mmapscript -e 'print "hi"\n'
> Can't load
> '/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/m
> apscript/m
> apscript.so' for module mapscript: libpq.so.3: cannot open 
> shared object
> file: No such file or directory at 
> /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm 
> line 229.  at 
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mapscript.pm
> line 7
> Compilation failed in require.
> BEGIN failed--compilation aborted.
> 
> My system does not have a libpq.so.3, but I have libpq* in:
> 
> /usr/local/pgsql/lib/libpq.so.4
> /usr/local/pgsql/lib/libpq.a /usr/local/pgsql/lib/libpq.so.4.0
> /usr/local/pgsql/lib/libpq.so
> /usr/local/lib/libpq.a
> /usr/local/lib/libpq.so.4.0
> /usr/local/lib/libpq.so
> /usr/local/lib/libpq.so.4
> 
> Any suggestions?
> 
> Thanks
> 
> ..Tom
> 



More information about the MapServer-users mailing list