[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/bin/ld: cannot find -ltcl



Patrick Wiseman said:
> Hi, all:
>
> I'm trying to compile a program - not mine, I'm not a C programmer - which
> wants tcl.  At first, it couldn't find tcl.h, but I supplied the full path
> (I know, that's not really kosher) and it got past that error.  Now, I get
> the subject error.  In context, it looks so:
>
> # make
> gcc tcldtk.o -ltts -ltts_us -ltcl  -shared -o tcldtk.so
> /usr/bin/ld: cannot find -ltcl
> collect2: ld returned 1 exit status
> make: *** [tcldtk.so] Error 1
>
> I have /usr/lib/tcl8.0, 8.0jp, 8.2, 8.3 and tclX8.0.4.  Maybe that's the
> problem?

what does "/sbin/ldconfig -v | grep -i tcl" give?

on one of my systems that has tcl:

[aphro@portal:~]$ /sbin/ldconfig -v | grep -i tcl
	libtcl8.0.so.1 -> libtcl8.0.so.1
/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~:
Permission denied
[aphro@portal:~]$

if you installed tcl in another terminal the first terminal may not
see it yet. usually logout/login again, or su to root, run ldconfig,
and exit back to normal user and it may see it again. what tcl packages
do you have installed? (dpkg -l | grep tcl). My system:

[aphro@portal:~]$ dpkg -l | grep tcl
ii  tcl8.0         8.0.5-6        The Tool Command Language (TCL) v8.0 - Run-T

nate





Reply to: