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 

Mailbot problem

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Astur
Voice


Joined: 23 Nov 2007
Posts: 16

PostPosted: Sat Dec 01, 2007 10:21 am    Post subject: Mailbot problem Reply with quote

Hi guys.

I need some help setting up the mailbot script (click me).

I unpacked mailbot-1.01.tar.gz into eggdrop/scripts and edited the conf file.


I also did this:

Quote:

Edit the eggdrop configuration file for your bot: include the sqlite module and the script:

#
# Load the sqlite TCL bindings module.
# N.B. Read the 'Installation of Prerequisites' step above in detail,
# if you encounter errors when executing this line.
#
load libtclsqlite3.so

#
# Include the tcllib prerequisites.
# If you have the Tcllib normally installed, you may replace
# these with 'package require' lines instead, like so:
#
# package require aes
# package require base64
# package require crc
#
# Though, source lines work just as well Razz
# Just be sure to adjust the paths to suit your system.
#
source tcllib1.10/aes/aes.tcl
source tcllib1.10/base64/base64.tcl
source tcllib1.10/crc/crc32.tcl

#
# Finally, include the mailbot script.
# N.B. The scripts/ subdirectory is relative to your location
# of your eggdrop binary.
#
source scripts/mailbot-1.0/mailbot.tcl


Now, if I want to start the bot, I only get

Quote:

[15:15] Tcl error in file 'eggdrop.conf':
[15:15] couldn't load file "libtclsqlite3.so": libtclsqlite3.so: cannot open shared object file: No such file or directory
while executing
"load libtclsqlite3.so"
(file "eggdrop.conf" line 181)
[15:15] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Connection closed by foreign host.



dunno what to do Confused


can some1 help me pls?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Dec 01, 2007 11:18 am    Post subject: Reply with quote

Quote:
# N.B. Read the 'Installation of Prerequisites' step above in detail,

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Astur
Voice


Joined: 23 Nov 2007
Posts: 16

PostPosted: Sat Dec 01, 2007 12:41 pm    Post subject: Reply with quote

I did, and I have the modules.

Where I have to put the libtclsqlite3.so?

I have it in /eggdrop at the moment.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Dec 01, 2007 1:23 pm    Post subject: Reply with quote

When you add new modules to the source, you're supposed to recompile your Eggdrop. This is probably specified in the module's installation.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Astur
Voice


Joined: 23 Nov 2007
Posts: 16

PostPosted: Sat Dec 01, 2007 2:05 pm    Post subject: Reply with quote

It's not working, dunno Sad
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Dec 01, 2007 6:53 pm    Post subject: Reply with quote

The instructions could not be any clearer:
Quote:
Mailbot requires the following prerequisites: Tcllib and the SQLite TCL bindings.

You need to install SQLite.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Astur
Voice


Joined: 23 Nov 2007
Posts: 16

PostPosted: Sat Dec 01, 2007 7:04 pm    Post subject: Reply with quote

As I said, I did this already.

I downloaded the tcllib (thats all right) and the SQLite TCL bindings called tclsqlite-3.5.3.so.gz from http://www.sqlite.org/download.html

I put the SQLite file into /eggdrop or /modules, both is not working.


EDIT:

I changed load libtclsqlite3.so to load modules/libtclsqlite3.so and now I get:

Quote:

[00:08] Tcl error in file 'eggdrop.conf':
[00:08] couldn't load file "modules/libtclsqlite3.so": modules/libtclsqlite3.so: undefined symbol: pthread_mutex_trylock
while executing
"load modules/libtclsqlite3.so"
(file "eggdrop.conf" line 178)
[00:08] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Connection closed by foreign host.


Last edited by Astur on Sat Dec 01, 2007 7:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Dec 01, 2007 7:08 pm    Post subject: Reply with quote

@Sir_Fz:
In this case, it's not an eggdrop-module, but a native tcl-module.

@Astur:
It is preferrable to use a full or relative path with load, rather than just using the filename (in the latter case, the paths in tcl_libPath are searched for the library file). Try altering
Code:
load libtclsqlite3.so

into something like this (depending on where you placed your libtclsqlite3.so file)
Code:
load /eggdrop/libtclsqlite3.so

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


Joined: 03 Mar 2007
Posts: 185
Location: Spain - Barcelona

PostPosted: Sun Dec 02, 2007 5:50 am    Post subject: Reply with quote

Astur:

to my also it happened to me the same, and it was because I do not have activated mysql in my shell probably your you do not count on mysql activated in your shell. if nonaccounts with mysql in your shell, you must request this service to your supplier, normally the prices varies from $1 to monthly 2$.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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