SphereCommunity
Libraries - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Libraries (/Thread-Libraries)

Pages: 1 2


Libraries - Runcuks - 03-15-2016 09:58 AM

Hi, just got acces to my vds server, but as i try to start my server i got this error

./spheresvr: error while loading shared libraries: libmysqlclient.so.15: cannot op en shared object file: No such file or directory

I search in forum but didnt find, how to fix this problem...
I am using centos-6-x86_64


RE: Libraries - Khaos - 03-15-2016 03:09 PM

Does the file exist on host? It sounds like it doesn't exist so it cannot open it.


RE: Libraries - karma - 03-15-2016 07:08 PM

You need to install 32 bits mysql libs, since sphere right now compiles only as x86.


RE: Libraries - Kanibal - 03-15-2016 07:44 PM

(03-15-2016 07:08 PM)karma Wrote:  You need to install 32 bits mysql libs, since sphere right now compiles only as x86.

Yep, that's butthurt :/


RE: Libraries - Runcuks - 03-16-2016 12:08 AM

i have libs ->
Code:
[root@145 lib64]# locate libmysqlclient.so.15
/home/sphere/data/libmysqlclient.so.15
/usr/lib/libmysqlclient.so.15
/usr/lib/mysql/libmysqlclient.so.15
/usr/lib64/libmysqlclient.so.15
/usr/lib64/libmysqlclient15/mysql/libmysqlclient.so.15
/usr/lib64/libmysqlclient15/mysql/libmysqlclient.so.15.0.0
/usr/lib64/mysql/libmysqlclient.so.15
/usr/lib64/mysql/libmysqlclient.so.15.0.0
[root@145 lib64]#


[root@145 lib64]# ldd /home/sphere/data/spheresvr
        linux-gate.so.1 =>  (0xb7797000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7774000)
        libmysqlclient.so.15 => not found
        librt.so.1 => /lib/librt.so.1 (0xb776b000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7680000)
        libm.so.6 => /lib/libm.so.6 (0xb7655000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7637000)
        libc.so.6 => /lib/libc.so.6 (0xb74a0000)
        /lib/ld-linux.so.2 (0xb7798000)
[root@145 lib64]#

I cant instal 32 bit libs ... it says not available libs
Pls, help guys


RE: Libraries - escribano - 03-16-2016 01:59 AM

Dude, there is no such lib for 32 or 64 bits, the packet you'r installing can be to 32x or 64x but the lib.. no!

Just create a synlink to the lib folder Smile
Something like:

"sudo ln -s /usr/lib64/libmysqlclient.so.15 /lib/libmysqlclient.so.15"

Hope it helps Smile


RE: Libraries - karma - 03-16-2016 02:30 AM

Of course libraries can be compiled for x86 or x86_64 arch, and they are different, not exchangeable ^^
https://en.wikipedia.org/wiki/Executable_and_Linkable_Format
http://unix.stackexchange.com/questions/81561/using-64bit-library-for-32-bit-application

So you should do instead:
"sudo ln -s /usr/lib/libmysqlclient.so.15 /lib/libmysqlclient.so.15"
If the lib is searched in /lib (as it seems, the alternative may be /lib/mysql), it should solve your issue.


RE: Libraries - Runcuks - 03-19-2016 08:13 PM

Jup thanks, got it to work Wink


RE: Libraries - exodus_au - 03-28-2017 06:46 PM

Hi,

I also have an issue with the lib not being seen.

Code:
User:~$ ldd spheresvr
        linux-gate.so.1 =>  (0xb77b7000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7789000)
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb7780000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb777a000)
        libmysqlclient.so.18 => not found
        libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb7692000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb764c000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb762f000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb747e000)
        /lib/ld-linux.so.2 (0xb77b8000)

Code:
User:~$ locate libmysqlclient.so.18
/lib/libmysqlclient.so.18
/usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
/usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0

I tried running the following line but it didnt work:
Code:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 /lib/libmysqlclient.so.18

and here is a list of my dpkg, i have tried so much with installing the debian packages and the ubuntu versions with no luck.
Code:
User:~$ dpkg -l| grep mysql
ii  libmysqlclient18:amd64               5.5.54-0ubuntu0.14.04.1              am                                                                                                                                                             d64        MySQL database client library
ii  mysql-client-core-5.5                5.5.54-0ubuntu0.14.04.1              am                                                                                                                                                             d64        MySQL database core client binaries
ii  mysql-common                         5.5.54-0ubuntu0.14.04.1              al                                                                                                                                                             l          MySQL database common files, e.g. /etc/mysql/my.cnf
rc  mysql-server-5.5                     5.5.54-0ubuntu0.14.04.1              am                                                                                                                                                             d64        MySQL database server binaries and system database setup
ii  mysql-server-core-5.5                5.5.54-0ubuntu0.14.04.1              am                                                                                                                                                             d64        MySQL database server binaries



RE: Libraries - Coruja - 03-29-2017 04:09 AM

sphere is 32bit and need 32bit libs, but your libmysqlclient18 is 64bit so if you just create a symlink to this 64bit lib it will not work correctly. You must have libmysqlclient18:i386 instead libmysqlclient18:amd64, try install it to check if it works

if you get any problem, try follow these instructions: https://github.com/Sphereserver/Source