Make install, but not to default directories?

后端 未结 7 1947
迷失自我
迷失自我 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:18

    I tried the above solutions. None worked.

    In the end I opened Makefile file and manually changed prefix path to desired installation path like below.

    PREFIX ?= "installation path"
    

    When I tried --prefix, "make" complained that there is not such command input. However, perhaps some packages accepts --prefix which is of course a cleaner solution.

提交回复
热议问题