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.

Problem when compiling

General support and discussion of Eggdrop bots.
f
fewyn
Voice
Posts: 15
Joined: Tue Dec 28, 2004 4:11 pm

Problem when compiling

Post by fewyn »

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] Error 127


Anyone know what this means?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

this means the dynamic linker ld(1) can't find the Tcl library libtcl8.4.so your bot depends on

issue the command `ldd eggdrop' and note the location of that library; then, if your system is Linux and you're root, add that location to /etc/ld.so.conf and then type `ldconfig'; if you don't have root privileges, set the environment variable LD_LIBRARY_PATH to that location - under bash the command would be: export LD_LIBRARY_PATH=location
f
fewyn
Voice
Posts: 15
Joined: Tue Dec 28, 2004 4:11 pm

Post by fewyn »

root@sleipnir [/home/fewyn/eggdrop1.6.17]# ldd eggdrop
libtcl8.4.so => not found
libm.so.6 => /lib/tls/libm.so.6 (0x0054c000)
libdl.so.2 => /lib/libdl.so.2 (0x00531000)
libdns.so.16 => /usr/lib/libdns.so.16 (0x00187000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00380000)
libc.so.6 => /lib/tls/libc.so.6 (0x00395000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0076b000)
libisc.so.7 => /usr/lib/libisc.so.7 (0x00dbd000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x00856000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00d47000)
libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x005eb000)
libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x00ba3000)
libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x00139000)
libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x00111000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00123000)
libz.so.1 => /usr/lib/libz.so.1 (0x00b84000)
root@sleipnir [/home/fewyn/eggdrop1.6.17]#


Can't seem to find it :(
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

actually, that location would be different, not the one from ldd(1) results; to find where that library is, you can use the locate(1) command (or find(1) utility of course)
f
fewyn
Voice
Posts: 15
Joined: Tue Dec 28, 2004 4:11 pm

Post by fewyn »

I tried to find it and can't seem to find it... any help on ways to find it besides "find"
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

reinstall Tcl and recompile the bot
f
fewyn
Voice
Posts: 15
Joined: Tue Dec 28, 2004 4:11 pm

Post by fewyn »

I just did that.... 2nd time today
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

so, where did your Tcl install process put the Tcl libs?

and where did your eggdrop configure script find these libs?

capture the output and paste it here
f
fewyn
Voice
Posts: 15
Joined: Tue Dec 28, 2004 4:11 pm

Post by fewyn »

Thats where i configured and "make" the tcl
/home/fewyn/tk8.4.9/tcl8.4.9

and what did you mean by where did my eggdrop configure the script?
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Set your LD_LIBRARY_PATH properly (in your case it should be something like this:
/home/fewyn/tk8.4.9/tcl8.4.9/lib). To set it you can use export command (if you're using bash).
Que?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you are root, right?

to install Tcl, unpack the tarball and simply type: `./configure ; make install' in the unix directory - that will install Tcl libs in default locations - /usr/lib or /usr/local/lib (or simply install it from your packages system, rpm or whatever)

then build your eggdrop as usual, it will find its Tcl lib where it's supposed to be
f
fewyn
Voice
Posts: 15
Joined: Tue Dec 28, 2004 4:11 pm

Post by fewyn »

thats exactly what i did :|
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

and you don't have libtcl* under /usr/lib or /usr/local/lib?
f
fewyn
Voice
Posts: 15
Joined: Tue Dec 28, 2004 4:11 pm

Post by fewyn »

there fixed it.... seems it was hiding in /home/fewyn/tk8.4.9/tcl8.4.9/unix
and i got it all set to go now... thanks
A
AssCrack25
Voice
Posts: 2
Joined: Thu Dec 30, 2004 9:48 pm

I'm having same problem also, sorta....

Post by AssCrack25 »

Hello I have been having the same problems on my redhat box, I did as mentioned above "export LD_LIBRARY_PATH=My_location" and it fixed the problem so I could finish compile, problem is when I finished editing the eggdrop.conf file and went to start the eggdrop it was giving me the same error: ./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory. If I redo the export command the eggdrop will start, but I have to redo the export command everytime I go to start the eggdrop for it to work correctly. My libtcl8.4.so file is hiding in /usr/local/lib/libtcl8.4.so and also in /tcl8.4.9/unix/libtcl8.4.so If you have any suggestions as to how I can resolve this issue I would greatly appreciate it. Thanks.
Post Reply