SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 30/09/2019, 02:11 AM   #1
Pitstop
Little Clucker
 
Join Date: Aug 2015
Posts: 23
Reputation: 0
Default 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.
Pitstop is offline   Reply With Quote
Old 30/09/2019, 02:32 AM   #2
SlowARG
Big Clucker
 
SlowARG's Avatar
 
Join Date: Feb 2014
Posts: 52
Reputation: 18
Default 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.
SlowARG is offline   Reply With Quote
Old 30/09/2019, 03:07 AM   #3
Pitstop
Little Clucker
 
Join Date: Aug 2015
Posts: 23
Reputation: 0
Default Re: libmysqlclient_r.so.16 [CENTOS 7]

Quote:
Originally Posted by SlowARG View Post
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.

Last edited by Pitstop; 30/09/2019 at 03:48 AM.
Pitstop is offline   Reply With Quote
Old 30/09/2019, 03:54 AM   #4
SlowARG
Big Clucker
 
SlowARG's Avatar
 
Join Date: Feb 2014
Posts: 52
Reputation: 18
Default 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
SlowARG is offline   Reply With Quote
Old 30/09/2019, 04:05 AM   #5
Pitstop
Little Clucker
 
Join Date: Aug 2015
Posts: 23
Reputation: 0
Default Re: libmysqlclient_r.so.16 [CENTOS 7]

Quote:
Originally Posted by SlowARG View Post
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.
Pitstop is offline   Reply With Quote
Old 30/09/2019, 04:45 AM   #6
SlowARG
Big Clucker
 
SlowARG's Avatar
 
Join Date: Feb 2014
Posts: 52
Reputation: 18
Default Re: libmysqlclient_r.so.16 [CENTOS 7]

U mustn't edit MySQL include. U should edit your gamemode/filterscript.
SlowARG is offline   Reply With Quote
Old 30/09/2019, 01:58 PM   #7
Pitstop
Little Clucker
 
Join Date: Aug 2015
Posts: 23
Reputation: 0
Default Re: libmysqlclient_r.so.16 [CENTOS 7]

Quote:
Originally Posted by SlowARG View Post
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 is offline   Reply With Quote
Old 30/09/2019, 02:37 PM   #8
Pitstop
Little Clucker
 
Join Date: Aug 2015
Posts: 23
Reputation: 0
Default 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(81 : 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 ?
Pitstop is offline   Reply With Quote
Old 30/09/2019, 05:03 PM   #9
SlowARG
Big Clucker
 
SlowARG's Avatar
 
Join Date: Feb 2014
Posts: 52
Reputation: 18
Default Re: libmysqlclient_r.so.16 [CENTOS 7]

Look at cache_get_value_something, cache_get_field_something is now deprecated.
SlowARG is offline   Reply With Quote
Old 01/10/2019, 01:55 PM   #10
Pitstop
Little Clucker
 
Join Date: Aug 2015
Posts: 23
Reputation: 0
Default Re: libmysqlclient_r.so.16 [CENTOS 7]

Fixed.
You can L & A this topic.
Pitstop is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libmysqlclient_r.so.16 in centos 7 GutyMontana Server Support 2 22/02/2017 11:20 AM
libmysqlclient_r.so.15 in CentOS 6.4 64bit sony112502 Server Support 7 01/07/2014 05:56 PM
libmysqlclient_r.so.15 problem on centos M3HR4N Server Support 7 16/03/2014 01:34 AM
[CentOS 6] libmysqlclient_r.so.16 error Norrin Server Support 5 24/11/2013 02:59 PM


All times are GMT. The time now is 06:19 AM.


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