Make install, but not to default directories?

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

    It could be dependent upon what is supported by the module you are trying to compile. If your makefile is generated by using autotools, use:

    --prefix=<myinstalldir>

    when running the ./configure

    some packages allow you to also override when running:

    make prefix=<myinstalldir>
    

    however, if your not using ./configure, only way to know for sure is to open up the makefile and check. It should be one of the first few variables at the top.

    0 讨论(0)
提交回复
热议问题