egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

INstalling TCL
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 10:09 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Nov 09, 2011 1:41 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 4:43 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Nov 09, 2011 4:57 pm    Post subject: Reply with quote

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:
export LD_LIBRARY_PATH=/path/to/tcl

Once you've set this variable, you can start eggdrop in the usual manner.
_________________
NML_375, idling at #eggdrop@IrcNET


Last edited by nml375 on Wed Nov 09, 2011 5:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 5:07 pm    Post subject: Reply with quote

Do you mean the environment variable on my local machine? This is all on a server....
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Nov 09, 2011 5:08 pm    Post subject: Reply with quote

No, on the server where you intend to start the process.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 5:09 pm    Post subject: Reply with quote

I typed export and got a list of variables:

declare -x LD_LIBRARY_PATH="/home1/cfladsco/TCL/lib/libtcl8.5.so"
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Nov 09, 2011 5:12 pm    Post subject: Reply with quote

Declare should work well enough. However, you should not include the actual filename in the path:
Code:
declare -x LD_LIBRARY_PATH="/home1/cfladsco/TCL/lib"

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 5:16 pm    Post subject: Reply with quote

That did it. Thanks for guiding me through this. I really appreciate it.
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 6:12 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 6:21 pm    Post subject: Reply with quote

The log file show:


[15:20:03] * TERMINATE SIGNAL -- SIGNING OFF
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Nov 09, 2011 6:24 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Wed Nov 09, 2011 6:30 pm    Post subject: Reply with quote

I tried your suggestion and still doing the same thing Sad

I have to be so close to getting this setup
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Nov 09, 2011 6:34 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Khilborn
Voice


Joined: 07 Nov 2011
Posts: 15

PostPosted: Fri Nov 11, 2011 10:31 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber