开发者社区> 问答> 正文

Redhat-9.0中安装开源软件CVSSearch编译出错? 400 报错

Redhat-9.0中安装开源软件CVSSearch编译出错? 400 报错 我在redhat中安装开源软件CVSSearch,把需要提前安装的sleepycat(berkelly db)和omsee(xapian)都装好了,zlib也装了,最后安装CVSSearch的时候,configure的时候发现有一项是no的,就是c++不是交叉编译器,然后make的时候,直接报错了,觉得不应该修改人家的源码,但我加了using namespace 和#include<iostream>后出现了更多的错误,不知道怎么办,看readme和install貌似也没有说明解决办法。求教于各位大神!!


下面是没有修改前:configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for perl... (cached) /usr/bin/perl
creating ./config.status
creating Makefile
creating map/Makefile
creating map/aligned_diff/Makefile
creating map/alignment/Makefile
creating map/cvs_parser/Makefile
creating map/diff/Makefile
creating map/map_algorithm/Makefile
creating map/process/Makefile
creating map/range/Makefile
creating map/html_writer/Makefile
creating map/include/Makefile
creating db/Makefile
creating perl/Makefile




下面是make
[root @localhost cvssearch-2.0]# make
Making all in db
make[1]: Entering directory /root/cvssearch-2.0/db' <br /> c++ -DPACKAGE=\"cvssearch\" -DVERSION=\"2.0\"  -I. -I.      -g -O2 -c cvs_comment_db.C <br /> cvs_comment_db.C: In member functionint cvs_comment_db::get(unsigned int,
   std::string&)':
cvs_comment_db.C:75: cerr' undeclared (first use this function) <br /> cvs_comment_db.C:75: (Each undeclared identifier is reported only once for each <br />    function it appears in.) <br /> cvs_comment_db.C:75:endl' undeclared (first use this function)
make[1]: *** [cvs_comment_db.o] Error 1
make[1]: Leaving directory /root/cvssearch-2.0/db' <br /> make: *** [all-recursive] Error 1 <br /> <br /> <br /> 加上了using namespace 和#include<iostream>后再make <br /> [root <a class="referer" target="_blank">@localhost</a> cvssearch-2.0]# make cc=g++ <br /> Making all in db <br /> make[1]: Entering directory/root/cvssearch-2.0/db'
c++ -DPACKAGE="cvssearch" -DVERSION="2.0"  -I. -I.      -g -O2 -c cvs_db.C
cvs_db.C:40: default argument given for parameter 1 of int cvs_db::close(int = <br />    0)' <br /> cvs_db.h:47: after previous specification inint cvs_db::close(int = 0)'
cvs_db.C: In member function int cvs_db::close(int)': <br /> cvs_db.C:45:cerr' undeclared (first use this function)
cvs_db.C:45: (Each undeclared identifier is reported only once for each
   function it appears in.)
cvs_db.C:45: endl' undeclared (first use this function) <br /> cvs_db.C: At global scope: <br /> cvs_db.C:52: default argument given for parameter 2 ofint
   cvs_db::remove(const std::string&, int = 0)'
cvs_db.h:48: after previous specification in int cvs_db::remove(const <br />    std::string&, int = 0)' <br /> make[1]: *** [cvs_db.o] Error 1 <br /> make[1]: Leaving directory/root/cvssearch-2.0/db'
make: *** [all-recursive] Error 1

展开
收起
爱吃鱼的程序员 2020-06-05 13:16:06 505 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    疯了,现在还有人在用 Redhat 9.0 ??
    ######哈哈,红哥恼了

    2020-06-05 13:16:22
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Debian GNU/Linux 安全合规之路 立即下载
Decian GNU/Linux安全合规之路 立即下载
低代码开发师(初级)实战教程 立即下载