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.

Can't find mysqltcl package

Discussion of Eggdrop's code and module programming in C.
Post Reply
L
Leatherface
Voice
Posts: 4
Joined: Thu Aug 18, 2005 2:41 pm

Can't find mysqltcl package

Post by Leatherface »

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

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

[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
b
bras
Voice
Posts: 7
Joined: Fri Feb 03, 2006 8:38 am

Post by bras »

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

Code: Select all

load /usr/local/lib/tcl8.4/mysqltcl/libmysqltcl.so.3
L
Leatherface
Voice
Posts: 4
Joined: Thu Aug 18, 2005 2:41 pm

Post by Leatherface »

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

Thanks
d
darkrad
Voice
Posts: 16
Joined: Wed Sep 10, 2003 6:33 pm

Post by darkrad »

hello, i have same problem with :

Code: Select all

[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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

discussed numerous times before

search the forum
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
d
darkrad
Voice
Posts: 16
Joined: Wed Sep 10, 2003 6:33 pm

Post by darkrad »

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
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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

 tag when posting logs, code
Post Reply