gpt4 book ai didi

在 64 位机器上编译 tcpsplice

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:00:54 24 4
gpt4 key购买 nike

我正在尝试编译一个名为 tcpslice 的小实用程序.这是典型的 GNU C 应用程序。当我运行 ./configure 时,输出如下:

checking build system type... Invalid configuration `x86_64-pc-linux-gnuoldld': machine `x86_64-pc' not recognizedconfigure: error: /bin/sh ./config.sub x86_64-pc-linux-gnuoldld failed

它似乎不支持编译为 64 位 Linux 应用程序。所以我有几个问题:

  1. 是否可以设置一些标志以将应用程序编译为 32 位并能够在我的 64 位操作系统上运行它?
  2. 是否可以更新配置脚本以支持 64 位 Linux?如果是这样,我是否也会对 .c 文件中的代码进行一些重大更改?
  3. 我注意到我网络上的一台 64 位 RHEL6 机器安装并运行了这个实用程序,版本号 (1.2a3) 相同。我能以某种方式下载用于构建它的源代码吗?如有必要,我可以访问 RHN。

最佳答案

Is it possible to set some flags to compile the application as 32-bit AND be able to run it on my 64-bit operating system?

是的。 -m32是选项。

Is it possible to update the configure script to support 64-bit Linux? If so, will I be making some serious code changes in the .c files as well?

您必须更改一些代码才能使纯 32 位应用程序在 64 位上运行。这是一个 link谈到将代码从 32 位移植到 64 位。

很抱歉,我不知道您第 3 个问题的答案。

希望我提供的少量信息能在某种程度上有所帮助。

关于在 64 位机器上编译 tcpsplice,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10899616/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com