Make install, but not to default directories?

后端 未结 7 1962
迷失自我
迷失自我 2020-11-30 16:41

I want to run \'make install\' so I have everything I need, but I\'d like it to install the things in their own folder as opposed to the system\'s /usr/bin etc. is that poss

7条回答
  •  盖世英雄少女心
    2020-11-30 17:39

    make DESTDIR=./new/customized/path install
    

    This quick command worked for me for opencv release 3.2.0 installation on Ubuntu 16. DESTDIR path can be relative as well as absolute.

    Such redirection can also be useful in case user does not have admin privileges as long as DESTDIR location has right access for the user. e.g /home//

提交回复
热议问题