How to compile Eggdrop

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
__TOC__
__TOC__
-
== How to compile Eggdrop 1.6.20 ==
+
== How to compile Eggdrop {{LSR/Eggdrop}} ==
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.
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.
Line 22: Line 22:
First thing you should do is [http://en.wikipedia.org/wiki/Secure_Shell SSH] to your shell and unzip the .tar.gz file you’ve downloaded with this command:
First thing you should do is [http://en.wikipedia.org/wiki/Secure_Shell SSH] to your shell and unzip the .tar.gz file you’ve downloaded with this command:
-
  tar zxvf eggdrop1.6.20.tar.gz
+
  tar zxvf eggdrop{{LSR/Eggdrop}}.tar.gz
* NOTE: Do '''not''' change the name of this directory to 'eggdrop' for simplicity. I'm not kidding.
* 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.20''''
+
* Change to the newly created directory by typing ''''cd eggdrop{{LSR/Eggdrop}}''''
* Type ''''./configure'''' from the Eggdrop's source directory. Some of the options that can be given to ''''./configure'''' are explained below.
* Type ''''./configure'''' from the Eggdrop's source directory. Some of the options that can be given to ''''./configure'''' are explained below.
Line 45: Line 45:
  '''--with-tcllib'''
  '''--with-tcllib'''
  '''--with-tclinc'''
  '''--with-tclinc'''
-
  See [http://www.eggheads.org/support/egghtml/1.6.20/compiling.html#cg9 I. Tcl Detection and Installation]
+
  See [http://www.eggheads.org/support/egghtml/{{LSR/Eggdrop}}/compiling.html#cg9 I. Tcl Detection and Installation]
   
   
Any error messages during ./configure? See [[Troubleshooting/configure]]
Any error messages during ./configure? See [[Troubleshooting/configure]]

Revision as of 07:35, 28 July 2010

Contents


How to compile Eggdrop 1.6.21

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 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.21.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.21'
  • Type './configure' from the Eggdrop's source directory. Some of the options that can be given to './configure' are explained below.
--with-handlen=32
 To change the maximum handle length you can specify a new length between 9 and 32 inclusive.


--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

Any error messages during ./configure? See Troubleshooting/configure

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


  • Type 'make' from the Eggdrop source 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.

Any error messages during make? See Troubleshooting/make

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


This will install the Eggdrop in a directory called 'eggdrop' inside your home directory (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