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.

Something I wanted to share.

Website and forum-related announcements and discussion, and anything else that doesn't fit in the above forums.
Post Reply
S
Sane
Voice
Posts: 19
Joined: Sun Nov 17, 2013 12:38 am
Location: #kl-channel@Rizon.net

Something I wanted to share.

Post by Sane »

* I just wanted to share this tutorial that I wrote for myself, for anyone else that might be interested.
* I didn't feel like it fits anywhere else.
* It may even help me out again in future; 'cause I'm always forgetting this stuff.

BEFORE YOU SAY ANYTHING, I KNOW THE EGGDROP I USE AND AM PROVIDING A LINK/S TO IS OLD AND YOU SHOULD USE THE LATEST RELEASE, '1.8.3' I BELIEVE; WITH THAT OUT OF THE WAY, LET'S BEGIN.

If you spot any mistakes, please let me know. And vet this if you can, commenting that you were able to verify everything works properly.

Also, if you get any tcl errors like:

Code: Select all

"configure: error: 

Tcl cannot be found on this system. 

Eggdrop requires Tcl and the Tcl development files to compile. 
If you already have Tcl installed on this system, make sure you 
also have the development files (common package names include 
'tcl-dev' and 'tcl-devel'). If I just wasn't looking 
in the right place for it, re-run ./configure using the 
--with-tcllib='/path/to/libtcl.so' and 
--with-tclinc='/path/to/tcl.h' options. 

See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section for more 
information."


Install the following using: sudo apt-get install -y libtcl8.5 tcl8.5-dev

*EDIT* <caesar> If you install the dev package of TCL (and I think last is tcl8.6-dev) you won't need to configure with the path as it will find the path of the libtcl8.6.so and tcl.h by itself.

And then do this if need be:

./configure --with-tcllib=/usr/lib/x86_64-linux-gnu/libtcl8.5.so --with-tclinc=/usr/include/tcl8.5/tcl.h

Might not need to use ^that^ above command, thank you to caesar for the clarification.

I however used 8.4, I believe.

### How to compile eggdrop with megahal ###

In your shell, type:

cd /home/YourUserName/
*Note: /YourUserName/ would be replaced with your own account name.

a) Download 'eggdrop1.6.19.tar.gz' to your shell, preferably in your '/home/YourUserName/' directory/folder using:

wget http://www.eggheads.org/redirect.php?ur ... .19.tar.gz

b) Extract/untar it using:

tar -xzf eggdrop1.6.19.tar.gz

or this:

tar zxvf eggdrop1.6.19.tar.gz

c) Download 'megahal.mod.3.5.zip' ( or 'megahal.mod.2.7.tar.bz2' wget https://anonfile.com/Nbxdsce8b6 tar xvjf megahal.mod.2.7.tar.bz2 ) to your shell, preferably in your '/home/YourUserName/' directory/folder using:

wget http://thelastexit.net/megahal/megahal.mod.3.5.zip

d) Unzip it using:

unzip megahal.mod.3.5.zip

{}{}{}{}{}{}{}{}

1) Now we begin. The 'megahal.mod' directory/folder from the extracted contents of 'megahal.mod.3.5.zip' ( or 'megahal.mod.2.7.tar.bz2' ) should be copied to the untar'd 'eggdrop1.6.19/src/mod/' directory/folder - its path where you copied it to would then be: 'eggdrop1.6.19/src/mod/megahal.mod/'

You could do that by using: sudo cp megahal.mod /home/YourUserName/eggdrop1.6.19/src/mod/

2) Then you need to cd into the eggdrop1.6.19 directory and do 'chmod -R u+x .' <-- Making sure the 'space dot' is included at the end, which will make all the files in that directory, yours and also allow them to be executable.

2a) SSL STEPS <NOTE SSL CAN BE SKIPPED> <NOTE I SKIPPED SSL WHEN DOING MY COMPILE TEST EXAMPLE> START OF SSL STEPS: Download the SSL patch to your shell, MAKING SURE IT GOES IN YOUR 'home/YourUserName/eggdrop1.6.19/' directory/folder using:

wget http://www.egghelp.org/files/patches/eg ... x.patch.gz

2b) NOTE SSL CAN BE SKIPPED. -- Next command:

gzip -d eggdrop-1.6.19-ssl_and_md5_and_thread-durex.patch.gz
(this will unzip and delete original .gz file)

2c) NOTE SSL CAN BE SKIPPED. -- Next command:

patch -p1 <eggdrop-1.6.19-ssl_and_md5_and_thread-durex.patch

2d) If you did receive hunk failed errors I have read to do this instead:

patch -p0 <eggdrop-1.6.19-ssl_and_md5_and_thread-durex.patch

2e) END OF SSL STEPS

NOTE, DO THINGS IN THE CORRECT ORDER, SO WHAT YOU SEE IN STEP 3 DOESN'T HAPPEN.

3) WRONG STEP - 'make'

sane@tanmayn:~/testing/eggdrop1.6.19$ make

Before you can compile your bot you have to configure it.
Please start the configure script now:

% ./configure

sane@tanmayn:~/testing/eggdrop1.6.19$

4) STEP OF - './configure'

sane@tanmayn:~/testing/eggdrop1.6.19$ ./configure

This is Eggdrop's GNU configure script.
It's going to run a bunch of tests to hopefully make your compile
work without much twiddling.

Operating System: Linux 2.6.32-042stab078.28

If you experience any problems compiling Eggdrop, please read the
compile guide, found in doc/COMPILE-GUIDE.

Type 'make config' to configure the modules, or type 'make iconfig'
to interactively choose which modules to compile.

sane@tanmayn:~/testing/eggdrop1.6.19$

5) STEP OF - 'make config'

sane@tanmayn:~/testing/eggdrop1.6.19$ make config

make[1]: Leaving directory `/home/sane/testing/eggdrop1.6.19/src/mod'
Building ./src/mod/Makefile... done.

You can now compile the bot, using "make".

sane@tanmayn:~/testing/eggdrop1.6.19$

6) STEP OF - 'make'

sane@tanmayn:~/testing/eggdrop1.6.19$ make

All modules compiled.
make[1]: Leaving directory `/home/sane/testing/eggdrop1.6.19/src/mod'

Test run of ./eggdrop -v:
Eggdrop v1.6.19 (C) 1997 Robey Pointer (C) 2008 Eggheads

Eggdrop successfully compiled:
-rwxr-xr-x 1 sane sane 938311 Nov 24 05:02 eggdrop

Modules successfully compiled:
-rwxr-xr-x 1 sane sane 25822 Nov 24 05:02 assoc.so
-rwxr-xr-x 1 sane sane 29653 Nov 24 05:02 blowfish.so
-rwxr-xr-x 1 sane sane 239438 Nov 24 05:02 channels.so
-rwxr-xr-x 1 sane sane 26618 Nov 24 05:02 compress.so
-rwxr-xr-x 1 sane sane 23828 Nov 24 05:02 console.so
-rwxr-xr-x 1 sane sane 22211 Nov 24 05:02 ctcp.so
-rwxr-xr-x 1 sane sane 38739 Nov 24 05:02 dns.so
-rwxr-xr-x 1 sane sane 189856 Nov 24 05:02 filesys.so
-rwxr-xr-x 1 sane sane 279453 Nov 24 05:02 irc.so
-rwxr-xr-x 1 sane sane 71886 Nov 24 05:02 megahal.so
-rwxr-xr-x 1 sane sane 65748 Nov 24 05:02 notes.so
-rwxr-xr-x 1 sane sane 34501 Nov 24 05:02 seen.so
-rwxr-xr-x 1 sane sane 125256 Nov 24 05:02 server.so
-rwxr-xr-x 1 sane sane 93752 Nov 24 05:02 share.so
-rwxr-xr-x 1 sane sane 76390 Nov 24 05:02 transfer.so
-rwxr-xr-x 1 sane sane 22968 Nov 24 05:02 uptime.so
-rwxr-xr-x 1 sane sane 32406 Nov 24 05:02 wire.so

Now run "make install" to install your bot.

sane@tanmayn:~/testing/eggdrop1.6.19$

7) STEP OF - 'make install'

sane@tanmayn:~/testing/eggdrop1.6.19$ make install

Installation completed.

You MUST ensure that you edit/verify your configuration file.
An example configuration file, eggdrop.conf, is distributed with Eggdrop.

Remember to change directory to /home/YourUserName/eggdrop1.6.19 before you proceed.

sane@tanmayn:~/testing/eggdrop1.6.19$
Last edited by Sane on Sun May 06, 2018 6:48 pm, edited 4 times in total.
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

If you install the dev package of TCL (and I think last is tcl8.6-dev) you won't need to configure with the path as it will find the path of the libtcl8.6.so and tcl.h by itself.
Once the game is over, the king and the pawn go back in the same box.
Post Reply