| View previous topic :: View next topic |
| Author |
Message |
fewyn Voice
Joined: 28 Dec 2004 Posts: 15
|
Posted: Tue Dec 28, 2004 4:12 pm Post subject: Problem when compiling |
|
|
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? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 28, 2004 5:33 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
fewyn Voice
Joined: 28 Dec 2004 Posts: 15
|
Posted: Tue Dec 28, 2004 5:50 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 28, 2004 6:00 pm Post subject: |
|
|
| 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) |
|
| Back to top |
|
 |
fewyn Voice
Joined: 28 Dec 2004 Posts: 15
|
Posted: Tue Dec 28, 2004 6:33 pm Post subject: |
|
|
| I tried to find it and can't seem to find it... any help on ways to find it besides "find" |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 28, 2004 6:40 pm Post subject: |
|
|
| reinstall Tcl and recompile the bot |
|
| Back to top |
|
 |
fewyn Voice
Joined: 28 Dec 2004 Posts: 15
|
Posted: Tue Dec 28, 2004 6:53 pm Post subject: |
|
|
| I just did that.... 2nd time today |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 28, 2004 7:01 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
fewyn Voice
Joined: 28 Dec 2004 Posts: 15
|
Posted: Tue Dec 28, 2004 7:16 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
KrzychuG Master

Joined: 16 Aug 2003 Posts: 306 Location: Torun, Poland
|
Posted: Tue Dec 28, 2004 7:53 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 28, 2004 8:00 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
fewyn Voice
Joined: 28 Dec 2004 Posts: 15
|
Posted: Tue Dec 28, 2004 8:02 pm Post subject: |
|
|
thats exactly what i did  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 28, 2004 8:07 pm Post subject: |
|
|
| and you don't have libtcl* under /usr/lib or /usr/local/lib? |
|
| Back to top |
|
 |
fewyn Voice
Joined: 28 Dec 2004 Posts: 15
|
Posted: Tue Dec 28, 2004 8:21 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
AssCrack25 Voice
Joined: 30 Dec 2004 Posts: 2
|
Posted: Thu Dec 30, 2004 10:03 pm Post subject: I'm having same problem also, sorta.... |
|
|
| 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. |
|
| Back to top |
|
 |
|