| View previous topic :: View next topic |
| Author |
Message |
CyberMaN Voice
Joined: 05 May 2009 Posts: 4
|
Posted: Mon Jun 08, 2009 7:47 pm Post subject: MySQL Module |
|
|
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. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Jun 08, 2009 8:39 pm Post subject: |
|
|
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: | | package require mysqltcl 3.0 |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
CyberMaN Voice
Joined: 05 May 2009 Posts: 4
|
Posted: Mon Jun 08, 2009 10:22 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Jun 09, 2009 9:25 am Post subject: |
|
|
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: | | load /path/to/libmysqltcl3.05.so |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
CyberMaN Voice
Joined: 05 May 2009 Posts: 4
|
Posted: Tue Jun 09, 2009 10:14 am Post subject: |
|
|
| I am using Ubuntu 8.10 and used apt-get install mysqltcl, so what could be wrong? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Jun 09, 2009 10:44 am Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
CyberMaN Voice
Joined: 05 May 2009 Posts: 4
|
Posted: Tue Jun 16, 2009 11:41 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|