tcl-rivet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Jeffrey Rankin" <jran...@oneil.com>
Subject Re: package require ***
Date Thu, 16 Jan 2003 01:55:11 GMT
On Wed, 15 Jan 2003, David N. Welton wrote:

>
> Does it link to activetcl?  On Linux, I do this to get that
> information:
>
> @ashland [~/workshop/tcl-rivet/src] $ ldd mod_rivet.so
>         libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x6fef3000)
>         libdl.so.2 => /lib/libdl.so.2 (0x6fed0000)
>         libm.so.6 => /lib/libm.so.6 (0x6fe39000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x6fded000)
>         libc.so.6 => /lib/libc.so.6 (0x6fc92000)
>         /lib/ld.so.1 => /lib/ld.so.1 (0x08000000)

OK, before I modified my LD_LIBRARY_PATH, here's what I got:

jrankin@ultra /home/jrankin/apache/libexec> ldd mod_rivet.so
        libtcl8.3.so =>  /usr/sfw/lib/libtcl8.3.so
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libmd5_psr.so.1

> If it's picking up the wrong one... hrm.  Well, let's see if it is,
> then we can deal with it.  On Linux, you can set LD_LIBRARY_PATH to
> make it choose a different lib, for instance.

OK, I modified my LD_LIBRARY_PATH to include: /usr/local/ActiveTcl/lib,
recompiled, now I get:

jrankin@ultra /home/jrankin/archive/tcl-rivet/src> ldd mod_rivet.so
        libtcl8.3.so =>  /usr/local/ActiveTcl/lib/libtcl8.3.so
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libgen.so.1 =>   /usr/lib/libgen.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

Cool! I install and access my tests.rvt file, now my auto_path is:

/home/jrankin/apache/rivet/rivet-tcl /usr/local/ActiveTcl/lib/tcl8.3
/usr/local/ActiveTcl/lib ./lib /home/jrankin/apache/rivet/packages
/home/jrankin/apache/rivet/packages-local .
/usr/local/ActiveTcl/lib/tclX8.3

Victory! I've verified that I can access packages like Tclx and so on.
Thanks for your help.

- Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Mime
View raw message