error while loading shared libraries: libxcb-util.so.0: cannot open shared...
Commodore 64, Atari XL/XE and NES debugger that works in real time.
Brought to you by:
slajerek
Hi! Testing C64Debugger-v0.64.56-linux-x64/C64Debugger (from csdb-link)
On a fresh Ubuntu 18.04 installation I get the following missing library-error :
$ ./c64debugger
./c64debugger: error while loading shared libraries: libxcb-util.so.0: cannot open shared object file: No such file or directory
The available packages I have are:
$ apt-cache search libxcb-util
libxcb-util-dev - utility libraries for X C Binding -- atom, aux and event
libxcb-util0-dev - dummy transitional package for utility libraries for X C Binding -- atom, aux and event
libxcb-util1 - utility libraries for X C Binding -- atom, aux and event
Best regards,
encore
Interesting, actually I had to install these libraries on my Debian (both x64 and i386):
sudo apt-get install libxcb-util-dev
sudo apt-get install libxcb-util0
sudo apt-get install libxcb-util0-dev
And that was enough to start it. Maybe these packages are broken and not linked correctly in Ubuntu? You can always put the libxcb-util.so.0 manually in somewhere and add its path to LD_LIBRARY_PATH and then reload with ldconfig. Are you sure you have them installed? :-)
These libraries are needed for copy-paste and are needed by the libclipboard that I am using for this: https://github.com/jtanx/libclipboard
By the way, you might try also compiling sources using the Makefile, maybe it helps.
Last edit: slajerek 2018-11-29
Hi slajerek. I have libxcb-util1 installed, the only (non dev) libxcb-util package available by default from the Ubuntu repositories.
I (successfully) tried building from the git-repositories. As I've recently built vice-emu on the same installation, only a few more packages were needed, besides of git:
libgl-dev
libglu1-mesa-dev
libxcb-util-dev
upx-ucl (perhaps this one should be mentioned in the readme)
So this works. I'm not getting much wiser, but I unpacked the executables and tried running ldd and grepping for libxcb. An interesting difference is that my executable lacks the call to libxcb-util
Last edit: encore64 2018-11-29
This is interesting. It seems it is related to problems with my old Debian build machine...
Last edit: slajerek 2021-02-23
For the record, my Debain (Bullseye) also doesn't have libxcb-util0 anymore but only -util1. Maybe time to update the Debian build machine? :)
ditto with Linux Mint 20.2.
For SLACKWARE users or other distribution rapid solution easy create link symbolic
Create the symbolic link to the library and run the debugger again and this time it should work in the git repository as well.
;-)
or
I am not an expert on these things but something is apt let me know if the solution is also valid in other distributions including the most used ones debian, ubuntu, etc.
after several attempts, without inserting any point to the environment variable, the program looked for a link not created.
If it creates problems after linking to other applications please let me know.
TNX ;-)
Same problem on Arch Linux. Any solutions yet?
EDIT:
I can make it work by creating a symlink as suggested by Fabio above but I don't like doing this. It may possibility create other issues in the future with other programs.
It looks like a wonderful program, so thanks very much for that! But very CPU hungry.
Last edit: Trickster 2021-09-26