The best way to install such programs may be to install them in your home directory. Pass the option --prefix=/home/<user>/<some>/<directory> to ./configure.
When you run ./configure
, the --prefix
option lets you specify where those directories are. It is called --prefix
because it lets you give the prefix that appears in the paths to each of the directories where files from the program or library that you are building are to be installed. Most configure scripts support --prefix
, and omitting it and just running ./configure is typically equivalent to
./configure --prefix=/usr/local
参考链接
https://askubuntu.com/questions/891835/what-does-prefix-do-exactly-when-used-in-configure
https://unix.stackexchange.com/questions/20953/difference-between-make-install-and-sudo-make-install
网友评论