PDA

View Full Version : libmysqlclient.so.18



YuriJurek
17th September 2013, 23:26
Hi there, so the problem I've got now is this:


Error while loading shared libraries: libmysqlclient.so.18: cannot open shared object

So basically it can not find the library, well I've tried a lot of fixes but none worked, would you guys recommend me any solution?

kung foo man
18th September 2013, 00:57
Hey, which .so-file are you currently using?

Did you:



apt-get install gcc-multilib
apt-get install libmysqlclient-dev:i386
apt-get install g++-multilib


Which linux you are using?

YuriJurek
18th September 2013, 01:05
Hmmn, guess it's Debian x64 (While not quite sure cuz It's Blancos).
Not tried yet with those, I am going to try it later today, thanks for quick answer.

BlancO
18th September 2013, 08:40
E: Nie udało się odnaleźć pakietu libmysqlclient-dev:i386


english:


E: Can't find package libmysqlclient-dev:i386


I see this after entering "apt-get install libmysqlclient-dev:i386"

Earliboy
18th September 2013, 13:23
dpkg --add-architecture i386
apt-get update

kung foo man
18th September 2013, 14:01
For the case dpkg doesn't work also, you can use the old way:

Download the mysql libs here: http://dbg.killtube.org/libcod/libs/mysql/

Start like this:



LD_LIBRARY_PATH=/folder/to/libs/mysql LD_PRELOAD=libcod2_1_3.so ./cod2_lnxded +set fs_game ...

or:


export LD_LIBRARY_PATH="/folder/to/libs/mysql"
export LD_PRELOAD="libcod2_1_3.so"
./cod2_lnxded +set fs_game ...


For the case that's not working also, I've compiled libcod without the mysql-dependency: http://killtube.org/downloads/libcod/

Edit: Silent requested some files, old files are down: http://killtube.org/downloads/silent/

Ni3ls
14th August 2016, 19:50
For the case dpkg doesn't work also, you can use the old way:

Download the mysql libs here: http://dbg.killtube.org/libcod/libs/mysql/


How to download that?

IzNoGoD
14th August 2016, 21:00
There are seemingly some troubles on debian x64. Maybe try editting your apt-get lists, might not find the x86 packages because of missing files on your mirrors.

kung foo man
14th August 2016, 22:34
How to download that?

The MySQL libs are here now: http://killtube.org/downloads/silent/mysql/

IzNoGoD
14th August 2016, 23:25
Please show the results of cat /etc/apt/sources.list

dacajoca
30th March 2017, 21:00
Hi
Something wrong with you'r libmysql client.
This piece of cod request uninstall multilib ??
I try in other thread's to find answer, but, anyone has real answer. What is benefit's for use libcod??
For libcod we need mysql server, mysql server use much resource's from dedicated or VPS.
For DDoS protection, which is more actual themes in cod2, only support is provider with property configured routers.
For all other scripts, we use scripting in .iwd files, so, can you answer to trivial question:
Why use libcod ?????

IzNoGoD
30th March 2017, 21:31
You dont need to install mysql server to use libcod. It includes a connector which can connect to mysql servers, but it's not a requirement. If you read the installation guide, you'll see that it requires mysqlclient, not mysqlserver. You can also disable mysql inside the config files to get rid of it entirely.

It's not ddos protection for YOUR server, it's protection from the q3 getstatus/getinfo amplification attack, in which your server is utilized to amplify a ddos against a third party server.

For scripting, libcod adds multiple script functions not available in stock cod2_lnxded.

And multilib is not uninstalled by libcod, it's uninstalled by the prereqs for compiling your own libcod. Voron's version already uses g++ only, you dont need gcc anymore.

filthy_freak_
22nd January 2019, 06:31
I had a similar issue when using libcod with Ubuntu 18.04



Error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory


Probably because I compiled libcod on Ubuntu 14.04.

Fix is to uninstall current libraries;


sudo apt-get --purge remove libmysqlclient-dev:i386


Then download this .deb package and install;


wget http://launchpadlibrarian.net/247514894/libmysqlclient18_5.6.28-1ubuntu3_i386.deb
sudo apt install ./libmysqlclient18_5.6.28-1ubuntu3_i386.deb

IzNoGoD
23rd January 2019, 04:35
Probably because I compiled libcod on Ubuntu 14.04.

Fix is to uninstall current libraries;


Or to recompile libcod on your target system...

filthy_freak_
23rd January 2019, 04:41
Or to recompile libcod on your target system...

Yes the proper fix would be to recompile.

But for me it was easier to just downgrade mysql because I have made so many changes to my libcod source that it won't work without updating my mod.

Also useful for those that downloaded the libcod binaries and don't know how to compile.