I need to install a bin file.
My home dir is /home/user
.
The bin file is present at /apps/ba/software
.
I need to install this at /apps/ba/ins
.
How can I do that?
答案1
--prefix=dir
一般来说,如果你编译源代码来安装你的软件,你可以添加参数:但是如果你使用apt-get
命令安装它,你就不能指定安装位置。
答案2
如果您是从源代码安装,请尝试./configure --prefix=/apps/ba/ins && make && make install
如果您通过 apt 安装,最好的方法是创建一个符号链接:
ln -s /apps/ba/ins /apps/ba/software