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

王沿途 发布于 2012/12/20 18:16
阅读 106
收藏 0
我在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'
c++ -DPACKAGE=\"cvssearch\" -DVERSION=\"2.0\"  -I. -I.      -g -O2 -c cvs_comment_db.C
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)
cvs_comment_db.C:75: (Each undeclared identifier is reported only once for each
   function it appears in.)
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'
make: *** [all-recursive] Error 1


加上了using namespace 和#include<iostream>后再make
[root @localhost cvssearch-2.0]# make cc=g++
Making all in db
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 =
   0)'
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)':
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)
cvs_db.C: At global scope:
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
   std::string&, int = 0)'
make[1]: *** [cvs_db.o] Error 1
make[1]: Leaving directory `/root/cvssearch-2.0/db'
make: *** [all-recursive] Error 1

加载中
0
红薯
红薯
疯了,现在还有人在用 Redhat 9.0 ??
0
随影求是
随影求是
哈哈,红哥恼了
返回顶部
顶部