美文网首页
make install 设置安装路径

make install 设置安装路径

作者: 可不期诺Cappuccino | 来源:发表于2021-07-01 17:56 被阅读0次

he make install target dir is representationed by var : DESTDIR, if we set this var to the location which we want to installed to, then we can have the build result installed accrodingly.

export DESTDIR=/INSTALL/DIR
make install

or

make DESTDIR=/install/directory install

In the ./configure file ,we can use --prefix to specify the installation directory. see as follows:

 ./configure --prefix=/pathToInstall

we can use ./configure --help in the teminal, and the path parameter indicate the install path.

./configure --help

相关文章

网友评论

      本文标题:make install 设置安装路径

      本文链接:https://www.haomeiwen.com/subject/qdxsultx.html