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.

mysqltcl[solved]

Help for those learning Tcl or writing their own scripts.
Post Reply
t
theice
Voice
Posts: 36
Joined: Thu Mar 13, 2008 4:20 pm

mysqltcl[solved]

Post by theice »

can't figure out how to install this at all-

the coding to utilize it seems super easy, I used the search feature still couldn't figure it out.

http://www.xdobry.de/mysqltcl/
http://www.xdobry.de/mysqltcl/mysqltcl-3.05.tar.gz

is what i want to use

I am using a freebsd shell, so I have no idea what to do, I just have a user account no root access or anything
Last edited by theice on Wed Apr 16, 2008 2:59 pm, edited 1 time in total.
Image
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Re: mysqltcl

Post by DragnLord »

theice wrote:can't figure out how to install this at all-

the coding to utilize it seems super easy, I used the search feature still couldn't figure it out.

http://www.xdobry.de/mysqltcl/
http://www.xdobry.de/mysqltcl/mysqltcl-3.05.tar.gz

is what i want to use

I am using a freebsd shell, so I have no idea what to do, I just have a user account no root access or anything
Best thing to do is ask your shell server admin if mysqltcl is installed on the server.
t
theice
Voice
Posts: 36
Joined: Thu Mar 13, 2008 4:20 pm

Post by theice »

he installed it on the server,

but...

it is saying the package isn't there?

do I have to recomplie the bot or something? where do I put that

tried adding

load /usr/local/lib/mysqltcl-3.03/libmysqltcl3.03.so

to my eggdrop.conf is that all I have to do?
Image
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

recompile eggdrop and see if errors persist
t
theice
Voice
Posts: 36
Joined: Thu Mar 13, 2008 4:20 pm

Post by theice »

I can just recomplie the eggdrop, without changing any of the settings?

Code: Select all

[02:50] Tcl error in file 'eggdrop.conf':
[02:50] couldn't load file "/usr/local/lib/mysqltcl-3.05/libmysqltcl3.05": Cannot open "/usr/local/lib/mysqltcl-3.05/libmysqltcl3.05"
    while executing
"load /usr/local/lib/mysqltcl-3.05/libmysqltcl3.05"
    (file "eggdrop.conf" line 1347)
[02:50] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
is what I get.
Image
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

On most linux-based systems, loadable libraries would be suffixed by .so
Double-check the name of the path and filename of the library. Since it's a tcl-module and not an eggdrop-module, there is no need for recompiling your eggdrop.
NML_375
t
theice
Voice
Posts: 36
Joined: Thu Mar 13, 2008 4:20 pm

Post by theice »

it was .so , I tried that also

Code: Select all

[11:34] couldn't load file "/usr/local/lib/mysqltcl-3.05/libmysqltcl3.05.so": Cannot open "/usr/local/lib/mysqltcl-3.05/libmysqltcl3.05.so"
    while executing
"load /usr/local/lib/mysqltcl-3.05/libmysqltcl3.05.so"
    (file "eggdrop.conf" line 1347)

Code: Select all

load /usr/local/lib/mysqltcl-3.05/libmysqltcl3.05.so
^ is that what I need i my eggdrop.conf ?
Image
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Assuming that's the correct path to the file, yes.
Could you also check the file permissions of that file? (ls -l)
NML_375
t
theice
Voice
Posts: 36
Joined: Thu Mar 13, 2008 4:20 pm

Post by theice »

the permissions are correct to be accessed from my shell account..

any other ideas?
Image
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Could you please paste the output from

Code: Select all

ldd /usr/local/lib/mysqltcl-3.05/libmysqltcl3.05.so
NML_375
t
theice
Voice
Posts: 36
Joined: Thu Mar 13, 2008 4:20 pm

Post by theice »

I asked a different admin for my hosting company to see what was up, and he got it working in 2 minutes ROFL.

Code: Select all

libmysqlclient.so.16 => /usr/local/lib/mysql/libmysqlclient.so.16 (0x2816b000)
	libcrypt.so.3 => /lib/libcrypt.so.3 (0x281cf000)
	libm.so.4 => /lib/libm.so.4 (0x281e7000)
	libz.so.3 => /lib/libz.so.3 (0x281fd000)
so I think it is working good now
Image
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Good,
In many cases, these errors are due to improperly configured ld (the library responsible for loading dynamically linked libraries). Especially with "non-standard" installationpaths, it's very easy to forget to edit /etc/ld.so.conf and/or running ldconfig after installation.

Anyway, good luck and happy scripting..
NML_375
t
theice
Voice
Posts: 36
Joined: Thu Mar 13, 2008 4:20 pm

Post by theice »

thanks for your help
Image
Post Reply