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 

Can't find mysqltcl package

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
Leatherface
Voice


Joined: 18 Aug 2005
Posts: 4

PostPosted: Tue Feb 07, 2006 4:50 pm    Post subject: Can't find mysqltcl package Reply with quote

hello

I have a problem with mysqltcl. I installed TCL8.4 and mysqltcl-3.01 on my fedora core 4 distro. I've set the paths to locate the mysqltcl as followed:

Code:

% pkg_mkIndex /usr/local/lib/mysqltcl-3.01
% lappend auto_path /usr/local/lib/mysqltcl-3.01
/usr/share/tcl8.4 /usr/share /usr/lib /usr/local/lib/mysqltcl-3.01
% lappend auto_path /root/home/prebot/scripts/file.tcl
/usr/share/tcl8.4 /usr/share /usr/lib /usr/local/lib/mysqltcl-3.01 /root/home/prebot/scripts/file.tcl
% package require mysqltcl
3.01
%


Then after doing this, I try starting eggdrop and I get this error:

Code:

[15:41] Tcl error in file 'file.conf':
[15:41] can't find package mysqltcl 3.01
    while executing
"package require mysqltcl 3.01"
    (file "scripts/file.tcl" line 1)
    invoked from within
"source scripts/file.tcl"
    (file "file.conf" line 1376)
[15:41] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)


And now I'm lost, after looking for more information here on the forums and on google (without any luck)...

Could someone help me out? What did I wrong or what did I forget to do?


That would be nice

Thanks
Back to top
View user's profile Send private message
bras
Voice


Joined: 03 Feb 2006
Posts: 7

PostPosted: Tue Feb 07, 2006 5:31 pm    Post subject: Reply with quote

You have to load your libmysqltcl.so in your tcl script... for example

Code:

load /usr/local/lib/tcl8.4/mysqltcl/libmysqltcl.so.3
Back to top
View user's profile Send private message
Leatherface
Voice


Joined: 18 Aug 2005
Posts: 4

PostPosted: Tue Feb 07, 2006 6:54 pm    Post subject: Reply with quote

Thanks for the quick reply bras, never thought to that.
It worked !

Thanks
Back to top
View user's profile Send private message
darkrad
Voice


Joined: 10 Sep 2003
Posts: 16

PostPosted: Wed Apr 26, 2006 6:40 am    Post subject: Reply with quote

hello, i have same problem with :

Code:
[12:24] couldn't load file "/usr/local/lib/mysqltcl-3.01/libmysqltcl3.01.so": /usr/lib/libmysqlclient.so.15: version `MYSQL_5.0' not found (required by /usr/local/lib/mysqltcl-3.01/libmysqltcl3.01.so)
    while executing
"load /usr/local/lib/mysqltcl-3.01/libmysqltcl3.01.so"


can somebody say me what i need to do to fix that? thanks
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Apr 26, 2006 12:14 pm    Post subject: Reply with quote

discussed numerous times before

search the forum
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
darkrad
Voice


Joined: 10 Sep 2003
Posts: 16

PostPosted: Wed Apr 26, 2006 1:13 pm    Post subject: Reply with quote

i already did, and that's why i resumed this topic, because i searched in the forum, and this was the topic that looks more like to my problem... i have this problem after have upgraded the ubuntu dapper linux distro. It's not a script problem, just some linux package got upgraded or removed.. need to know what to install/repair to get it working
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Apr 26, 2006 2:20 pm    Post subject: Reply with quote

edited to include quote:
darkrad wrote:
i already did, and that's why i resumed this topic, because i searched in the forum, and this was the topic that looks more like to my problem... i have this problem after have upgraded the ubuntu dapper linux distro. It's not a script problem, just some linux package got upgraded or removed.. need to know what to install/repair to get it working

If you are having this trouble after recompiling eggdrop, your options are likely limited.

1) reinstall tcl and mysqltcl
2) search google for other problems like yours with ubuntu upgrades
3) contact the ubuntu developers letting them know that their upgrade
process may break programs


Last edited by DragnLord on Thu Apr 27, 2006 4:40 am; edited 1 time in total
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Apr 27, 2006 12:16 am    Post subject: Reply with quote

it's a simple matter of installing mySQL client libraries, and that's all there is to it
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming 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