mysql lib need help!
#1

Hello, I have problem about mysql libclient.

My Server is dedicated on CentOS 5
MySQL version 5.0.51a-community-log
Protocol version: 10
(Bundle with DirectAdmin)

when I run server it error in server log show
SA:MP Dedicated Server
----------------------
v0.2X, ©2005-2008 SA:MP Team

[11:14:29]
[11:14:29] Server Plugins
[11:14:29] --------------
[11:14:29] Loading plugin: sampmysql.so
[11:14:29] Failed (libmysqlclient.so.15: cannot open shared object file: No such file or directory)
[11:14:29] Loaded 0 plugins.


my server locate at : /home/admin/samp

But I have libmysqlclient.so.15 at /usr/lib/mysql
I also copy to libmysqlclient.so.15 to /home/admin/samp and /home/admin/samp/plugins

but it not work anyway.

[root@ns8 plugins]# ldd sampmysql.so
linux-gate.so.1 => (0xffffe000)
libmysqlclient.so.15 => not found
libz.so.1 => /usr/lib/libz.so.1 (0xf7fbb000)
libcrypto.so.0.9.8 => not found
libc.so.6 => /lib/libc.so.6 (0xf7e78000)
/lib/ld-linux.so.2 (0x00130000)


I'm try to compile a mysql but it show

[root@ns8 src]# ls
compilation.txt sampmysql.cpp SDK
[root@ns8 src]# gcc -Wall -fPIC -c sampmysql.cpp -DLINUX -ISDK/amx
SDK/amx/amx.h:215: warning: вpackedв attribute ignored for field of type вchar [20]в
SDK/amx/amx.h:265: warning: вpackedв attribute ignored for field of type вcharв
SDK/amx/amx.h:266: warning: вpackedв attribute ignored for field of type вcharв
SDK/amx/amx.h:371: error: conflicting declaration вtypedef unsigned int size_tв
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/stddef.h:214: error: вsize_tв has a previous declaration as вtypedef long unsigned int size_tв
[root@ns8 src]#


and ...
[root@ns8 src]# cd SDK
[root@ns8 SDK]# ls
amx amxplugin.cpp amxplugin.o getch.c getch.o plugincommon.h plugin.h
[root@ns8 SDK]# gcc -shared -W1,-soname,sampmysql -o sampmysql.so *.o -L/usr/lib/mysql -lmysqlclient
amxplugin.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
[root@ns8 SDK]#


Anyone have idea about this? how to fix it?


Thank you.
Reply
#2

hmm im not sure of the way to fix this but i guess the main things you should look at as they cause errors are

1 = Check your using correct details and login password and so on
2 = Check that your MYSQL / PHPMYADMIN or whatever you use is allowing connections
3 = if your hosting the MYSQL then put your address of server in the white list.
4= Ensure the plugin is in the correct place

They are just a few things to check over. But the full way to fix it im not sure


Hope this helps

Lee
Owner of LS RRP
Reply
#3

Quote:
Originally Posted by ls-rlrp
hmm im not sure of the way to fix this but i guess the main things you should look at as they cause errors are

1 = Check your using correct details and login password and so on
2 = Check that your MYSQL / PHPMYADMIN or whatever you use is allowing connections
3 = if your hosting the MYSQL then put your address of server in the white list.
4= Ensure the plugin is in the correct place

They are just a few things to check over. But the full way to fix it im not sure


Hope this helps

Lee
Owner of LS RRP
Thank you for all guy, I did all of it. I think it may be about OS and lib. I still waiting some guru .
Reply
#4

what you mean your OS what OS are you using?? ((operating system))
Reply
#5

Quote:
Originally Posted by ls-rlrp
what you mean your OS what OS are you using?? ((operating system))
CentOS 5.2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)