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 

MySQL Module

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


Joined: 05 May 2009
Posts: 4

PostPosted: Mon Jun 08, 2009 7:47 pm    Post subject: MySQL Module Reply with quote

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


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Jun 08, 2009 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
CyberMaN
Voice


Joined: 05 May 2009
Posts: 4

PostPosted: Mon Jun 08, 2009 10:22 pm    Post subject: Reply with quote

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


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jun 09, 2009 9:25 am    Post subject: Reply with quote

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
View user's profile Send private message
CyberMaN
Voice


Joined: 05 May 2009
Posts: 4

PostPosted: Tue Jun 09, 2009 10:14 am    Post subject: Reply with quote

I am using Ubuntu 8.10 and used apt-get install mysqltcl, so what could be wrong?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jun 09, 2009 10:44 am    Post subject: Reply with quote

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
View user's profile Send private message
CyberMaN
Voice


Joined: 05 May 2009
Posts: 4

PostPosted: Tue Jun 16, 2009 11:41 pm    Post subject: Reply with quote

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
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
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