Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!gatech!newsxfer.itd.umich.edu!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!agate!news.ucdavis.edu!quadrophenia.ucdavis.edu!ccjason From: ccjason@quadrophenia.ucdavis.edu (Jason Gabler) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: problems with tcl/tk Date: 16 Oct 1995 16:43:50 GMT Organization: University of California, Davis Lines: 62 Message-ID: <45u246$mco@mark.ucdavis.edu> References: <TDR5B2YC@menetekel.kiel.org> NNTP-Posting-Host: quadrophenia.ucdavis.edu X-Newsreader: TIN [version 1.2 PL2] Norbert Roeschmann (norbert@menetekel.kiel.org) wrote: : Hello FreeBSD Community, : I discovered problems with the tcl-7.3/tk-3.6 packages on the 2.05 CD's : norbert@erebus> wish : ld.so: wish: libtk.so.3.6: Undefined error: 0 : Is this a known problem ? I didn't have this problem with 2.0. : Thanks in advance for any help. The problem is that your list of lib hints (do a "man ldconfig") doesnt include info about your tcl/tk libs, so wish cannot find them. 2.0.5's "ldconfig" doesnt seem to have an "add to current list of lib hints" option. sucks. Anyhow, to amend the situation, there are one or two possibilities: 1) You put the tcl/tk libs in a directory that is already added by lfconfig at boot up (e.g. /usr/lib, /usr/local/lib). If so, without having to learn anythign new, you could solve the problem by merely rebooting. 2) You put the libs in a new directory (e.g. /usr/local/tk/lib) Well, the you have to do an "ldconfig", specifying ALL library directory necessary to the rrunning of your machine. So, for example, when I added the XView libraries (libxview.a, .so, .so3.2) to /usr/X11R6/lib, I had to run the following command: /sbin/ldconfig /usr/lib /usr/local/lib /usr/X11R6/lib /usr/krb/lib and whammo.. it works! In addition to a man on ldconfig, check out somewhere's about line 266 of your /etc/rc file; that's where the boot up ldconfig command is run from. It'll give you an example of how to run ldconfig and how your system is organizing your lib hints. You can also supercede lib hints wit the LD_LIBRARY_PATH variable. But if you are installing software in a public place its better to go with changing your default hints. The env. variable is more for user preference than system configuration (IMHO). : Greeting from the north of Germany, : Norbert : -- : KZ650B and I like it : kiel.org - free news for nice people ( or frogs ) -- Vale, jason .,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,., ` Jason Gabler jygabler@ucdavis.edu ` ' campus office: 916-752-9215 home office: 415-752-1969 ' '----------------------------------------------------------------------` ` Schizophrenic? I'm bleeding Quadrophenic ' '----------------------------------------------------------------------` ' Distributed Computing Analysis & Support, Information Technology, UCD' ` Kerberos/Security X Windows Support DCN Sys Admin ` `'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'