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 

tcllib problems though compiling worked :/

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


Joined: 04 Mar 2006
Posts: 6

PostPosted: Tue Apr 25, 2006 9:18 am    Post subject: tcllib problems though compiling worked :/ Reply with quote

heyho,
i just reinstalled my server and wanted to setup my eggdrop.
as i knew i had problems setting up the eggdrop the last time i searched for this "export" thing because i knew it did it the last time.


i installed activetcl, then:
Code:

export LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib/

and ran ./configure with the correct path's:
Code:

./configure --with-tclinc='/usr/local/ActiveTcl/include/tcl.h' --with-tcllib='/usr/local/ActiveTcl/lib/libtcl8.4.so'

checking for Tcl library... using /usr/local/ActiveTcl/lib/libtcl8.4.so
checking for Tcl header... using /usr/local/ActiveTcl/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.4
checking for Tcl patch level... 8.4.13
checking for Tcl_Free in -ltcl8.4... yes
checking for TclpFinalizeThreadData in -ltcl8.4... no

no error at the end of the auto-configuration...

--

when running "make config" i didn't see anything concerning tcl.
Code:

make:
Linking eggdrop (standard build).

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/ActiveTcl/lib -ltcl8.4 -lm -ldl -lnsl  md5/md5c.o compat/*.o `cat mod/mod.xlibs`
touch ../eggdrop

...
Code:

All modules compiled.
make[1]: Leaving directory `/home/servant/eggdrop1.6.17/src/mod'

Test run of ./eggdrop -v:
./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
make: *** [modules] Fehler 127

--
ldd eggdrop returns:
Code:

ldd eggdrop
                libtcl8.4.so => /usr/local/ActiveTcl/lib/libtcl8.4.so (0x40018000)
        libm.so.6 => /lib/tls/libm.so.6 (0x400c2000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0x400e5000)
        libnsl.so.1 => /lib/tls/libnsl.so.1 (0x400e8000)
        libc.so.6 => /lib/tls/libc.so.6 (0x400fc000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

what's wrong this time? ;/

thx & greets,
soomon
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Apr 25, 2006 12:00 pm    Post subject: Reply with quote

likely your LD_LIBRARY_PATH
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
soomon
Voice


Joined: 04 Mar 2006
Posts: 6

PostPosted: Tue Apr 25, 2006 1:53 pm    Post subject: Reply with quote

how does it ave to look like?

i tried export LB_LIBRARY_PATH='/usr/lib/libtcl8.4.so.0'

and export LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib/
which file does it have to link at?
or to which directory? ;/

and why does he say: /eggdrop: error while loading shared libraries: libtcl8.4.so
when the link in ./configure --with ...
is correct?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Apr 26, 2006 3:30 am    Post subject: Reply with quote

you either don't have libtcl8.4.so in /usr/local/ActiveTcl/lib, or have no permission to load it

locate it and set LD_LIBRARY_PATH to the directory it is in

or fix your file permissions
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
soomon
Voice


Joined: 04 Mar 2006
Posts: 6

PostPosted: Wed Apr 26, 2006 3:42 am    Post subject: Reply with quote

as I wrote above:

ldd eggdrop
libtcl8.4.so => /usr/local/ActiveTcl/lib/libtcl8.4.so (0x40018000)

so it IS there!

and as i wrote he also recognises the file:
Code:

checking for Tcl library... using /usr/local/ActiveTcl/lib/libtcl8.4.so
checking for Tcl header... using /usr/local/ActiveTcl/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.4
checking for Tcl patch level... 8.4.13
checking for Tcl_Free in -ltcl8.4... yes


and when i use midnight commander from the user that shall run the eggdrop i can also view it.

which permissions does the user need???
Back to top
View user's profile Send private message
soomon
Voice


Joined: 04 Mar 2006
Posts: 6

PostPosted: Wed Apr 26, 2006 4:20 am    Post subject: Reply with quote

strange...
the bot works...
lol
i just ignored tis errormessage and started it and it works o_0
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