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.

INstalling TCL

General support and discussion of Eggdrop bots.
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

This is what Hostmonster said:

Thank you for contacting us. The tcllib is not listed in the Redhat package manager and that requires root to use. Meaning, if it isn't compiled from source somewhere, then we don't offer them. Sorry, this cannot be implemented.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Ok, no root access and a redhat system. Thank you.
The needed rpm would be called tcl-devel, though the hostmaster response suggests they've got little to no interrest providing the development libraries.

You've still got the option of compiling your private copy of tcl, which seems to be successful, though you really need to take a good look at the installation path..
A good start would be to issue the "pwd" command after logging on to the ssh session; this will show you the full path of your current directory - and since you just logged on, this would be your home directory.
Make absolutely sure this is the first part (leftmost part) of the installation path (aka --prefix)
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

Thanks nml375. I got the working directory and got it (TCL) installed. I got eggdrop to compile and pointed to where the TCL libraries were. The problem I am at now is this.

All modules compiled.
make[1]: Leaving directory `/home1/cfladsco/eggdrop1.6.21/src/mod'

Test run of ./eggdrop -v:
./eggdrop: error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
make: *** [modules] Error 127
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Since you are using a local/private library, which is not in the default library search path, you'll have to use a few tweaks each time you run your eggdrop binary. What you need to do, is set the LD_LIBRARY_PATH environment variable to point to the directory where you installed your tcl library.

Using bash, the command would be (remember to replace /path/to/tcl with the path where you installed your tcl library - libtcl8.5.so):

Code: Select all

export LD_LIBRARY_PATH=/path/to/tcl
Once you've set this variable, you can start eggdrop in the usual manner.
Last edited by nml375 on Wed Nov 09, 2011 5:08 pm, edited 1 time in total.
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

Do you mean the environment variable on my local machine? This is all on a server....
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

No, on the server where you intend to start the process.
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

I typed export and got a list of variables:

declare -x LD_LIBRARY_PATH="/home1/cfladsco/TCL/lib/libtcl8.5.so"
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Declare should work well enough. However, you should not include the actual filename in the path:

Code: Select all

declare -x LD_LIBRARY_PATH="/home1/cfladsco/TCL/lib"
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

That did it. Thanks for guiding me through this. I really appreciate it.
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

I went through the config settings accordin to http://www.egghelp.org/setup.htm

When I load my bot

-bash-3.2$ ./eggdrop -m Khilbot.conf

Eggdrop v1.6.21 (C) 1997 Robey Pointer (C) 2011 Eggheads
[15:10:03] --- Loading eggdrop v1.6.21 (Wed Nov 9 2011)
[15:10:03] Listening at telnet port 50000 (all).
[15:10:03] Module loaded: blowfish
[15:10:03] Module loaded: dns
[15:10:03] Module loaded: channels
[15:10:03] Module loaded: server
[15:10:03] Module loaded: ctcp
[15:10:03] Module loaded: irc
[15:10:03] Module loaded: notes (with lang support)
[15:10:03] Module loaded: console (with lang support)
[15:10:03] Module loaded: uptime
[15:10:03] Loading dccwhois.tcl...
[15:10:03] Loaded dccwhois.tcl
[15:10:03] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[15:10:03] use '.help userinfo' for commands.
[15:10:03] Writing channel file...


STARTING BOT IN USERFILE CREATION MODE.
Telnet to the bot and enter 'NEW' as your nickname.
OR go to IRC and type: /msg Khilbot hello
This will make the bot recognize you as the master.

[15:10:03] === Khilbot: 1 channels, 0 users.
Launched into the background (pid: 19984)


When I am in another MIRC script and in the channel I am telling the bot to join, he is not there nor does that nick exist on the server I am connecting to. Any ideas?
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

The log file show:


[15:20:03] * TERMINATE SIGNAL -- SIGNING OFF
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

It would seem some mechanism on your shell is sending your eggdrop an instruction to terminate. You could try setting the die-on-sigterm setting to 0, though chances are that whatever mechanism is killing your eggdrop will simply resort to the KILL signal instead.
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

I tried your suggestion and still doing the same thing :(

I have to be so close to getting this setup
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Have you verified with the system admins that they do permit background processes such as eggdrops? It's most common to have a cronjob or other monitoring process terminating user processes that try to fork into background, when irc robots and similar kind of programs are not permitted.
NML_375
K
Khilborn
Voice
Posts: 15
Joined: Mon Nov 07, 2011 12:20 pm

Post by Khilborn »

THis is what my host responded:

Thank you for contacting us. What port is mIRC chat server using? If it is a non-standard port (not port 80 or 443 as an example), it will require a dedicated IP so we can open that respective port. If this is the case and having purchased the dedicated IP, please reply with the port #, direction (Inbound or Outbound) and protocol (UDP or TCP), we will get that taken care.

Dedicated IP's are sold for $2.50 a month (prorated). Since they are purchased to match the length of your hosting contract, you are charged $2.50 a month for the number of months remaining in your hosting account.

Example: $2.50 a month x 21 months remaining on account = USD $52.50 total due at purchase.

IMPORTANT:
Your site may appear down for 1 to 4 hours while your new IP resolves internally. After that, standard DNS propagation rules still apply and your site may not be visible for 24-48 hours while global propagation occurs.

If you would like to purchase the dedicated IP, please log into the cPanel and click the Dedicated IP tab along the top. Follow the wizard's guide to purchase.
Post Reply