How to compile Eggdrop

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
m (fixed link to Tcl Detection and Installation (It's section I, not E))
m
Line 1: Line 1:
 +
__TOC__
 +
== How to compile Eggdrop 1.6.19 ==
== How to compile Eggdrop 1.6.19 ==

Revision as of 09:30, 22 May 2009

Contents


How to compile Eggdrop 1.6.19

Installing Eggdrop is a relatively simple process provided your shell has the required tools for successful compilation. Below is a step by step guide to the installation process. These instructions apply to 1.6 bots. Suggestions are by various contributors.

Make sure you already have TCL installed on your shell. Check out Installing TCL locally in your shell for instructions.

Obtaining Eggdrop


There are many different versions of Eggdrop available for download from various websites. eggheads.org and ftp.eggheads.org are the official sites for the latest
releases of Eggdrop 1.6.

Easiest way to download directly to your shell is using the command wget:

wget http://www.geteggdrop.com/

Standard compile process (Linux, FreeBSD, NetBSD, OpenBSD, etc)


First thing you should do is SSH to your shell and unzip the .tar.gz file you’ve downloaded with this command:

tar zxvf eggdrop1.6.19.tar.gz
  • NOTE: Do not change the name of this directory to 'eggdrop' for simplicity. I'm not kidding.
  • Change to the newly created directory by typing 'cd eggdrop1.6'
  • Type './configure' from the Eggdrop's source directory. Some of the options that can be given to './configure' are explained below.


--enable-strip
If you want to create a smaller binary, you can use this option. HOWEVER, this will remove debugging symbols
and make bug reports almost completely useless, and is not recommended. If disk space is very limited, however, it might help to
enable this.


--disable-tcl-threads
This disables support for Tcl threads.


--with-tcllib
--with-tclinc
See I. Tcl Detection and Installation


  • Type either 'make config', 'make iconfig' to determine which modules will be compiled.


  • Type 'make' from the Eggdrop directory, or to force a statically linked module bot, type 'make static'. Otherwise, the Makefile will use whatever type of compile the configure script determined your system will support. Dynamic is always the better way to go if possible. You can force a dynamic build with 'make eggdrop'. There are also the 'debug' and 'sdebug' (static-debug) options, which will give more detailed output on a crash. This will help the development team track down the crash and fix the bug. Debug and sdebug will take a little longer to compile and will enlarge the binary a bit, but it’s worth it if you want to support Eggdrop development.


  • Eggdrop must be installed in a directory somewhere. This is accomplished by typing 'make install'.


This will install the Eggdrop in your home directory in a directory called 'eggdrop' (i.e. /home/user/eggdrop).

If you want to install to a different directory, use:

make install DEST=<directory>

For example:

make install DEST=/home/user/otherdir


Note: For an even more detailed compilation, please visit Setting up an Eggdrop on egghelp.org.

Personal tools