0

我长期以来一直是视觉工作室开发人员,只是想了解 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 脚本,但出现错误。任何指导表示赞赏。

4

3 回答 3

3

通常它应该带有一个INSTALL要读取的文件。既然没有,这里是基本的例程:

./configure
make
sudo make install

请注意,configure它可以采取多种选择;过去--help看看他们。

于 2010-03-17T04:59:43.660 回答
2

如果您只是想构建和安装它:

./configure
make
sudo make install

如果您对此项目进行了一些更改并稍后重建它,请执行以下操作:

aclocal - adds aclocal.m4 to directory. Defines some m4 macros used by the auto tools.
'autoconf '- creates configure from configure.ac
'automake' - Creates Makefile.in from Makefile.am
'./configure' - creates Makefile from Makefile.in 
'make' 
sudo make install
于 2010-03-17T05:09:40.130 回答
1

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:

./configure --help

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).

于 2010-03-17T05:18:53.053 回答