On 2020-12-17, Chris Zakelj <c.zak...@ieee.org> wrote: > Coming back to my self-teaching on how to (hopefully eventually) be > semi-competent, I'm working on trying to build a git project from > source. Thus far I've been able to figure out things like functions > having slight name differences (e.g. |pthread_set_name_np()| instead of >|pthread_setname_np()) and missing #includes in .hh files, but getting > stuck on a library issue... about halfway through the first module, I'm > failing with: > > ld: error: unable to find library -lprotoc > ld: error: unable to find library -lprotobuf > c++: error: linker command failed with exit code 1 (use -v to see > invocation)
You need -L/usr/local/lib on linker commands. This is often done by setting it in LDFLAGS when running any configure scripts.