Jump to content

[HELP] Problem with ncurses


Recommended Posts

I have a VPS with a Debian "buster", but I am having problems starting the server.
 

Quote

root@#####:~/mtasa/mtasa-server# ./mta-server
libncursesw.so.5: cannot open shared object file: No such file or directory
ERROR: Could not load ./core.so
* Check installed data files.
Press enter to continue...

I looked for possible solutions to my problem, but nothing solved it. libncurses5 is installed, I tried an i386 architecture thinking that this would be the problem, but nothing ....
 

Quote

root@#####:~/mtasa/mtasa-server# apt install libncurses5:i386 libncursesw5 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libgpm2:i386 libtinfo5 libtinfo5:i386
Suggested packages:
  gpm:i386
The following NEW packages will be installed:
  libgpm2:i386 libncurses5:i386 libncursesw5 libtinfo5 libtinfo5:i386
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 439 kB/898 kB of archives.
After this operation, 1,785 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libtinfo5 amd64 6.1+20181013-2+deb10u2 [321 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libncursesw5 amd64 6.1+20181013-2+deb10u2 [118 kB]
Fetched 439 kB in 0s (5,442 kB/s)
Selecting previously unselected package libgpm2:i386.
(Reading database ... 104603 files and directories currently installed.)
Preparing to unpack .../libgpm2_1.20.7-5_i386.deb ...
Unpacking libgpm2:i386 (1.20.7-5) ...
Selecting previously unselected package libtinfo5:i386.
Preparing to unpack .../libtinfo5_6.1+20181013-2+deb10u2_i386.deb ...
Unpacking libtinfo5:i386 (6.1+20181013-2+deb10u2) ...
Selecting previously unselected package libncurses5:i386.
Preparing to unpack .../libncurses5_6.1+20181013-2+deb10u2_i386.deb ...
Unpacking libncurses5:i386 (6.1+20181013-2+deb10u2) ...
Selecting previously unselected package libtinfo5:amd64.
Preparing to unpack .../libtinfo5_6.1+20181013-2+deb10u2_amd64.deb ...
Unpacking libtinfo5:amd64 (6.1+20181013-2+deb10u2) ...
Selecting previously unselected package libncursesw5:amd64.
Preparing to unpack .../libncursesw5_6.1+20181013-2+deb10u2_amd64.deb ...
Unpacking libncursesw5:amd64 (6.1+20181013-2+deb10u2) ...
Setting up libgpm2:i386 (1.20.7-5) ...
Setting up libtinfo5:amd64 (6.1+20181013-2+deb10u2) ...
Setting up libtinfo5:i386 (6.1+20181013-2+deb10u2) ...
Setting up libncurses5:i386 (6.1+20181013-2+deb10u2) ...
Setting up libncursesw5:amd64 (6.1+20181013-2+deb10u2) ...
Processing triggers for libc-bin (2.28-10) ...
root@#####:~/mtasa/mtasa-server# ldd core.so
        linux-gate.so.1 (0xf7f3b000)
        libncursesw.so.5 => not found
        libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xf7e79000)
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7e6e000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7e4d000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7c6f000)
        /lib/ld-linux.so.2 (0xf7f3d000)
 

Some topics ask to look for the file inside /usr/lib/, but it is in /usr/lib/x86_x64-linux-gnu
 

Quote

root@#####:~# ls -la /usr/lib/x86_64-linux-gnu/libncurses*
-rw-r--r-- 1 root root 129864 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncurses++.a
-rw-r--r-- 1 root root 309044 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncurses.a
-rw-r--r-- 1 root root     31 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncurses.so
lrwxrwxrwx 1 root root     17 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncurses.so.6 -> libncurses.so.6.1
-rw-r--r-- 1 root root 165824 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncurses.so.6.1
-rw-r--r-- 1 root root 129864 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncurses++w.a
-rw-r--r-- 1 root root 428740 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncursesw.a
-rw-r--r-- 1 root root     32 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncursesw.so
lrwxrwxrwx 1 root root     18 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncursesw.so.5 -> libncursesw.so.5.9
-rw-r--r-- 1 root root 202688 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncursesw.so.5.9
lrwxrwxrwx 1 root root     18 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncursesw.so.6 -> libncursesw.so.6.1
-rw-r--r-- 1 root root 231360 Nov  2  2019 /usr/lib/x86_64-linux-gnu/libncursesw.so.6.1
 

How can I solve this problem and turn on the server?
 

Spoiler

 

Link to post
  • 2 weeks later...
On 28/07/2020 at 20:41, AaroN⍩ said:

1- Update your debian

Sudo apt-get update

Sudo apt-get upgrade

 

I had already done it, but I did it again. Unsuccessful again ... Will it be something only with Debian 10?

root@#####:~/mtasa-server# apt-get update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done

root@#####:~/mtasa-server# apt-get upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@#####:~/mtasa-server# ldd core.so
        linux-gate.so.1 (0xf7f1b000)
        libncursesw.so.5 => not found
        libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xf7e58000)
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7e4d000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7e2c000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7c4e000)
        /lib/ld-linux.so.2 (0xf7f1d000)

root@#####:~/mtasa-server# ./mta-server
libncursesw.so.5: cannot open shared object file: No such file or directory
ERROR: Could not load ./core.so
* Check installed data files.
Press enter to continue...
 

Link to post

Solved I installed the x64 version and it worked.


Note: My VPS is x86, but it was finally resolved.

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...