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.

compile error on libtcl

Old posts that have not been replied to for several years.
Locked
V
VyRuZ
Voice
Posts: 5
Joined: Mon Aug 08, 2005 7:12 am

compile error on libtcl

Post by VyRuZ »

./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
make: *** [install-start] Error 127


This is the exact error i get when i do make install DEST=/place/for/bot ...
Every step before this finishes perfectly (./configure , make config, make ) except make. When it finishes it tries to do ./eggdrop -v and it gives out that error.

I have tcl installed from sourcecode and it installed good. Even ./configure detects it.

Can someone help ? ;)
User avatar
gumbydammit
Master
Posts: 311
Joined: Thu Sep 05, 2002 4:52 pm
Location: Canada
Contact:

Post by gumbydammit »

always a good idea to use the search button on these forums.. this question has been asked many many times...

Click
a.k.a. hellios
V
VyRuZ
Voice
Posts: 5
Joined: Mon Aug 08, 2005 7:12 am

Post by VyRuZ »

Hmm.. I read what your link was pointing to... I edited that ld.so.conf adding a line to libtcl8.4 and it did not work.

I removed the unarchived bot completely and tried again from beginning. No luck.
I read the README and INSTALL and used at the ./configure the commands --with-libtcl=<path> and the --with-libinc=<path> to the correct /usr/local/lib files and it still didn't work.

Any other thing i should try ?? Completely removing TCL8.4 in Debian-based distro and getting it again from apt ?? Because i compiled tcl myself and it compiled perfectly but i wanna be 110% sure i did it right.

Thanks for your help. And i did not search because i did not know what so search for actually...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

$ export LD_LIBRARY_PATH=/path/to/your/tcllib
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Helps to actually read the 'COMPILE-GUIDE' in ~doc: 'I. Tcl Detection and Installation'
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
V
VyRuZ
Voice
Posts: 5
Joined: Mon Aug 08, 2005 7:12 am

Post by VyRuZ »

:x
This is getting annoying.
I reinstalled Tcl just to be sure ( v8.4.6 from site in the COMPILE-GUIDE). It installed perfect. I did tclsh . It worked.I had tcl installed.

I removed the folder of eggdrop unarchived because it already had ./configure made.

Then i edited ld.so.conf with the path to libtcl8.4.so (/usr/local/lib/libtcl8.4.so) and did ldconfig. Then i did that export LD_LIBRARY_PATH (but not as how demond said, but how it was written in COMPILE-GUIDE).

Then i unarchived eggdrop again and did ./configure, putting the extra --with-tcllib='/usr/local/lib/libtcl8.4.so' --with-tclinc='/usr/local/include/tcl.h' and it continued configuring. Then i did make config, and at make it gave the same error.

Now im out of ideas...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what's the output of ldd eggdrop shell command?
V
VyRuZ
Voice
Posts: 5
Joined: Mon Aug 08, 2005 7:12 am

Post by VyRuZ »

libtcl8.4.so => not found
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7fba000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fb7000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7fa2000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e75000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7feb000)

Thanks
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

alternatively, you can try exporting (before ./configure) TCLLIB and TCLINC with the appropriate directories (yes, just directory paths, not full filenames)

also, what's in your config.log after ./configure? I mean regarding Tcl
V
VyRuZ
Voice
Posts: 5
Joined: Mon Aug 08, 2005 7:12 am

Post by VyRuZ »

TCLINC='/usr/local/include'
TCLINCFN='tcl.h'
TCLLIB='/usr/local/lib'
TCLLIBFN='tcl8.4.so'
TCL_LIBS='-L/usr/local/lib -ltcl8.4 -lm'
TCL_REQS='/usr/local/lib/libtcl8.4.so'
That's what i found.

And secondly how do i export TCLINC and TCLLIB ?? use that same export LD_LIBRARY_PATH=/path/to/tcllib and that again for /path/to/tcl.h ??

EDiT: Test run of ./eggdrop -v:
Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads

Hehe... Thanks very much my friend. Though i still don't know what i did to make it work... Maybe those export's... Anyways thanks very much. If i have any other problem, ill make sure to post here :P
Locked