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.

MySQL Module

General support and discussion of Eggdrop bots.
Post Reply
C
CyberMaN
Voice
Posts: 4
Joined: Tue May 05, 2009 7:46 pm

MySQL Module

Post by CyberMaN »

Hello,

I've been fighting this problem for hours now and I cannot seem to find a solution. mysqltcl is installed on the latest version.

I copied the libmysqltcl3.05.so file inside the modules directory of my eggdrop, but when I try to load it...

02:44 <CyberMaN> .load libmysqltcl3.05
02:44 Lina • libmysqltcl3.05: Error loading module: No start function defined.

I have no clue what this could mean, could someone give me a hint?

Regards,

James.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

The libmysqltcl module is not an eggdrop module, but a tcl module, as such, it must be loaded by the load tcl command (not .load dcc chat partyline command). Preferably though, you should use the "package require" command within your script, as documented in the mysqltcl manual:

Code: Select all

package require mysqltcl 3.0
NML_375
C
CyberMaN
Voice
Posts: 4
Joined: Tue May 05, 2009 7:46 pm

Post by CyberMaN »

Thanks,

I tried that just now, but it didn't seem to work. It replies with
[04:18] can't find package mysqltcl 3.0
while executing
"package require mysqltcl 3.0"

I tried the exact version as well, 3.05 and 3.05-1 but nothing worked. I tried loading the module through the script but gave the previous error. I'm out of ideas, any clue?

Regards,

James.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

That error message suggests that the mysqltcl package wasn't properly installed on the system, or it was installed in a location where tcl does not look for packages (usually set with tcl_library).

If you still get errors using the tcl command "load", such as below, that suggests that the library file was not compiled for this platform.

Code: Select all

load /path/to/libmysqltcl3.05.so
NML_375
C
CyberMaN
Voice
Posts: 4
Joined: Tue May 05, 2009 7:46 pm

Post by CyberMaN »

I am using Ubuntu 8.10 and used apt-get install mysqltcl, so what could be wrong?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

If you are still getting the "No start function defined." message, that means you are still using eggdrop's module loading mechanism. Could you post the exact code you are using and the exact error message you recieve?
Also, which version of eggdrop and tcl are you using?
NML_375
C
CyberMaN
Voice
Posts: 4
Joined: Tue May 05, 2009 7:46 pm

Post by CyberMaN »

Dear nml375,

Sorry for the lateness of my reply, I had to go off town for some days. I would like to let you and the rest that have this problem that the problem has been solved. A friend of mine supplied me with a libmysqltcl3.05.so module, and using the load command nml375 supplied inside a script, the module was successfully loaded.

Thanks for the help.

Regards,

James.
Post Reply