由于 makefile 文件而导致下载 gmp 时出现问题

发布于 2025-01-13 08:27:44 字数 624 浏览 4 评论 0原文

我使用的是 Windows 计算机,但使用 cygwin 子系统。 我遵循了一些有关如何下载 gmp 的手册。因此,我下载、解压缩并配置了 gmp-6.2.1 文件,但我在“make”步骤中遇到了问题。 在 gmp-6.2.1 文件中有两个 makefile,当我尝试对它们使用“make”时,我得到:

$ make -f Makefile.in
Makefile.in:15: *** missing separator.  Stop.

Where line 15 in Makefile.in is

@SET_MAKE@

$ make -f Makefile.am
Makefile.am:126: *** missing separator.  Stop.

Where line 126-130 in Makefile.am is

if WANT_CXX
GMPXX_HEADERS_OPTION = gmpxx.h
pkgconfig_DATA += gmpxx.pc
endif

你知道吗我需要更改 makefile 中的任何内容,还是其他内容? 感谢您的帮助。

I am on a Windows computer but working with the cygwin subsystem.
I have followed some manuals on how to download gmp. I have therefor downloaded, unzipped and configured the gmp-6.2.1 file, but i come onto problems in the "make" step.
In the gmp-6.2.1 file there are two makefiles, and when i try to use "make" on them i get:

$ make -f Makefile.in
Makefile.in:15: *** missing separator.  Stop.

Where line 15 in Makefile.in is

@SET_MAKE@

and

$ make -f Makefile.am
Makefile.am:126: *** missing separator.  Stop.

Where line 126-130 in Makefile.am is

if WANT_CXX
GMPXX_HEADERS_OPTION = gmpxx.h
pkgconfig_DATA += gmpxx.pc
endif

Do you know if I need to change anything in the makefiles, or something else?
Thanks for the help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南笙 2025-01-20 08:27:44

Makefile.inMakefile.am 不是 makefile。尝试使用 make -f 来解释它们是错误的。这些是为项目构建 makefile 的贡献者。

您正在查看一个带有 GNU 构建系统的项目。构建此类项目的标准过程是

  1. 运行 ./configure 脚本来生成一个或多个 makefile,或许还有其他文件,然后
  2. 在同一工作目录中运行 make 以生成构建项目,然后
  3. 在该目录中运行 make install 将构建结果安装到系统中。

可以做出一些变化和装饰,但这是基本模式。您不需要在任何地方使用 make-f 选项。

如果您遵循的说明有任何好处,那么他们至少会简要介绍这一点。

Makefile.in and Makefile.am are not makefiles. It is erroneous to use make -f to try to interpret them as such. These are contributors to building a makefile for the project.

You're looking at a project with a GNU build system. The standard procedure for building such a project is to

  1. run the ./configure script to generate one or more makefiles and perhaps other files, then
  2. run make in the same working directory to build the project, then
  3. run make install in that directory to install the built result to the system.

There are variations and embellishments that can be made, but that's the basic pattern. Nowhere should you need to use make's -f option.

If the instructions you're following are any good then they will have covered this at least briefly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文