I installed a library to the /usr/local/ prefix in Linux using ./configure && make && make install. What environment variables do I need to set in order for the linker and compiler to search these new library and header paths?


You shouldn't need to set anything, as /usr/local is searched through by default, both for header files and libraries.

If you installed a dynamic library (.so) file, however, you might need to run sudo ldconfig to use it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.