Coreseek®  
 | 首页 | 注册 | 回复 | 搜索 | 统计资料 |                 网站首页产品服务开放源码安装使用常见问题中文手册社区交流联系我们 
中文分词 论坛首页 / 中文分词 /

帮帮忙,ubuntu下编译mmseg-3.2.12出错

 
kqy929
会员
#1 | 发表时间: 2010 06 03 14:54
回复 
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -fPIC -I.. -I.. -I../src/css -I../src/utils -D_REENTRANT -D_LARGEFILE64_SOURCE    -g -O2 -MT ThesaurusDict.lo -MD -MP -MF .deps/ThesaurusDict.Tpo -c -o ThesaurusDict.lo `test -f 'css/ThesaurusDict.cpp' || echo './'`css/ThesaurusDict.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -fPIC -I.. -I.. -I../src/css -I../src/utils -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -MT ThesaurusDict.lo -MD -MP -MF .deps/ThesaurusDict.Tpo -c css/ThesaurusDict.cpp  -fPIC -DPIC -o .libs/ThesaurusDict.o
In file included from ../src/utils/darts.h:13,
                 from css/ThesaurusDict.h:14,
                 from css/ThesaurusDict.cpp:6:
/usr/include/c++/4.4/cstring:76: error: ‘::memchr’ has not been declared
/usr/include/c++/4.4/cstring:77: error: ‘::memcmp’ has not been declared
/usr/include/c++/4.4/cstring:78: error: ‘::memcpy’ has not been declared
/usr/include/c++/4.4/cstring:79: error: ‘::memmove’ has not been declared
/usr/include/c++/4.4/cstring:80: error: ‘::memset’ has not been declared
/usr/include/c++/4.4/cstring:81: error: ‘::strcat’ has not been declared
/usr/include/c++/4.4/cstring:82: error: ‘::strcmp’ has not been declared
/usr/include/c++/4.4/cstring:83: error: ‘::strcoll’ has not been declared
/usr/include/c++/4.4/cstring:84: error: ‘::strcpy’ has not been declared
/usr/include/c++/4.4/cstring:85: error: ‘::strcspn’ has not been declared
/usr/include/c++/4.4/cstring:86: error: ‘::strerror’ has not been declared
/usr/include/c++/4.4/cstring:87: error: ‘::strlen’ has not been declared
/usr/include/c++/4.4/cstring:88: error: ‘::strncat’ has not been declared
/usr/include/c++/4.4/cstring:89: error: ‘::strncmp’ has not been declared
/usr/include/c++/4.4/cstring:90: error: ‘::strncpy’ has not been declared
/usr/include/c++/4.4/cstring:91: error: ‘::strspn’ has not been declared
/usr/include/c++/4.4/cstring:92: error: ‘::strtok’ has not been declared
/usr/include/c++/4.4/cstring:93: error: ‘::strxfrm’ has not been declared
/usr/include/c++/4.4/cstring:94: error: ‘::strchr’ has not been declared
/usr/include/c++/4.4/cstring:95: error: ‘::strpbrk’ has not been declared
/usr/include/c++/4.4/cstring:96: error: ‘::strrchr’ has not been declared
/usr/include/c++/4.4/cstring:97: error: ‘::strstr’ has not been declared
In file included from css/ThesaurusDict.h:14,
                 from css/ThesaurusDict.cpp:6:
../src/utils/darts.h: In member function ‘size_t css::Darts::Length<char>::operator()(const char*) const’:
../src/utils/darts.h:44: error: ‘strlen’ is not a member of ‘css::std’
../src/utils/darts.h: At global scope:
../src/utils/darts.h:92: error: ‘css::std::vector’ has not been declared
../src/utils/darts.h:92: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/utils/darts.h:131: error: expected unqualified-id before ‘<’ token
../src/utils/darts.h:131: error: expected ‘)’ before ‘<’ token
../src/utils/darts.h:131: error: expected ‘;’ before ‘<’ token
css/ThesaurusDict.cpp:185: error: expected ‘;’ at end of input
css/ThesaurusDict.cpp:185: error: expected ‘}’ at end of input
In file included from css/ThesaurusDict.h:14,
                 from css/ThesaurusDict.cpp:6:
../src/utils/darts.h: In member function ‘size_t css::Darts::DoubleArrayImpl<node_type_, node_u_type_, array_type_, array_u_type_, length_func_>::fetch(const css::Darts::DoubleArrayImpl<node_type_, node_u_type_, array_type_, array_u_type_, length_func_>::node_t&, int)’:
../src/utils/darts.h:112: error: ‘siblings’ was not declared in this scope
../src/utils/darts.h:125: error: ‘siblings’ was not declared in this scope
../src/utils/darts.h:128: error: ‘siblings’ was not declared in this scope
../src/utils/darts.h: At global scope:
../src/utils/darts.h:129: error: expected unqualified-id at end of input
../src/utils/darts.h:129: error: expected ‘}’ at end of input
../src/utils/darts.h:129: error: expected ‘}’ at end of input
make[2]: *** [ThesaurusDict.lo] 错误 1
make[2]:正在离开目录 `/home/kqy/code/coreseek/mmseg-3.2.12/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/kqy/code/coreseek/mmseg-3.2.12'
make: *** [all] 错误 2


这个问题困扰我好久了,麻烦大家帮忙看看,谢谢了。
HonestQiao
会员
#2 | 发表时间: 2010 06 03 15:51
回复 
1. 请严格按照我们下载页面的安装步骤操作,并给出每一步的返回信息
kqy929
会员
#3 | 发表时间: 2010 06 03 16:48
回复 
$sudo aptitude -y install yum glibc-common build-essential libtool autoconf automake mysql-client libexpat-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
正在读取扩展状态文件      
正在初始化软件包状态... 完成
无法找到任何名称或者描述中匹配“glibc-common”的软件包
无法找到任何名称或者描述中匹配“glibc-common”的软件包
将不会安装,升级或者删除任何软件包。
0 个软件包被升级,新安装 0 个, 0 个将被删除, 同时 282 个将不升级。
需要获取 0B 的存档。 解包后将要使用 0B。
正在编辑扩展状态信息... 完成
正在读取软件包列表... 完成    
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
正在读取扩展状态文件      
正在初始化软件包状态... 完成

$libtoolize --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: linking file `config/ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

其它的无返回值。
HonestQiao
会员
#4 | 发表时间: 2010 06 03 18:24
回复 
你自己找一下子ubt下面glibc-common 对应的系统基础依赖包是什么,然后安装上
chengfei112233
会员
#5 | 发表时间: 2010 06 04 14:51
回复 
我在ubuntu下安装也是遇到这种问题.  glibc-common 一直安装不上. 一直停在这了.
HonestQiao
会员
#6 | 发表时间: 2010 06 05 00:03
回复 
你可以用系统的工具查找对应的glibc-common具体版本,再安装
DreamDreams
会员
#7 | 发表时间: 2010 06 05 22:46
回复 
缺什么改什么就行了
我记得我就是在ss/ThesaurusDict.cpp里面加了一行
#include <strings.h>
忘了是string.h还是strings.h了
dmastery
会员
#8 | 发表时间: 2010 06 07 21:04
回复 
我的系统Fedora 12, 出现的情况跟一楼一样,按照 DreamDreams 的方法只能解决一部分问题
还有以下一些错误


make  all-recursive
make[1]: Entering directory `/home/chen/work/coreseek/mmseg-3.2.12'
Making all in src
make[2]: Entering directory `/home/chen/work/coreseek/mmseg-3.2.12/src'
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -fPIC -I.. -I.. -I../src/css -I../src/utils -D_REENTRANT -D_LARGEFILE64_SOURCE    -g -O2 -MT ThesaurusDict.lo -MD -MP -MF .deps/ThesaurusDict.Tpo -c -o ThesaurusDict.lo `test -f 'css/ThesaurusDict.cpp' || echo './'`css/ThesaurusDict.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -fPIC -I.. -I.. -I../src/css -I../src/utils -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -MT ThesaurusDict.lo -MD -MP -MF .deps/ThesaurusDict.Tpo -c css/ThesaurusDict.cpp  -fPIC -DPIC -o .libs/ThesaurusDict.o
In file included from css/ThesaurusDict.h:15,
                 from css/ThesaurusDict.cpp:8:
../src/utils/darts.h:92: error: ‘css::std::vector’ has not been declared
../src/utils/darts.h:92: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/utils/darts.h:131: error: expected unqualified-id before ‘<’ token
../src/utils/darts.h:131: error: expected ‘)’ before ‘<’ token
../src/utils/darts.h:131: error: expected ‘;’ before ‘<’ token
css/ThesaurusDict.cpp:186: error: expected ‘;’ at end of input
css/ThesaurusDict.cpp:186: error: expected ‘}’ at end of input
In file included from css/ThesaurusDict.h:15,
                 from css/ThesaurusDict.cpp:8:
../src/utils/darts.h: In member function ‘size_t css::Darts::DoubleArrayImpl<node_type_, node_u_type_, array_type_, array_u_type_, length_func_>::fetch(const css::Darts::DoubleArrayImpl<node_type_, node_u_type_, array_type_, array_u_type_, length_func_>::node_t&, int)’:
../src/utils/darts.h:112: error: ‘siblings’ was not declared in this scope
../src/utils/darts.h:125: error: ‘siblings’ was not declared in this scope
../src/utils/darts.h:128: error: ‘siblings’ was not declared in this scope
../src/utils/darts.h: At global scope:
../src/utils/darts.h:129: error: expected unqualified-id at end of input
../src/utils/darts.h:129: error: expected ‘}’ at end of input
../src/utils/darts.h:129: error: expected ‘}’ at end of input
make[2]: *** [ThesaurusDict.lo] Error 1
make[2]: Leaving directory `/home/chen/work/coreseek/mmseg-3.2.12/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chen/work/coreseek/mmseg-3.2.12'
make: *** [all] Error 2
lizistorm
会员
#9 | 发表时间: 2010 06 11 19:31
回复 
fedora 12 同样出现楼上的问题
HonestQiao
会员
#10 | 发表时间: 2010 06 12 09:54
回复 
正在下载ubuntu和fedora最新版本,下载完后测试。
tianfan
会员
#11 | 发表时间: 2010 06 12 17:21 | 修改: tianfan
回复 
速度点老大,我也是这个问题,错误看起来和上面的一样,ubuntu 10.04,这个分词编译不了,也是上面的问题,我是64位的系统。编译coreseek的时候禁用mmseg编译安装通过了,改为一元分词已经能用,
分词的编译是怎么搞的
tntsuffer
会员
#12 | 发表时间: 2010 06 20 21:33
回复 
我也是同样的问题
UBUNTU 9.10
gcc 4.4.1
mmseg-3.1能够通过  3.2通过不了
csft3.2不能MAKE 错误是
sphinx.cpp: In member function ‘virtual const BYTE* CSphTokenizer_UTF8MMSeg::GetThesaurus(BYTE*, int)’:
sphinx.cpp:4716: error: ‘class css::Segmenter’ has no member named ‘thesaurus’
sphinx.cpp: In member function ‘int SelectParser_t::GetToken(SelectBounds_t*)’:
..
论坛上的其他的SOLUTION不能解决问题

coreseek的商业版本还是这样不容易编译吗?
tntsuffer
会员
#13 | 发表时间: 2010 06 21 09:54
回复 
后来我降格为CSFT3.1 MMSEG3.1能够编译通过
HonestQiao
会员
#14 | 发表时间: 2010 06 27 12:36
回复 
vi src/css/ThesaurusDict.h

#include <cstring> //add this include file here.
#include <string>
 
回复
Bold Style  Italic Style  Image 链接  URL 链接 
发帖注意:
  • 网址中请去掉http://开头,例如:您需要输入www.coreseek.cn,而不是http://www.coreseek.cn
  • 咨询问题,请贴出详细的操作系统版本、Coreseek版本(Linux环境请给出编译参数)
  • 请仔细查看中文手册和本站安装指南,确认操作正确
  • 请仔细查看常见问题解答,也许你的问题已经有解决方法

» 帐号  » 密码 
发帖前请登陆, 或者 注册 .