/usr/bin/ld: cannot find -lcommon
时间: 2023-09-30 21:05:12 浏览: 175
grpc-python-demos
This error message indicates that the linker (ld) is unable to find the library file named "libcommon.a" or "libcommon.so" that is needed to link the executable.
To resolve this error, you need to ensure that the library is installed and in the search path of the linker. Here are some things you can try:
1. Check if the library is installed: Use your package manager to search for the library and install it if it is not already installed. For example, if you are using Ubuntu or Debian, you can use the command "sudo apt-get install libcommon-dev" to install the library.
2. Check the library search path: Make sure that the directory where the library is installed is included in the linker's search path. You can do this by adding the directory to the LD_LIBRARY_PATH environment variable, or by specifying it with the -L option when compiling or linking.
3. Check the library name: Double-check that the library name is correct and matches the name used in the linker command. If necessary, you can rename the library file to match the expected name.
Once you have resolved the issue, try compiling and linking your program again.
阅读全文