“./configure”的各种选项/参数是什么?在Linux中
我发现在 Linux 中安装新软件时,我总是必须先配置
它。
但有时我们需要传递各种选项,就像我今天安装 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
等参数的类型代码>可以用吗?
我的意思是:
这些参数在所有软件包中是否相同,或者它们因软件而异?
我什至也尝试阅读文档,但没有人提到这些参数。
I have seen that while installing new software in Linux, I always have to use first configure
it.
But sometimes we need to pass various options like I did today to install 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:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这将向您显示该特定
configure
脚本的所有选项。That will show you all options for that particular
configure
script.有些在 Autoconf 生成的所有配置脚本中都是相同的(这是其中的大多数,但不是全部);例如
--prefix
基本上是通用的。其他的则是特定配置脚本所特有的。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../configure --help
总是有帮助的。但我想说的是,在某些包中,不仅在顶级源目录中有一个configure
脚本,而且在可能的子目录中也有一个configure
脚本。因此,要了解可以传递到顶级源目录中的configure
脚本的所有可能参数,您还应该查看configure
每个可能的子目录中的脚本。例如,在的顶级源目录中binutils-2.34 tarball 有
--with-sysroot
和--with-lib-path
参数以及configure
脚本。如果您在顶级源目录下输入./configure --help
,则两者都没有文档项,因为它们记录在configure 脚本位于子目录
ld/
下。所以你应该输入./ld/configure --help
。./configure --help
is always helpful. But I would say more about that in some packages not only is there aconfigure
script in the top source directory but also the possible subdirectories. So, for knowing all possible parameters which can be passed to theconfigure
script in the top source directory you should also have a look at theconfigure
scripts in each possible subdirectory.For example, in the top source directory of binutils-2.34 tarball there are
--with-sysroot
and--with-lib-path
parameters withconfigure
script. If you type./configure --help
under the top source directory, there are no document items for both of them because they are documented in theconfigure
script under the subdirectoryld/
. So you should type./ld/configure --help
.我了解
configure --help
但提供的信息很“简单”。以下 GNU 资源包含有用的附加信息:安装目录变量
发布流程
I know about
configure --help
but the information provided is "light". The following GNU resources contain useful additional information:Installation directory variables
Release process