This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Shared object "libtcl84.so" not found

General support and discussion of Eggdrop bots.
Post Reply
n
necroslave
Voice
Posts: 9
Joined: Wed May 13, 2009 10:39 am

Shared object "libtcl84.so" not found

Post by necroslave »

Hello everyone, I am running server of NetBSD5.0 and I have thoose problems when I trying to install eggdrop:

./configure
[...]
checking for Tcl library... found /usr/local/lib/libtcl84.so
checking for Tcl header... found /usr/local/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.4
checking for Tcl patch level... 8.4.15
checking for Tcl_Free in -ltcl84... yes
checking for TclpFinalizeThreadData in -ltcl84... no
[...]

make
[...]
gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o dccutil.o dns.o flags.o language.o match.o main.o mem.o misc.o misc_file.o modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o users.o -L/usr/local/lib -ltcl84 -lm md5/md5c.o compat/*.o `cat mod/mod.xlibs`
touch ../eggdrop

Successful compile: eggdrop
All modules compiled.
Test run of ./eggdrop -v:
Shared object "libtcl84.so" not found
*** Error code 1
Stop.
make: stopped in /home/billy/eggdrop1.6.18
#

So ... when I have make ./configure and make config no problems just finding tcl .. but when I run make there have some problemst :? tcl not found :? Can anyone help?

PS:

nt001$ ldd eggdrop
eggdrop:
-ltcl84 => not found
-lc.12 => /usr/lib/libc.so.12
-lm.0 => /usr/lib/libm.so.0
nt001$


So where from can I get -ltcl84 :roll:
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

You already got it, since your eggie compiled properly...
Unfortunately, your system admin failed to set up the ld.so library properly (the dynamic library loader). This would usually involve editing /etc/ld.so.conf and adding /usr/local/lib/ to the file, and then running /sbin/ldconfig (might be installed in a different path on some systems).

A workaround, is to set the LD_LIBRARY_PATH environment variable prior to running the make-script, as well as any time you start your eggdrop, to point to the location of the library file (/usr/local/lib/)

In bash, that would be done like this:

Code: Select all

export LD_LIBRARY_PATH=/usr/local/lib/
NML_375
n
necroslave
Voice
Posts: 9
Joined: Wed May 13, 2009 10:39 am

Post by necroslave »

lol I am admin ... (I mean only I have root acc to machine). So export LD_LIBRARY_PATH=/usr/local/lib/ work right. Thank you a lot :D

ps/q: Can I add LD_LIBRARY_PATH=/usr/local/lib/ in mk.conf, becouse is pointing of make script :?
Last edited by necroslave on Thu Nov 05, 2009 2:04 pm, edited 1 time in total.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

IF you're the admin, you'd be better off using the first option.
NML_375
n
necroslave
Voice
Posts: 9
Joined: Wed May 13, 2009 10:39 am

Post by necroslave »

yes, I am allready done with first step :wink: thank you again :)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Okies, once you've got your ld.so configuration set up properly, there will be no need for the LD_LIBRARY_PATH hack.
NML_375
n
necroslave
Voice
Posts: 9
Joined: Wed May 13, 2009 10:39 am

Post by necroslave »

Look, I have made "make" first with export LD_LIBRARY_PATH=/usr/local/lib/ and have made successful "make", after successful "make" i have type export LD_LIBRARY_PATH= for unset "way" to patch a type echo /usr/local/lib/ >> /etc/ld.so.conf and have type make again = successful
Thank you a lot, I dunno what I can make whitout your better help :)
Post Reply