【发布时间】:2021-10-04 03:21:09
【问题描述】:
我正在探索从 github repo (https://github.com/openssh/openssh-portable.git) 克隆的 SSH 源代码。我想编译一个文件,但它包含一个在克隆目录中不存在的<config.h> 头文件。我怎样才能解决这个问题 ?提前谢谢你。
【问题讨论】:
-
阅读安装文档。
我正在探索从 github repo (https://github.com/openssh/openssh-portable.git) 克隆的 SSH 源代码。我想编译一个文件,但它包含一个在克隆目录中不存在的<config.h> 头文件。我怎样才能解决这个问题 ?提前谢谢你。
【问题讨论】:
openssh-portable/configure.ac#L21:
AC_CONFIG_HEADERS([config.h])
config.h 由autoconf 实用程序创建(参见here)。你需要运行
autoreconf
./configure
在运行make 命令之前配置您的构建环境。
【讨论】: