There is a 32-bit program that I need to run on a 64-bit Ubuntu. When i try to run it, I have the following error :
program: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
When using my personal PCs, I have managed to solve this issue by using the following commands:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
However, I now need to run this program on another PC on which I can't have the sudo rights. I did a google search to solve this issue but haven't found anything conclusive.
So my question is: is there any way for me to run a 32-bit program on a 64-bit Ubuntu (14.04 LTS) without any sudo command ?
Edit : the program I am trying to use is ProFit V3.1
Edit for @EliahKagan : results of requested commands: On the target machine:
$ lsb_release -a
lsb_release : command not found
$ apt-cache policy libc6
apt-cache : command not found
$ file /lib/x86_64-linux-gnu/libc-*
/lib/x86_64-linux-gnu/libc-*: cannot open `/lib/x86_64-linux-gnu/libc-*' (No such file or directory)
Given these results, I'm not sure I should also give the results on my machine... ? On my machine:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5
LTS Release: 14.04
Codename: trusty
$ apt-cache policy libc6
libc6:
Installed: 2.19-0ubuntu6.9
Candidate: 2.19-0ubuntu6.9 [...]
$ file /lib/x86_64-linux-gnu/libc-*
/lib/x86_64-linux-gnu/libc-2.19.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs) [...]
gcc
andmake
installed. However I don't think I fully understand your answer, my English being quite limited... Are you saying I should download the source code and compile it on my PC, and copy the program on the target machine ? Could this really help with the missing library ? – Luci Jan 03 '17 at 18:15gcc
andmake
aren't actually needed on the target machine if you're building everything on your own machine, but only if you were to build the software on the target machine itself.) – Eliah Kagan Jan 03 '17 at 18:22