如何构建这个项目?
我长期以来一直是 Visual Studio 开发人员,只是想了解 linux/unix 世界中的情况。我在 source forge 中找到了一个开源项目(Gcomandos)并尝试构建它。当我下载源代码时,我得到这些文件:
16/02/2007 05:16 PM 25,987 aclocal.m4
16/02/2007 05:17 PM 127,445 configure
16/02/2007 05:16 PM 1,925 configure.ac
17/03/2010 03:48 PM <DIR> gComandos
16/02/2007 05:16 PM 332 gcomandos.pc.in
25/11/2006 10:03 PM 9,233 install-sh
16/02/2007 05:16 PM 353 Makefile.am
16/02/2007 05:17 PM 20,662 Makefile.in
16/02/2007 05:16 PM 1,019 Makefile.include
25/11/2006 10:03 PM 11,014 missing
我现在迷路了。我尝试制作 .am 或 .in 文件,但 GnuMake 说没有什么可制作的。我尝试运行 shell 脚本,但出现错误。任何指导表示赞赏。
I've been a visual studio developer for long and just trying to understand how things are in linux/unix worl. I found an open source project (Gcomandos) in source forge and tried to build it. when I download the source, I get these files:
16/02/2007 05:16 PM 25,987 aclocal.m4
16/02/2007 05:17 PM 127,445 configure
16/02/2007 05:16 PM 1,925 configure.ac
17/03/2010 03:48 PM <DIR> gComandos
16/02/2007 05:16 PM 332 gcomandos.pc.in
25/11/2006 10:03 PM 9,233 install-sh
16/02/2007 05:16 PM 353 Makefile.am
16/02/2007 05:17 PM 20,662 Makefile.in
16/02/2007 05:16 PM 1,019 Makefile.include
25/11/2006 10:03 PM 11,014 missing
I am now lost. I tried making the .am or the .in files, but GnuMake says there is nothing to make. I tried running the shell scripts, but I got errors. Any guidance appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
通常它应该带有一个
INSTALL
文件来读取。既然没有,下面是基本例程:请注意,
configure
有许多可以使用的选项;通过--help
来查看它们。Normally it's supposed to come with an
INSTALL
file to read. Since it doesn't, here's the basic routine:Note that
configure
has a number of options it can take; pass--help
to see them.如果您只想构建并安装它:
如果您对此项目进行一些更改并稍后重建它,请执行以下操作:
If you simply want to build and install it:
If you make some changes to this project and rebuild it later do:
在各种正确答案之上提出的一项建议是查看有哪些构建选项可用。我喜欢运行的第一个命令是:
这将列出各种构建选项。有些是标准的(例如
--prefix=
用于更改包的安装位置),另一些是特定于项目的(通常采用--with-FOO
的形式来构建基于 FOO 包的额外功能)。One recommendation to make on top of the various correct answers is to see what build options are available. The first command I like to run is:
This will list various build options. Some are standard (such as
--prefix=
for changing where the package is intalled) and others are project specific (often in the form--with-FOO
to build with extra features based on the FOO package).