Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/148.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
编译C++;软呢帽节目 我在FEDORA上编译一个开源C++项目遇到了一些问题。当我下载并运行./configure时,我最终得到了 . . . checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate ./configure: line 15513: AX_CFLAGS_WARN_ALL: command not found ./configure: line 15514: AX_CXXFLAGS_WARN_ALL: command not found checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison ./configure: line 15784: AX_PROG_GPERF: command not found checking trace option enabled... no checking for getrusage... yes checking time profiling enabled... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking forcing use of select... no checking use pipes to communication between scheduler and dispatcher... no ./configure: line 16280: syntax error near unexpected token `1.39.0' ./configure: line 16280: `AX_BOOST_BASE(1.39.0)'_C++_Linux_Fedora - Fatal编程技术网

编译C++;软呢帽节目 我在FEDORA上编译一个开源C++项目遇到了一些问题。当我下载并运行./configure时,我最终得到了 . . . checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate ./configure: line 15513: AX_CFLAGS_WARN_ALL: command not found ./configure: line 15514: AX_CXXFLAGS_WARN_ALL: command not found checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison ./configure: line 15784: AX_PROG_GPERF: command not found checking trace option enabled... no checking for getrusage... yes checking time profiling enabled... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking forcing use of select... no checking use pipes to communication between scheduler and dispatcher... no ./configure: line 16280: syntax error near unexpected token `1.39.0' ./configure: line 16280: `AX_BOOST_BASE(1.39.0)'

编译C++;软呢帽节目 我在FEDORA上编译一个开源C++项目遇到了一些问题。当我下载并运行./configure时,我最终得到了 . . . checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate ./configure: line 15513: AX_CFLAGS_WARN_ALL: command not found ./configure: line 15514: AX_CXXFLAGS_WARN_ALL: command not found checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison ./configure: line 15784: AX_PROG_GPERF: command not found checking trace option enabled... no checking for getrusage... yes checking time profiling enabled... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking forcing use of select... no checking use pipes to communication between scheduler and dispatcher... no ./configure: line 16280: syntax error near unexpected token `1.39.0' ./configure: line 16280: `AX_BOOST_BASE(1.39.0)',c++,linux,fedora,C++,Linux,Fedora,当我在Windows中编译相同的项目时,我确实需要安装和更新项目引用以提高性能。我可以看出这与boost有关,但不确定为什么会出现语法错误 还需要注意的是,configure和configure.ac中的原始源代码引用了boost 1.3.5,但存在相同的编译错误(显然错误消息中有1.3.5) 我最近安装了boost 1.3.9并更新了源代码。还请注意,当我试图 yum install boost 它报告我安装了1.3.7,这是最新版本。我也在源代码中尝试了1.3.7,但我遇到了同样的问题。

当我在Windows中编译相同的项目时,我确实需要安装和更新项目引用以提高性能。我可以看出这与boost有关,但不确定为什么会出现语法错误

还需要注意的是,configure和configure.ac中的原始源代码引用了boost 1.3.5,但存在相同的编译错误(显然错误消息中有1.3.5)

我最近安装了boost 1.3.9并更新了源代码。还请注意,当我试图

 yum install boost
它报告我安装了1.3.7,这是最新版本。我也在源代码中尝试了1.3.7,但我遇到了同样的问题。我只是不明白为什么会出现语法错误

这是configure和configre.ac中引发错误的代码

#BOOST
AX_BOOST_BASE(1.39.0)
AX_BOOST_THREAD
任何关于下一步去哪里的想法都会很好

短暂性脑缺血发作


我能想到发生这种情况的几个原因。 首先,“Boost”是一个非常流行的C++程序设计框架。
  • 项目有一个bug(编译错误)
  • 您没有正确安装依赖项
  • 该项目与您的发行版不兼容。存储库中的包可能已经过时,因此它是Fedora的最新包,而不是真正的最新Boost包。Fedora的用户更适合说这是不是真的
  • 您的某些依赖项已损坏
  • 你没有按照指示去做

  • 我认为您的“开源项目”需要更高版本的autoconf/aclocal 比安装的版本高

    “AX\u CFLAGS\u WARN\u ALL”、…、“AX\u BOOST\u BASE”都是autoconf宏
    如果您有较新版本的autoconf,将正确展开。

    请尝试将错误放在“代码”标记中,以便我们可以看到正确格式的错误。这与编程无关。可能值得在开放源代码项目的论坛/邮件列表上寻求帮助:我明白这不是一个编程/代码问题。我只是觉得这是一个很好的地方,可以找到以前可能做过这件事的人。我还将在Linux板上发表文章。谢谢,伙计-我已经开始讨论汽车制造问题,但这让我克服了最初的问题。干杯