perl mapscript error
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Tue Jul 12 18:32:10 PDT 2005
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/mapscript/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