Linux 中“./configure”的各种选项/参数是什么
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6227875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What are various options / arguments for "./configure" in Linux
提问by Mirage
I have seen that while installing new software in Linux, I always have to use first configure
it.
我已经看到在 Linux 中安装新软件时,我总是必须先使用configure
它。
But sometimes we need to pass various options like I did today to install lxml
:
但有时我们需要像今天一样传递各种选项来安装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
Now I want to know that how will the person know that what type of paramaters like --with-python
can be used?
I mean:
现在我想知道这个人如何知道--with-python
可以使用什么类型的参数 ?
我的意思是:
Are those parameters same across all software packages or they vary software to software?
I even tried to read documentation as well, but no one mentions those parameters.
这些参数在所有软件包中是相同的还是因软件而异?
我什至尝试阅读文档,但没有人提到这些参数。
采纳答案by Carlos Campderrós
./configure --help
That will show you all options for that particular configure
script.
这将向您显示该特定configure
脚本的所有选项。
回答by Richard Kettlewell
Some are the same across all configure scripts produced by Autoconf (which is most of them, but not all); for instance --prefix
is basically universal. Others are peculiar to the particular configure script.
有些在 Autoconf 生成的所有配置脚本中都是相同的(这是大多数,但不是全部);例如--prefix
基本上是通用的。其他是特定配置脚本所特有的。
回答by Pancho
I know about configure --help
but the information provided is "light". The following GNU resources contain useful additional information:
我知道,configure --help
但提供的信息是“轻量级”的。以下 GNU 资源包含有用的附加信息: