make install 设置安装路径

2021-07-01  本文已影响0人  可不期诺Cappuccino

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
上一篇下一篇

猜你喜欢

热点阅读