【问题标题】:Building/Compiling source in ubuntu在 ubuntu 中构建/编译源代码
【发布时间】:2015-01-21 23:52:33
【问题描述】:

我的 Ubuntu 开发机器中有一个开源存储库。

问题是我无法编译源代码。

我试过./configure,但失败了。我可以看到该目录没有可执行文件configure

另一方面,该目录包含一个configure.ac 文件。

同样,该目录还包含一个文件Makefile.am

有人可以帮助我构建源代码并从中生成一个可用于其他代码的库。

【问题讨论】:

标签: ubuntu compilation autotools automake


【解决方案1】:

这些文件与 Autotools 套件一起使用。 Makefile.am 文件使用 automake 编译为 Makefile。

以下是编译代码的步骤:

  1. 配置

    ./configure
    

如果有问题,请尝试:

autoreconf
  1. 构建(编译)源代码:

    make
    
  2. 并且可选地,安装:

    sudo make install
    

(或su -c "make install"

【讨论】:

    猜你喜欢
    • 2016-01-09
    • 1970-01-01
    • 1970-01-01
    • 2023-03-16
    • 1970-01-01
    • 1970-01-01
    • 2012-05-18
    • 1970-01-01
    • 2011-12-18
    相关资源
    最近更新 更多