The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Libraries
Author Message
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #1
Libraries
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
03-15-2016 09:58 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #2
RE: Libraries
Does the file exist on host? It sounds like it doesn't exist so it cannot open it.
03-15-2016 03:09 PM
Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #3
RE: Libraries
You need to install 32 bits mysql libs, since sphere right now compiles only as x86.
03-15-2016 07:08 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like karma's post
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: Libraries
(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 :/

Grandmaster Localhost Admin
03-15-2016 07:44 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Kanibal's post
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #5
RE: Libraries
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
03-16-2016 12:08 AM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #6
RE: Libraries
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

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
03-16-2016 01:59 AM
Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #7
RE: Libraries
Of course libraries can be compiled for x86 or x86_64 arch, and they are different, not exchangeable ^^
https://en.wikipedia.org/wiki/Executable...ble_Format
http://unix.stackexchange.com/questions/...pplication

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.
(This post was last modified: 03-16-2016 04:11 AM by karma.)
03-16-2016 02:30 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes karma's post
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #8
RE: Libraries
Jup thanks, got it to work Wink
03-19-2016 08:13 PM
Find all posts by this user Like Post Quote this message in a reply
exodus_au
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2017
Reputation: 0



Post: #9
RE: Libraries
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
03-28-2017 06:46 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #10
RE: Libraries
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
(This post was last modified: 03-29-2017 04:36 AM by Coruja.)
03-29-2017 04:09 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)