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 function
int 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 in
int 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 of
int
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
疯了,现在还有人在用 Redhat 9.0 ??
######哈哈,红哥恼了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。