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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 01:00:52  来源:igfitidea点击:

What are various options / arguments for "./configure" in Linux

linuxconfigure

提问by Mirage

I have seen that while installing new software in Linux, I always have to use first configureit.

我已经看到在 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-pythoncan be used?
I mean:

现在我想知道这个人如何知道--with-python可以使用什么类型的参数 ?
我的意思是:

  1. Are those parameters same across all software packages or they vary software to software?

  2. I even tried to read documentation as well, but no one mentions those parameters.

  1. 这些参数在所有软件包中是相同的还是因软件而异?

  2. 我什至尝试阅读文档,但没有人提到这些参数。

采纳答案by Carlos Campderrós

./configure --help

That will show you all options for that particular configurescript.

这将向您显示该特定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 --prefixis basically universal. Others are peculiar to the particular configure script.

有些在 Autoconf 生成的所有配置脚本中都是相同的(这是大多数,但不是全部);例如--prefix基本上是通用的。其他是特定配置脚本所特有的。

回答by Pancho

I know about configure --helpbut the information provided is "light". The following GNU resources contain useful additional information:

我知道,configure --help但提供的信息是“轻量级”的。以下 GNU 资源包含有用的附加信息:

Installation directory variables

安装目录变量

Release process

发布流程