我已经看到,在 Linux 中安装新软件时,我总是必须先使用 configure
它。
但有时我们需要像我今天所做的那样传递各种选项来安装 lxml
:
./configure --with-python=/opt/python27/bin/python
--prefix=/usr/local
--with-libxml-prefix=/usr/local
--with-libxml-include-prefix=/usr/local/include
--with-libxml-libs-prefix=/usr/local/lib
现在我想知道,这个人怎么知道可以使用什么类型的参数,如 --with-python
?
我的意思是:
这些参数在所有软件包中是否相同,或者它们因软件而异?
我什至也尝试阅读文档,但没有人提及这些参数。
最佳答案
./configure --help
这将显示该特定 configure
脚本的所有选项。
关于linux - Linux 中 "./configure"的各种选项/参数是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6227875/