How can I check my mapscript.tcl installation?
Tom Poindexter
tpoindex at nyx.net
Sun Mar 4 10:20:46 PST 2001
On Sun, Mar 04, 2001 at 01:23:12AM -0800, Milton Hill wrote:
> Hi All,
> I'm trying to set up msworkbench and here's where I'm at:
> msedit.tcl runs
> msappwiz.tcl, msexplorer.tcl and msshapex.tcl don't
> I understand that msedit.tcl doesn't need mapscript so I'm inclined to conclude that my problem lies there...
msedit.tcl only uses mapscript conditionally - when you 'parse' your mapfile
with mapscript. Otherwise, mapscript isn't loaded.
> In case anyone is interested here's the error I get:
> rainbow{milt}12: msappwiz.tcl
> Error in startup script: couldn't load file "/usr/local/lib/MapscriptTcl1.0/libM
> apscript.so": ld.so.1: /usr/local/bin/wish: fatal: libttf.so.2: open failed: No
This problem is related to the libMapscript.so not being able to resolve
the path to the libttf library at run time, and is fairly easy to fix.
Your options are:
1. copy libtff.so to a 'system' load library, eg. /usr/lib
2. inform the loader where to find libtff.so:
export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libtff.so
3. modify your ld.so configure file to look for libtff.so in its
directory. On Linux, this file is /etc/ld.so.conf, then run
'ldconfig' after making changes.
Check the other libraries that libMapscript depends, by running
ldd /usr/local/lib/MapscriptTcl1.0/libMapscript.*
Look for libraries that are not resolved, and do the same.
--
Tom Poindexter
tpoindex at nyx.net
http://www.nyx.net/~tpoindex/
More information about the MapServer-users
mailing list