Skip to content

How to add prefix when sudo make install #389

Closed Answered by olebole
Firestar-Reimu asked this question in Q&A
Discussion options

You must be logged in to vote

prefix is a recognized environment variable, so you can use

prefix=/usr make install

You can also set it separately (f.e. if other tools want to use it as well):

export prefix=/usr
make install

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Firestar-Reimu
Comment options

You must be logged in to vote
1 reply
@olebole
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Build Build, compilation or installation problem
2 participants