SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Server Support (https://forum.sa-mp.com/forumdisplay.php?f=19)
-   -   libmysqlclient_r.so.16 [CENTOS 7] (https://forum.sa-mp.com/showthread.php?t=669691)

Pitstop 30/09/2019 02:11 AM

libmysqlclient_r.so.16 [CENTOS 7]
 
Hello guys.


I didn't play SAMP long time and I tried to run my mode after something like 3 years and got this error in logs:

[21:03:09] Loading plugin: mysql.so
[21:03:09] Failed (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory)

I can't update the mysql.so the newer since I will have to update the include too and in my include there are alot of functions that missing in the new INC ...

Help me, What shall I do to run the server?
I also debugged and see in logs that when it arrived to the sqlconnect part it gives the error.
I am sure it happened to someone.. I have to solve it.

SlowARG 30/09/2019 02:32 AM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
I don't really know the package names in CentOS, but you need to install an MySQL Client (32-bit).

Try something like
Code:

yum install mysql.i386
Regards.

Pitstop 30/09/2019 03:07 AM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
Quote:

Originally Posted by SlowARG (Post 4115500)
I don't really know the package names in CentOS, but you need to install an MySQL Client (32-bit).

Try something like
Code:

yum install mysql.i386
Regards.

Well I fixed that error but now I put nativechecker
and got these errors (THE PROBLEM WHY SERVER ISN'T RUNING)

[22:12:07] Error: Function not registered: 'cache_get_field_content_int'
[22:12:07] Error: Function not registered: 'cache_get_field_content_float'
[22:12:07] Error: Function not registered: 'cache_get_field_content'
[22:12:07] Error: Function not registered: 'cache_get_data'
[22:12:07] Error: Function not registered: 'cache_get_row'
[22:12:07] Error: Function not registered: 'cache_get_row_int'
[22:12:07] Error: Function not registered: 'mysql_reconnect'

What the hell is this ?

*** IMPORTANT MESSAGE : (( I can't update the includes since when I complie the mode I get 26 errors...))
please help.

SlowARG 30/09/2019 03:54 AM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
U must update MySQL to the latest version.

Look at this: https://forum.sa-mp.com/showthread.php?t=616103

Pitstop 30/09/2019 04:05 AM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
Quote:

Originally Posted by SlowARG (Post 4115510)
U must update MySQL to the latest version.

Look at this: https://forum.sa-mp.com/showthread.php?t=616103

Just edit the a_mysql.inc like his guide?
I hope I won't get these 26 errors.

SlowARG 30/09/2019 04:45 AM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
U mustn't edit MySQL include. U should edit your gamemode/filterscript.

Pitstop 30/09/2019 01:58 PM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
Quote:

Originally Posted by SlowARG (Post 4115513)
U mustn't edit MySQL include. U should edit your gamemode/filterscript.

I fixed everything apart of this section:

Quote:

all cache_get_ functions now return their value through a reference parameter instead of returning it directly:
Code:
new bool:value = cache_get_value_index_bool(0, 2);

new row_count = cache_get_row_count();
becomes
Code:
new bool:value;
cache_get_value_index_bool(0, 2, value);

new row_count;
cache_get_row_count(row_count);
All cache_get_ functions that returned data through their return value before now return it through a reference parameter. Instead they now return an status code, indicating if the function successfully executed or not.
RegEx (will correct all "cache_get_value_" natives which are in the style "variable = cache_get_value_*(*);":

What does it mean ?
I can't find "cache_get_value_index_bool(0, 2, value);" in the mode but I have too much of cache_get_value_

for example

cache_get_value_name(0, "Tut", fetch);

Pitstop 30/09/2019 02:37 PM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
VSys.pwn(776) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(782) : error 017: undefined symbol "cache_get_field_content_float"
VSys.pwn(783) : error 017: undefined symbol "cache_get_field_content_float"
VSys.pwn(784) : error 017: undefined symbol "cache_get_field_content_float"
VSys.pwn(785) : error 017: undefined symbol "cache_get_field_content_float"
VSys.pwn(786) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(787) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(817) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(818) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(819) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(820) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(821) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(822) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(830) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(831) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(832) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(833) : error 017: undefined symbol "cache_get_field_content_float"
VSys.pwn(834) : error 017: undefined symbol "cache_get_field_content_int"
VSys.pwn(844) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(847) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(850) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(853) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(873) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(876) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(879) : error 017: undefined symbol "cache_get_field_content"
VSys.pwn(882) : error 017: undefined symbol "cache_get_field_content"


errors.. what should I do ?

SlowARG 30/09/2019 05:03 PM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
Look at cache_get_value_something, cache_get_field_something is now deprecated.

Pitstop 01/10/2019 01:55 PM

Re: libmysqlclient_r.so.16 [CENTOS 7]
 
Fixed.
You can L & A this topic.


All times are GMT. The time now is 07:23 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.