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.

Tcl Library...

Old posts that have not been replied to for several years.
Locked
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Tcl Library...

Post by Jheremias »

Hello ppl:)

I have a system with no tcl installed....Can I install it on my account ( I have no root..) and make eggdrop see it? Environmetal Variables like TCCLIB didn't work....

Any help?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Yes, you can install Tcl within your home directory.

1 thing to watch out for with your configuration. You may not be allowed to use eggdrop on this system.

If the system has no version of Tcl on it, it is a good sign that yu are not supposed to be running it.

Once Tcl is compiled, you can use the --with-tcllib and --with-tclinc arguments to eggdrop ./configure command (for more info type "./configure --help"). Use the paths to the files, not the path and file names.
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

Yes:) Configure is done, but make stops saying cannot find the tcl :p How I declare to 'make' where tcl is?

Thx a lot
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You will need to set the path to the Tcl library (the same value used for --with-tcllib) in the environment variable LD_PRELOAD.

This will also need to be done, each tiem you want to start the bot.
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

:( Make refuses to work:

LD_PRELOAD=.../.../libtcl8.3.so
./eggdrop: error while loading shared libraries: libtcl8.3.so: cannot open shared object file: No such file or directory
make: *** [modegg] Error 127

What happens? :(
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

HMM - I took that from a post on the eggheads mailing list, seems that was wrong.

However, here is the solution (works, becuase I use it).

Set the LD_LIBRARY_PATH to the value, rather than the other environment variable.
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

At first, thx a lot for your interest...:) But:

user@host:~/.../eggdrop1.6.9$ set LD_LIBRARY_PATH=/..../lib/libtcl8.3.so
user@host:~/.../eggdrop1.6.9$ echo $LD_LIBRARY_PATH
/.../lib/libtcl8.3.so
user@host:~/.../lib/eggdrop1.6.9$ make

(....)

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

./eggdrop: error while loading shared libraries: libtcl8.3.so: cannot open shared object file: No such file or directory

:(:(
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As noted, both in a post above, and in the name of the variable, you need to use a path, not a path and filename.
J
Jheremias
Voice
Posts: 20
Joined: Fri Oct 11, 2002 9:34 am

Post by Jheremias »

Sorry for bugging u....but still doesn't work...

user@host:~/.../eggdrop1.6.9$ LD_LIBRARY_PATH=/.../lib/lib/

user@host:~/.../eggdrop1.6.9$ echo $LD_LIBRARY_PATH
/.../lib/lib/ (The one that declared at ./configure and worked)

make stops at the same point as above :( :(
Locked