egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Shared object "libtcl84.so" not found

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
necroslave
Voice


Joined: 13 May 2009
Posts: 9

PostPosted: Wed May 13, 2009 10:46 am    Post subject: Shared object "libtcl84.so" not found Reply with quote

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 Confused tcl not found Confused 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 Rolling Eyes
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed May 13, 2009 11:36 am    Post subject: Reply with quote

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:
export LD_LIBRARY_PATH=/usr/local/lib/

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
necroslave
Voice


Joined: 13 May 2009
Posts: 9

PostPosted: Wed May 13, 2009 12:03 pm    Post subject: Reply with quote

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 Very Happy

ps/q: Can I add LD_LIBRARY_PATH=/usr/local/lib/ in mk.conf, becouse is pointing of make script Confused


Last edited by necroslave on Thu Nov 05, 2009 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed May 13, 2009 12:15 pm    Post subject: Reply with quote

IF you're the admin, you'd be better off using the first option.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
necroslave
Voice


Joined: 13 May 2009
Posts: 9

PostPosted: Wed May 13, 2009 12:27 pm    Post subject: Reply with quote

yes, I am allready done with first step Wink thank you again Smile
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed May 13, 2009 12:36 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
necroslave
Voice


Joined: 13 May 2009
Posts: 9

PostPosted: Wed May 13, 2009 10:45 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber