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.

Install tcl packages?

General support and discussion of Eggdrop bots.
Post Reply
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Install tcl packages?

Post by sKy »

How can i include a additional tcl package/libery to the eggdrop`s tcl folder?
(For example http://tcllib.sourceforge.net/ or http://www.tdom.org/)

Unti now i just search the .tcl / .dll file myself and source or load it by hand. I guess this is not useful.

How can i tell eggdrop`s tcl folder to include the extra packages (using pgKindex.tcl or something like that)?

With plain tcl you just put the libery into the lib folder, restart tclsh and package require name.

I have to recompile eggdrop or what?
socketapi | Code less, create more.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Re: Install tcl packages?

Post by YooHoo »

sKy wrote:How can i include a additional tcl package/libery to the eggdrop`s tcl folder?
...
I have to recompile eggdrop or what?
if I'm understanding you correctly, the answer is yes.
Why not give The TCL Tutorial a quick read... it's proven it's value time and time again :mrgreen:
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Re: Install tcl packages?

Post by sKy »

YooHoo wrote:
sKy wrote:How can i include a additional tcl package/libery to the eggdrop`s tcl folder?
...
I have to recompile eggdrop or what?
if I'm understanding you correctly, the answer is yes.
Why not give The TCL Tutorial a quick read... it's proven it's value time and time again :mrgreen:
I think you don`t get what i am asking. Perhaps my english is to bad to to say what i mean. :/

This is a plain tcl tutorial. This wasn`t a plain tcl question. I know how to install a lib into plain tcl. I duno why i shall read it, cause my question was about how to install a lib into eggdrop..
socketapi | Code less, create more.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

there is no difference between installing TCL lib for TCL or eggdrop. Just put them in the 'tcl8.4' dir somewhere in the libpath set as eviroment variable. If neccessary (because you are not root) add a ~/lib to your search path and homedir. The var is supposed to be called 'LD_LIBRARY_PATH', add addional paths with ":" seperated like:
export LD_LIBRARY_PATH /usr/local/lib:/home/dekus/lib
remember to store it somewhere its loaded on reconnects/reboots (like and ~/.bash_profil and ~/.bashrc).
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Post Reply