Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The libboost-dev package in the repos is an older one and I would like to use the newest release. I'm OK with installing from source, but am a little confused by the instructions on the site. It instructs to run

./b2 install --prefix=PREFIX

where PREFIX is a directory where you want Boost.Build to be installed.

What should PREFIX be set to so that the libraries and headers are available for the compilers to find without specifying custom paths?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
gcc  --print-search-dirs

with this command you get informations about where gcc looks for libs and headers, probably the best place where you can install your custom library is

/usr/lib

but the problem is always the same, if you will install the same package from a repository in a next future you will probably experience some problem.

If i was in you, i will install each one of my custom library into a custom directory and instruct gcc with a specific directory named at compile time.

share|improve this answer
    
FWIW the correct PREFIX is /usr, since Boost will copy files to PREFIX/lib and PREFIX/include (I don't why they can't state this simply, I would have known the path just from that). –  Tamás Szelei Aug 1 '12 at 9:52

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.