Hi Terry, > Originally, I was getting a problem owing to a mismatch > between the Version on the server (5.1.56) and the version provided by > Ubuntu 23.04 (8.033). I uninstalled the package mysql-client-8.0, and > downloaded MySQL-client-5.1.56-1.glibc23.x86_64.rpm from the MySQL > website, (there is no deb available). I then used alien to convert the > rpm to a deb format and installed it.
A package manager understands dependencies between packages. You've cherry-picked one package and not handled its dependencies. > However, when I tried to run this, I got: > > $ mysql -u <username> -p -h 192.168.0.25 mysql: > error while loading shared libraries: libncursesw.so.5: cannot > open shared object file: No such file or directory The executable isn't self-contained. It can refer to other object files of code. $ ldd /bin/true linux-vdso.so.1 (0x00007ffd13f35000) libc.so.6 => /usr/lib/libc.so.6 (0x00007f00b6b92000) /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f00b6d91000) $ The executable you're running wants, amongst other things, a libncursesw.so.5 which isn't found. You probably have a later version installed. ‘locate libncursesw.so’ would find it. But installing an old version of libncursesw might just show up other old dependencies it needs. And so on. And the mysql executable might need other old things apart from libncursesw. You could spend days trying to sort it. > Clearly there is an incompatibility here with the kernel. No, with the shared libraries you have available. But they, in turn, may eventually be incompatible with the kernel if you have to go back far enough. > Does this mean I cannot use it on this machine without (perhaps) > running everything in a VM? That would seem simplest. Or Hamish mentioned recently on this list some Python MySQL client which he uses. -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2023-08-01 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:firstname.lastname@example.org