Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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