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 

compile error on libtcl

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
VyRuZ
Voice


Joined: 08 Aug 2005
Posts: 5

PostPosted: Mon Aug 08, 2005 7:21 am    Post subject: compile error on libtcl Reply with quote

./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 ? Wink
Back to top
View user's profile Send private message
gumbydammit
Master


Joined: 05 Sep 2002
Posts: 311
Location: Canada

PostPosted: Mon Aug 08, 2005 8:21 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
VyRuZ
Voice


Joined: 08 Aug 2005
Posts: 5

PostPosted: Mon Aug 08, 2005 12:02 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Mon Aug 08, 2005 12:47 pm    Post subject: Reply with quote

Code:

$ export LD_LIBRARY_PATH=/path/to/your/tcllib
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Aug 08, 2005 8:15 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
VyRuZ
Voice


Joined: 08 Aug 2005
Posts: 5

PostPosted: Tue Aug 09, 2005 3:50 am    Post subject: Reply with quote

Mad
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...
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 Aug 09, 2005 3:54 am    Post subject: Reply with quote

what's the output of ldd eggdrop shell command?
Back to top
View user's profile Send private message Visit poster's website
VyRuZ
Voice


Joined: 08 Aug 2005
Posts: 5

PostPosted: Tue Aug 09, 2005 4:07 am    Post subject: Reply with quote

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
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 Aug 09, 2005 4:23 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
VyRuZ
Voice


Joined: 08 Aug 2005
Posts: 5

PostPosted: Tue Aug 09, 2005 4:41 am    Post subject: Reply with quote

Quote:
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 Razz
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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