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?

link|improve this question

56% accept rate
feedback

1 Answer

up vote 0 down vote accepted

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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