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.

egg compile failure with TCL in non standard location

Old posts that have not been replied to for several years.
Locked
w
wilson

egg compile failure with TCL in non standard location

Post by wilson »

Hi,im having a problem with egg 1.6.15. i have installed tcl locally as I dont have root on this shell. configure and compiling is ok but linking fails.

TCL locations:-


[wilson@node wilson]$ pwd
/usr/home/wilson
[wilson@node wilson]$ find -name "tcl.h"
./tcl/include/tcl.h
./tcl8.4.4/generic/tcl.h
[wilson@node wilson]$ ls lib/
libtcl8.4.so libtclstub8.4.a tclConfig.sh

Installing


[wilson@node eggdrop1.6.15]$ ./configure

This is Eggdrop's GNU configure script.
It's going to run a bunch of strange tests to hopefully
make your compile work without much twiddling.

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
..
checking for broken libsafe sscanf... no
checking for Tcl library... found /usr/home/wilson/lib/libtcl8.4.so
checking for Tcl header... found /usr/home/wilson/tcl/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.4
checking for Tcl patch level... 8.4.4
checking for Tcl_Free in -ltcl8.4... yes
checking for TclpFinalizeThreadData in -ltcl8.4... no
configure: creating ./config.status
..


during make

make[2]: Leaving directory `/usr/home/wilson/eggdrop1.6.15/src/compat'
---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop...

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/home/wilson/lib -ltcl8.4 -lm -ldl -ldns -lnsl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
strip ../eggdrop
Successful compile: eggdrop

make[1]: Leaving directory `/usr/home/wilson/eggdrop1.6.15/src'

./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
make: *** [modegg] Error 127
[wilson@node eggdrop1.6.15]$

Please help!
Wilson
w
wilson

Post by wilson »

Solved my own problem in the end.

just set env

LD_LIBRARY
LD_LIBRARY_PATH

to ~/lib
M
Mach-X

Post by Mach-X »

Being a relative rookie with linux(but not eggdrop), his reply made little sense. So, being a Windows veteran, I took the normal approach to 'missing file x' problems, and did a cp /usr/local/lib/libtcl8.4.so /lib and well, that fixed that :P
Locked