Navigation
· Undead Linux Project
· Home
· Articles
· Downloads
· Speedtest
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Merchandising Store
· Speedtest
· Photo Gallery
· Contact Me
· Search
· Wifi Chipset Query
· ASCII/Hex Converter
· Basic Linux Commands
· Home
· Articles
· Downloads
· Speedtest
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Merchandising Store
· Speedtest
· Photo Gallery
· Contact Me
· Search
· Wifi Chipset Query
· ASCII/Hex Converter
· Basic Linux Commands
Users Online
Login
Compiling lastest eggdrop with lastest tcl version
- The first of all, you need to have TCL libray. The lastest version is 8.5.x. You can install using your distro package managers, or you can download source/tarball in ftp://tcl.activestate.com/pub/tcl/tcl8_5/
- Some distros not have last versions, and is recommended install it manualy. Some websites have specified distro packages
Well.. if you can't upgrade via distro packages manager, here have how to compile the TCL library
1: Download the source/tarball
wget ftp://tcl.activestate.com/pub/tcl/tcl8_5/tcl8.5.4-src.tar.gz
2: Extract the package
tar -xzf tcl8.5.4-src.tar.gz
3: Go to the TCL compilation folder
cd tcl8.5.4/unix
4: Set the compile configuration
./configure --enable-threads
If you haven't root access and want the eggdrop with tcl8.5 and can't use root, you can install TCL lib in your home dir, example:
./configure --prefix=/home/alex/eggdrop/tcl --enable-threads
5: Compile it using make
make
6: Not obrigated but recommended to use make test
make test
7: Install the tcl
- Use it command as root, but if you followed the example below the step 4, you won't need be a root =)make install
Done! you have the TCL library 8.5.4
---------------------
Well... now is time to compile the eggdrop
1: download the eggdrop source/tarball
wget http://www.egghelp.org/files/eggdrop/eggdrop1.6.19.tar.gz
2: Extract the package
tar -xzf eggdrop1.6.19.tar.gz
3: Go to eggdrop dir
cd eggdrop1.6.19
4: Set the compile configuration
- In some cases i. e. when you have 2 tcl lib installed (8.4 and 8.5) will be necessary specify the TCL lib/include files and the most unix /usr/ is more priorized than /usr/local (where is the compiled programs) is the same case if you followed the example of step 4 in how to compile TCL. Then you will use as example
./configure --with-tcllib=/usr/local/lib/libtcl8.5.so --with-tclinc=/usr/local/include/tcl.h
The most of the case, the eggdrop not detect that the TCL is threaded and your eggdrop win't connect to IRC. If you got the following line on ./configure..
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.5
checking for Tcl patch level... 8.5.4
checking for Tcl_Free in -ltcl8.5... yes
checking for TclpFinalizeThreadData in -ltcl8.5... no
configure: creating ./config.status
config.status: creating Makefile
Then you will need edit the eggdrop.h using your favorite editor, example
nano src/eggdrop.h
you will add the following macro:
#define HAVE_TCL_THREADS
you can put it in the last lines, before the "#endif /* _EGG_EGGDROP_H */"
you can put here, example:
from:
EGG_OPTION_UNSET = 2 /* Unset option(s). */
};
/* Telnet codes. See "TELNET Protocol Specification" (RFC 854) and
* "TELNET Echo Option" (RFC 875) for details. */
#define TLN_AYT 246 /* Are You There */
#define TLN_WILL 251 /* Will */
to:
EGG_OPTION_UNSET = 2 /* Unset option(s). */
};
#define HAVE_TCL_THREADS
/* Telnet codes. See "TELNET Protocol Specification" (RFC 854) and
* "TELNET Echo Option" (RFC 875) for details. */
If you followed the example below the step 4 in how to compile TCL you will need set the 'export LD_LIBRARY_PATH=' to eggdrop works, you will set the lib dir where you tcl is installed, example:
export LD_LIBRARY_PATH=/home/alex/eggdrop/tcl/lib
- Some unix shells you need do it every time that you login or your eggdrop won't run..
Well... resuming the steps...
5: Configure the modules
make config
6: compile the eggdrop
make
7: install your eggdrop
make install
Done, your eggdrop is installed with the newer TCL version! Now enjoy!


