Coreseek Installation Log

Source: Internet
Author: User
Tags builtin
Coreseek Installation Log-Linux Release Technology-Debian information. The following is a detailed description. Coreseek has been used for many times in windows, but has not been installed in linux. Today, we have installed coreseek In Debian as follows:

Download mmseg

Wget-O "mmseg-0.7.3.tar.gz" "http://www.coreseek.com/uploads/sources/mmseg-0.7.3.tar.gz"

Download coreseek1.5.2

Wget-O "coreseek_fulltext_2.5.2.tar.gz" "http://www.coreseek.com/uploads/sources/coreseek_fulltext_2.5.2.tar.gz"

Decompress two packages

Tar-xzvf mmseg-0.7.3.tar.gz
Tar-xzvf coreseek_fulltext_2.5.2.tar.gz

Compile mmseg

Cd mmseg-0.7.3
./Configure -- prefix =/usr/local/mmseg
Make
Make install

Compile coreseek

Cd coreseek_fulltext_2.5.source/

Everything is normal here; the trouble is coming soon.

First configure

. /Configure -- prefix =/usr/local/coreseek -- with-python -- with-mysql -- with-mmseg-supported des =/usr/local/mmseg/include/-- with-mmseg- libs =/usr/local/mmseg/lib/
Make

Result prompt Error

Tokenizer_zhcn.cpp: 1: 30: error: SegmenterManager. h: No such file or directory
Tokenizer_zhcn.cpp: 2: 23: error: Segmenter. h: No such file or directory
Tokenizer_zhcn.cpp: 15: error: expected initializer before '<'token
Tokenizer_zhcn.cpp: 43: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 43: error: iso c ++ forbids declaration of 'segmenter 'with no type
Tokenizer_zhcn.cpp: 43: error: expected '; 'before' * 'token
Tokenizer_zhcn.cpp: 55: error: expected '; 'before' iconv _ t'
Tokenizer_zhcn.cpp: 89: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 89: error: iso c ++ forbids declaration of 'lowerimpl' with no type
Tokenizer_zhcn.cpp: 89: error: expected '; 'before' * 'token
Tokenizer_zhcn.cpp: 90: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 90: error: iso c ++ forbids declaration of 'chinesechartaggerimpl' with no type
Tokenizer_zhcn.cpp: 90: error: expected '; 'before' * 'token
Tokenizer_zhcn.cpp: 92: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 92: error: iso c ++ forbids declaration of 'segmenter 'with no type
Tokenizer_zhcn.cpp: 92: error: expected '; 'before' * 'token
Tokenizer_zhcn.cpp: 93: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 93: error: iso c ++ forbids declaration of 'segmentermanager' with no type
Tokenizer_zhcn.cpp: 93: error: expected '; 'before' * 'token
Tokenizer_zhcn.cpp: In constructor 'csphtokenizer _ zh_CN_UTF8_Private: CSphTokenizer_zh_CN_UTF8_Private ()':
Tokenizer_zhcn.cpp: 21: error: class 'csphtokenizer _ zh_CN_UTF8_Private 'does not have any field named'm _ seg'
Tokenizer_zhcn.cpp: 21: error: class 'csphtokenizer _ zh_CN_UTF8_Private 'does not have any field named'm _ mgr'
Tokenizer_zhcn.cpp: 26: error:'m _ lower 'was not declared in this scope
Tokenizer_zhcn.cpp: 27: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 28: error:'m _ tagger 'was not declared in this scope
Tokenizer_zhcn.cpp: 29: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: At global scope:
Tokenizer_zhcn.cpp: 100: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 100: error: expected constructor, destructor, or type conversion before '*' token
Tokenizer_zhcn.cpp: 101: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 101: error: expected constructor, destructor, or type conversion before '*' token
Tokenizer_zhcn.cpp: In member function 'virtual void CSphTokenizer_zh_CN_UTF8: SetBuffer (BYTE *, int )':
Tokenizer_zhcn.cpp: 134: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 134: error: 'seg' was not declared in this scope
Tokenizer_zhcn.cpp: 134: error: 'class CSphTokenizer_zh_CN_UTF8_Private 'has no member named 'getsegmenter'
Tokenizer_zhcn.cpp: 135: error: 'u1' was not declared in this scope
Tokenizer_zhcn.cpp: 135: error: expected primary-expression before ') 'token
Tokenizer_zhcn.cpp: In member function 'virtual BYTE * CSphTokenizer_zh_CN_UTF8: GetToken ()':
Tokenizer_zhcn.cpp: 152: error: 'css 'has not been declared
Tokenizer_zhcn.cpp: 152: error: 'seg' was not declared in this scope
Tokenizer_zhcn.cpp: 152: error: 'class CSphTokenizer_zh_CN_UTF8_Private 'has no member named 'getsegmenter'
Tokenizer_zhcn.cpp: 154: error: 'u2 'was not declared in this scope
Tokenizer_zhcn.cpp: 154: error: expected '; 'before' len'
Tokenizer_zhcn.cpp: 158: error: 'len' was not declared in this scope
Tokenizer_zhcn.cpp: 158: error: 'symlen' was not declared in this scope
Tokenizer_zhcn.cpp: 162: error: 'len' was not declared in this scope
Tokenizer_zhcn.cpp: 167: error: 'symlen' was not declared in this scope
Tokenizer_zhcn.cpp: 180: error: 'class CSphTokenizer_zh_CN_UTF8_Private 'has no member named'm _ lower'
Tokenizer_zhcn.cpp: 180: error: expected primary-expression before 'int'
Tokenizer_zhcn.cpp: 180: error: expected ') 'before' int'
Tokenizer_zhcn.cpp: 199: error: expected '; 'before' tag'
Tokenizer_zhcn.cpp: 200: error: 'tag' was not declared in this scope

After asking the author of coreseek, I found that the mmseg header file contains incorrect information;

Therefore, use the following parameter configure

. /Configure -- prefix =/usr/local/coreseek -- with-python -- with-mysql -- with-mmseg-separated des =/usr/local/mmseg/include/mmseg -- with-mmseg -libs =/usr/local/mmseg/lib/

The error message is as follows:

In file sorted ded from pydatasource. cpp: 13:
Pydatasource. h: 11: 26: error: Python. h: No such file or directory
Pydatasource. h: 65: error: 'pyobject' has not been declared
Pydatasource. h: 67: error: iso c ++ forbids declaration of 'pyobject' with no type
Pydatasource. h: 67: error: expected '; 'before' *' token
Pydatasource. h: 68: error: iso c ++ forbids declaration of 'pyobject' with no type
Pydatasource. h: 68: error: expected '; 'before' *' token
Pydatasource. h: 69: error: iso c ++ forbids declaration of 'pyobject' with no type
Pydatasource. h: 69: error: expected '; 'before' *' token
Pydatasource. h: 70: error: iso c ++ forbids declaration of 'pyobject' with no type
Pydatasource. h: 70: error: expected '; 'before' *' token
Pydatasource. cpp: 17: error: 'pyobject' was not declared in this scope
Pydatasource. cpp: 17: error: 'pmain' was not declared in this scope
Pydatasource. cpp: 17: error: expected primary-expression before '& 'token
Pydatasource. cpp: 17: error: 'datasource _ list' was not declared in this scope
Pydatasource. cpp: 17: error: initializer expression list treated as compound expression
Pydatasource. cpp: In constructor 'csphsource _ Python: CSphSource_Python (const char *)':
Pydatasource. cpp: 23: error: 'main _ module' was not declared in this scope
Pydatasource. cpp: 24: error: 'builtin _ module' was not declared in this scope
Pydatasource. cpp: 25: error: 'Time _ module' was not declared in this scope
Pydatasource. cpp: 26: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: In destructor 'virtual CSphSource_Python ::~ CSphSource_Python ()':
Pydatasource. cpp: 34: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: 35: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: In member function 'bool CSphSource_Python: Setup (const CSphConfigSection &, const char *)':
Pydatasource. cpp: 44: error: 'py _ IsInitialized 'was not declared in this scope
Pydatasource. cpp: 45: error: 'py _ Initialize 'was not declared in this scope
Pydatasource. cpp: 58: error: 'pyerr _ Print 'was not declared in this scope
Pydatasource. cpp: 59: error: 'pyerr _ clear' was not declared in this scope
Pydatasource. cpp: 63: error: 'main _ module' was not declared in this scope
Pydatasource. cpp: 63: error: 'pyimport _ addmodule' was not declared in this scope
Pydatasource. cpp: 64: error: 'builtin _ module' was not declared in this scope
Pydatasource. cpp: 65: error: 'Time _ module' was not declared in this scope
Pydatasource. cpp: 73: error: 'finddatasource 'cannot be used as a function
Pydatasource. cpp: In static member function 'static void CSphSource_Python: CleanUp ()':
Pydatasource. cpp: 100: error: 'py _ IsInitialized 'was not declared in this scope
Pydatasource. cpp: 106: error: 'py _ Finalize 'was not declared in this scope
Pydatasource. cpp: In member function 'virtual bool CSphSource_Python: Connect (CSphString &)':
Pydatasource. cpp: 121: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: 128: error: 'pyobject' was not declared in this scope
Pydatasource. cpp: 128: error: 'plist' was not declared in this scope
Pydatasource. cpp: 128: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: 128: error: 'pyobject _ dir' was not declared in this scope
Pydatasource. cpp: 131: error: 'pyerr _ Print 'was not declared in this scope
Pydatasource. cpp: 134: error: 'pylist _ check' was not declared in this scope
Pydatasource. cpp: 136: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 141: error: 'pylist _ size' was not declared in this scope
Pydatasource. cpp: 144: error: 'item' was not declared in this scope
Pydatasource. cpp: 144: error: 'pylist _ GetItem 'was not declared in this scope
Pydatasource. cpp: 145: error: 'item _ str' was not declared in this scope
Pydatasource. cpp: 145: error: 'pyobject _ str' was not declared in this scope
Pydatasource. cpp: 147: error: 'pystring _ asstring' was not declared in this scope
Pydatasource. cpp: 151: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 153: error: 'pyobject _ GetAttrString 'was not declared in this scope
Pydatasource. cpp: 160: error: 'py _ XDECREF 'was not declared in this scope
Python datasource. cpp: 165: error: 'pyerr _ clear' was not declared in this scope
Pydatasource. cpp: 170: error: 'item' was not declared in this scope
Pydatasource. cpp: 170: error: 'pylist _ GetItem 'was not declared in this scope
Pydatasource. cpp: 171: error: 'item _ str' was not declared in this scope
Pydatasource. cpp: 171: error: 'pyobject _ str' was not declared in this scope
Pydatasource. cpp: 172: error: 'pystring _ asstring' was not declared in this scope
Pydatasource. cpp: 173: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 181: error: 'pyobject _ GetAttrString 'was not declared in this scope
Pydatasource. cpp: 185: error: 'pyint _ type' was not declared in this scope
Python datasource. cpp: 188: error: 'pyerr _ clear' was not declared in this scope
Pydatasource. cpp: 196: error: 'pymethod _ type' was not declared in this scope
Pydatasource. cpp: 200: error: 'pyfloat _ type' was not declared in this scope
Pydatasource. cpp: 207: error: 'pyint _ type' was not declared in this scope
Pydatasource. cpp: 215: error: 'pylist _ type' was not declared in this scope
Pydatasource. cpp: 224: error: 'pybool _ type' was not declared in this scope
Pydatasource. cpp: 231: error: 'pystring _ type' was not declared in this scope
Pydatasource. cpp: 237: error: 'timefunc' was not declared in this scope
Pydatasource. cpp: 237: error: 'Time _ module' was not declared in this scope
Pydatasource. cpp: 255: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 261: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: 263: error: 'pyerr _ Print 'was not declared in this scope
Pydatasource. cpp: 266: error: 'pyobject' was not declared in this scope
Pydatasource. cpp: 266: error: 'parts' was not declared in this scope
Pydatasource. cpp: 267: error: 'result' was not declared in this scope
Pydatasource. cpp: 268: error: 'pfunc 'was not declared in this scope
Pydatasource. cpp: 268: error: 'pyobject _ GetAttrString 'was not declared in this scope
Python datasource. cpp: 271: error: 'pyerr _ clear' was not declared in this scope
Pydatasource. cpp: 275: error: 'pycallable _ check' was not declared in this scope
Pydatasource. cpp: 276: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 279: error: 'py _ BuildValue 'was not declared in this scope
Pydatasource. cpp: 281: error: 'pyeval _ CallObject 'was not declared in this scope
Pydatasource. cpp: 282: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: At global scope:
Pydatasource. cpp: 294: error: 'bool CSphSource_Python: checkresult' is not a static member of 'class CSphSource_Python'
Pydatasource. cpp: 294: error: 'pyobject' was not declared in this scope
Pydatasource. cpp: 294: error: 'result' was not declared in this scope
Pydatasource. cpp: 295: error: expected ',' or '; 'before' {'token
Pydatasource. cpp: In member function 'virtual void CSphSource_Python: PostIndex ()':
Pydatasource. cpp: 322: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: 324: error: 'pyerr _ Print 'was not declared in this scope
Pydatasource. cpp: 327: error: 'pyobject' was not declared in this scope
Pydatasource. cpp: 327: error: 'parts' was not declared in this scope
Pydatasource. cpp: 328: error: 'result' was not declared in this scope
Pydatasource. cpp: 329: error: 'pfunc 'was not declared in this scope
Pydatasource. cpp: 329: error: 'pyobject _ GetAttrString 'was not declared in this scope
Python datasource. cpp: 331: error: 'pyerr _ clear' was not declared in this scope
Pydatasource. cpp: 333: error: 'pycallable _ check' was not declared in this scope
Pydatasource. cpp: 334: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 337: error: 'py _ BuildValue 'was not declared in this scope
Pydatasource. cpp: 339: error: 'pyeval _ CallObject 'was not declared in this scope
Pydatasource. cpp: 340: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: In member function 'virtual bool CSphSource_Python: IterateHitsStart (CSphString &)':
Pydatasource. cpp: 353: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: 355: error: 'pyerr _ Print 'was not declared in this scope
Pydatasource. cpp: 358: error: 'pyobject' was not declared in this scope
Pydatasource. cpp: 358: error: 'parts' was not declared in this scope
Pydatasource. cpp: 359: error: 'result' was not declared in this scope
Pydatasource. cpp: 360: error: 'pfunc 'was not declared in this scope
Pydatasource. cpp: 360: error: 'pyobject _ GetAttrString 'was not declared in this scope
Python datasource. cpp: 362: error: 'pyerr _ clear' was not declared in this scope
Pydatasource. cpp: 364: error: 'pycallable _ check' was not declared in this scope
Pydatasource. cpp: 365: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 368: error: 'py _ BuildValue 'was not declared in this scope
Pydatasource. cpp: 370: error: 'pyeval _ CallObject 'was not declared in this scope
Pydatasource. cpp: 371: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: In member function 'virtual BYTE ** CSphSource_Python: NextDocument (CSphString &)':
Pydatasource. cpp: 448: error:'m _ pinstance' was not declared in this scope
Pydatasource. cpp: 450: error: 'pyerr _ Print 'was not declared in this scope
Pydatasource. cpp: 453: error: 'pyobject' was not declared in this scope
Pydatasource. cpp: 453: error: 'parts' was not declared in this scope
Pydatasource. cpp: 454: error: 'result' was not declared in this scope
Pydatasource. cpp: 455: error: 'pfunc 'was not declared in this scope
Pydatasource. cpp: 455: error: 'pyobject _ GetAttrString 'was not declared in this scope
Pydatasource. cpp: 459: error: 'pycallable _ check' was not declared in this scope
Pydatasource. cpp: 460: error: 'py _ XDECREF 'was not declared in this scope
Pydatasource. cpp: 463: error: 'py _ BuildValue 'was not declared in this scope
Pydatasource. cpp: 465: error: 'pyeval _ CallObject 'was not declared in this scope
Pydatasource. cpp: 466: error: 'py _ xdecres

Check that no python-dev package is found; install this package

Apt-get install python-dev

Continue to compile coreseek

. /Configure -- prefix =/usr/local/coreseek -- with-python -- with-mysql -- with-mmseg-separated des =/usr/local/mmseg/include/mmseg -- with-mmseg -libs =/usr/local/mmseg/lib/
Make
Make install

Be careful. If the make file fails and the configure parameter is changed, you can try make clean; clear the previous make file and make again.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.