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.

Mailbot problem

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Astur
Voice
Posts: 16
Joined: Fri Nov 23, 2007 10:27 am

Mailbot problem

Post by Astur »

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:
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 :P
# 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
[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 :?


can some1 help me pls?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

# N.B. Read the 'Installation of Prerequisites' step above in detail,
A
Astur
Voice
Posts: 16
Joined: Fri Nov 23, 2007 10:27 am

Post by Astur »

I did, and I have the modules.

Where I have to put the libtclsqlite3.so?

I have it in /eggdrop at the moment.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

When you add new modules to the source, you're supposed to recompile your Eggdrop. This is probably specified in the module's installation.
A
Astur
Voice
Posts: 16
Joined: Fri Nov 23, 2007 10:27 am

Post by Astur »

It's not working, dunno :(
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

The instructions could not be any clearer:
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
A
Astur
Voice
Posts: 16
Joined: Fri Nov 23, 2007 10:27 am

Post by Astur »

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:
[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.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

@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: Select all

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

Code: Select all

load /eggdrop/libtclsqlite3.so
NML_375
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

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$.
Post Reply