$ ./configure --help | grep install
--prefix=PREFIX install architecture-independent files in PREFIX
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
By default, `make install' will install all the files in
an installation prefix other than `/usr/local' using `--prefix',
Fine tuning of the installation directories:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
按照惯例,
./configure
脚本--prefix
为此提供了一个选项。所以例如或者
(对于很多软件,
/usr/local
是默认的)。您通常可以运行
./configure --help
以查看此选项和其他可能影响安装路径的选项,例如