SA-MP Forums Archive
MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) (/showthread.php?tid=267427)



MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - Jochemd - 08.07.2011

Hello,

Since this won't be an error cause by mysql.so specific, I decided to post it in Server Support. It could be a mistake in Linux by us.

When I attempt to start my server, in server_log is this error:

Код:
[18:18:35]   Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by plugins/mysql.so))
GLIBCXX is installed. How can we fix this?

Jochem


Re: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - 0x5A656578 - 08.07.2011

Have you tried compiling the plugin from source? It will be linked with your system's glibc instead of that one then


Re: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - Jochemd - 08.07.2011

How can we do that? It's the plugin of G-Stylezzz. Do we need to compile it on Linux?


Re: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - 0x5A656578 - 08.07.2011

Do you have access to gcc on the server?


Re: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - Jochemd - 08.07.2011

Yeah, we got access


Re: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - 0x5A656578 - 08.07.2011

So it's pretty easy then - just upload the source code, cd to <mysql_plugin_root>/mysql_rel and run command "make" or "make -f makefile_staticlib" (the latter links to mysql statically I suppose)


Re: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - Jochemd - 08.07.2011

We're going to try that - thanks


Re: MySQL Plugin doesn't load on Linux (GLIBCXX_3.4.9 missing) - Jochemd - 09.07.2011

We don't get really far - we don't get it compiled. Could you tell us step for step how we can compile a plugin in Linux? We're new to it.