cilent1 error while loading shared libraries libjsonso0 cannot open shared object file No such file or directory
This error message indicates that the program "./client1" is unable to find the shared library "libjson.so.0" that it depends on.
To resolve this issue, you can try the following steps:
-
Check if the library "libjson.so.0" is installed on your system. You can do this by running the following command in your terminal:
ldconfig -p | grep libjson.so.0If the library is not found, you may need to install it. You can usually do this using your package manager. For example, on Ubuntu, you can run:
sudo apt-get install libjson-c-dev -
If the library is already installed, you might need to update the library search path. You can do this by setting the
LD_LIBRARY_PATHenvironment variable to include the directory where the library is located. For example, if the library is in the "/usr/local/lib" directory, you can run:export LD_LIBRARY_PATH=/usr/local/libAfter setting the environment variable, try running the program again. The error should be resolved.
If the above steps do not resolve the issue, please provide more information about your system and the steps you have already taken, so that we can assist you further.
原文地址: https://www.cveoy.top/t/topic/i858 著作权归作者所有。请勿转载和采集!