Coreseek quick installation

Source: Internet
Author: User
Tags locale setting php online
Before installation, we recommend that you check the source code package description readme. For version 4.0/4.1, refer to version 3.2 for installation. The steps are the same. For problems, see the detailed installation instructions. # Download coreseek: coreseek 3.2.14: Click to download, coreseek 4.0.1: Click to download, coreseek 4.1: click to download $ wget links or http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz$ tar xzvf coreseek-3.2.14.tar.gz or coreseek-4.0.1-beta.tar.gz or coreseek-4.1-beta.tar.gz $ CD coreseek-3.2.14 or coreseek-4.0.1-beta # prerequisites: you need to install the operating system basic development library and MySQL dependency library in advance to support Mysql Data sources and XML data sources # Install mmseg $ CD mmseg-3.2.14 $. /Bootstrap # The output warning information can be ignored. If an error occurs, you need to solve the problem $. /configure -- prefix =/usr/local/mmseg3 $ make & make install $ CD .. # Install coreseek $ CD csft-3.2.14 or CD csft-4.0.1 or CD csft-4.1 $ sh buildconf. sh # The output warning information can be ignored. If an error occurs, you need to solve the problem $. /configure -- prefix =/usr/local/coreseek -- without-unixodbc -- With-mmseg
-- With-mmseg-includes =/usr/local/mmseg3/include/mmseg/
-- With-mmseg-libs =/usr/local/mmseg3/lib/-- With-mysql # If a MySQL problem is prompted, you can view the MySQL data source installation instructions $ make & make install $ CD .. # test mmseg word segmentation, coreseek search (you need to set the character set to zh_CN.UTF-8 in advance to ensure the correct display of Chinese) $ CD testpack $ cat var/test. XML # Chinese $/usr/local/mmseg3/bin/mmseg-D/usr/local/mmseg3/etc var/test. XML $/usr/local/coreseek/bin/indexer-c etc/CSFT. conf -- all $/usr/local/coreseek/bin/search-c etc/CSFT. conf network search


 
Coreseek detailed installation:# Installation and testing instructions# If you think the following steps are too troublesome, please immediately enter FireWire technical support: professional technical support, business cooperation contact information#### The following documents are applicable to 32-bit (x86), 64-bit (amd64, x64), and ##Before installation, check the corresponding operating system page in the following list to install the software that needs to be installed in advance so that subsequent installation and testing can proceed normally!# Recommended dependency Environment version: (for source code upgrade, refer to setting the environment to upgrade/install the basic system dependency package)
    • M4> = 1.4.13
    • Autoconf >=2.65
    • Automake >=1.11
    • Libtool> = 2.2.6b
  • Coreseek installation and testing BSD/Linux system environment (including the list of software to be preinstalled and commands ):
  • List of actual test environments and pre-installed software for the freebsd-6.4 (Support for both 32-bit and 64-bit tests)
  • List of actual test environments and pre-installed software for the freebsd-7.3 (Support for both 32-bit and 64-bit tests)
  • List of actual test environments and pre-installed software for the freebsd-8.0 (Support for both 32-bit and 64-bit tests)
  • List of actual test environments and pre-installed software in rhel5.5/5.3 (Support for both 32-bit and 64-bit tests)
  • List of actual test environments and pre-installed software for the CentOS-5.4 (Support for both 32-bit and 64-bit tests)
  • CentOS-5.5/5.6 list of actual test environments and pre-installed software (Support for both 32-bit and 64-bit tests)
  • Real test environment and pre-installed software list of Fedora-12 (32-bit actual test support, 64-bit Support)
  • Fedora-13 List of actual test environments and pre-installed software (Support for both 32-bit and 64-bit tests)
  • List of actual test environments and pre-installed software for the debian-504 (32-bit actual test support, 64-bit Support)
  • List of actual test environments and pre-installed software for the ubuntu-9.10 (32-bit actual test support, 64-bit Support)
  • List of actual test environments and pre-installed software for the ubuntu-10.04 (Support for both 32-bit and 64-bit tests)
  • List of actual test environments and pre-installed software for the openSUSE-10.3 (32-bit actual test support, 64-bit Support)
  • List of actual test environments and pre-installed software for the openSUSE-11.2 (Support for both 32-bit and 64-bit tests)
  • List of actual test environments and pre-installed software for the slackware-13.0 (32-bit actual test support, 64-bit Support)
  • List of actual test environments and pre-installed software for the slackware-13.1 (32-bit actual test support, 64-bit Support)
  • List of actual test environments and pre-installed software for the gentoo-10.1 (32-bit actual test support, 64-bit Support)
  • List of actual test environments and pre-installed software for the archlinux-2010 (Support for both 32-bit and 64-bit tests)

 

## I. Basic installation: (MySQL is not supported yet. Complete step 2.Data Source supportLater) # After completion: provide XML data source support, Chinese search support #### download http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz$ tar xzvf coreseek-3.2.14.tar.gz $ Click readme.txt. # Switch to the root user and ensure that you have full permissions to install the software $ su root # Or $ sudo root bash $ su- $ Coreseek-3.2.14 CD # Chinese test environment check: $ locale # The following is the core item, locale for the zh_CN.UTF-8, You can normally display and enter Chinese; locale setting function is supported by the operating system itself, BSD/Linux can be enabled;
This function is not provided by coreseek !!! # If the Chinese language cannot be displayed normally, the subsequent Chinese language test cannot be performed normally, but does not affect the actual function of coreseek; lang = zh_CN.UTF-8 lc_all = "zh_CN.UTF-8"
# If the display is not a zh_CN.UTF-8, see the following URL for settings: # locale settings # command line display of Chinese # putty display of Chinese # securecrt display of Chinese # ensure normal display; otherwise, check the locale configuration in the current environment, and the current environment or client has been set to support UTF-8 Chinese characters show $ cat testpack/var/test. XML # Install coreseek developed by mmseg, provide Chinese word segmentation for coreseek functions $ CD mmseg-3.2.14 # Ubuntu environment, need to use aclocal_flags = "-I/usr/share/aclocal ". /Bootstrap $ ./Bootstrap $. /Configure -- prefix =/usr/local/mmseg3 $ make & make install # If libtool: Unrecognized option '-- tag = CC' is displayed ', please refer to the libtool solution # After the installation is complete, the dictionary and configuration file used by mmseg will be automatically installed in/usr/local/mmseg3/etc # Chinese Word Segmentation test, if the display is abnormal, please check locale and UTF-8 Chinese character display settings for current environment $/usr/local/mmseg3/bin/mmseg-D/usr/local/mmseg3/etc src/t1.txt Chinese/x minute/X word/X test/X Chinese/X Shanghai/X word splite took: 1 ms. # Install coreseek: $ CD csft-3.2.14 # execute configure to compile the configuration: $ Sh buildconf. Sh $./Configure -- prefix =/usr/local/coreseek -- without-Python -- without-unixodbc -- With-mmseg
-- With-mmseg-includes =/usr/local/mmseg3/include/mmseg/
-- With-mmseg-libs =/usr/local/mmseg3/lib/-- without-mysql ## Coreseek4.x/sphinx1.x. Change -- without-MYSQL to -- With-MySQL. $ Make & make install # If a MySQL problem is prompted, you can view the MySQL data source installation instructions.
## possible problems: # If the message libtool: Unrecognized option '-- tag = CC' is displayed, check the libtool solution. # Some systems may encounter the following problems:  Expected '; 'before' csphtokenizer _ utf8spaceseg',  # Or  Configure: Warning: Unrecognized options: -- With-mmseg, -- With-mmseg-nodes des, -- With-mmseg-libs  # It is because you have not performed the subsequent sh buildconf. sh operation # generate the compilation configuration file corresponding to the current system # use the following command: $ sh buildconf. sh # in Linux,  in case of pthread problems , directly execute the following command in configur: $ LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/Lib $ export LD_LIBRARY_PATH # If  undefined reference to 'libiconv'  can be handled as follows: # Method 1: (used in Linux) # directly execute: export libs = "-liconv" # compile and install make & make install # Method 2: ## configure first, then Vim src/makefile # search for lexpat in it, and add-liconv # after the modification, the row should be: -lexpat-liconv-L/usr/local/lib # Then make & make install # method 3: ## first configure, then Vim config/config. h ## search for use_libiconv, change the value 1 to 0 ### then make & make install again 
# Configuration test, test if you can run $/usr/local/coreseek/bin/indexer-C/usr/local/coreseek/etc/sphinx-min.conf.dist # The following prompts for a normal test: coreseek Fulltext 3.2 [sph00000.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing choice Software Technologies Inc (http://www.coreseek.com) using Config File '/usr/local/coreseek/etc/sphinx-min.conf.dist '... total 0 reads, 0.000 sec, 0.0 KB/call AVG, 0.0 msec/call AVG total 0 wri Tes, 0.000 sec, 0.0 KB/call AVG, 0.0 msec/call AVG ### csft-4.0 version: Error: nothing to do. #### now, the basic coreseek environment can be installed normally, and we can start the subsequent work. ##Note: The basic environment only supports XML data sources. If you need a MySQL or Python data source, follow these steps:!!!


## 2. Data Source support: MySQL data sources are supported # After completion: Mysql Data Source support and XML data source support # The system needs to install the relevant basic dependency Library; otherwise, the corresponding functions cannot be supported # freebsd6/7/8: $ pkg_add-r mysql50-client libxml2 expat # centos5.4/5.5: fedora12/13: rhel5.5 $ Yum install mysql-devel libxml2-devel expat-devel # debian5: ubuntu9/10: $ apt-Get install mysql-client libmysqlclient15-dev libxml2-dev libexpat1-dev # gentoo10: # The installation environment comes with libmysqlclient libxml2 libexpat # opensuse10/11: # YaST install libmysqlclient-devel libxml2 libxml2-devel libexpat-devel # slackwarestrap/13.1: $ slapt-Get -- install MySQL libxml2 expat # archlinux-2010: $ Pacman-s libmysqlclient libxml2 expat ## Recompile and install coreseek to support Mysql Data sources and XML data sources $ CD csft-3.2.14 $ make clean $. /configure -- prefix =/usr/local/coreseek -- without-unixodbc -- With-mmseg-separated des =/usr/local/mmseg3/include/mmseg/--- mmseg-libs =/usr/local/mmseg3/lib/-- With-mysql ##Copy the above configure parameters correctly. Do not omit or modify them at will. $ Make & make install # if an error message is displayed: "error: cannot find MySQL include files ....... to disable MySQL support, use -- without-mysql option. ", you can handle it as follows:
 
# Find the header file MySQL. the directory where H is located, usually/usr/local/MySQL/include. Replace it with the actual # Find the library file libmysqlclient. the directory where A is located, usually/usr/local/MySQL/lib. Replace it with the actual # Add the configure parameter: -- With-mysql-connector des =/usr/local/MySQL/include -- With-mysql-libs =/usr/local/MySQL/lib. After execution, recompile and install


## Iii. Test coreseek full-text search $ CD testpack $/usr/local/coreseek/bin/indexer-c etc/CSFT. conf # The following is a normal prompt: coreseek Fulltext 3.2 [sph00000.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/CSFT. conf '... total 0 reads, 0.000 sec, 0.0 KB/call AVG, 0.0 msec/call AVG total 0 writes, 0.000 sec, 0.0 KB/call AVG, 0.0 msec/call AVG #### csft-4.0 version display: Error: nothing to do. # $/usr/local/coreseek/bin/indexer-c etc/CSFT. conf -- all # The following is the prompt when all data is properly indexed: (csft-4.0 version is similar) coreseek Fulltext 3.2 [sph00000.9.9-release (r2117)] Copyright (c) 2007-2010, beijing choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/CSFT. conf '... indexing index 'xml '... collected 3 docs, 0.0 MB sorted 0.0 mhits, 100.0% done total 3 docs, 7585 bytes total 0.075 sec, 101043 Bytes/sec, 39.96 docs/sec total 2 reads, 0.000 sec, 5.6 kb/call AVG, 0.0 msec/call AVG total 7 writes, 0.000 sec, 3.9 kb/call AVG, 0.0 msec/call AVG $/usr/local/coreseek/bin/indexer-c etc/CSFT. conf XML # The following prompt information when the data is specified for a normal index: (csft-4.0 version similar) coreseek Fulltext 3.2 [sph00000.9.9-release (r2117)] Copyright (c) 2007-2010, beijing choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/CSFT. conf '... indexing index 'xml '... collected 3 docs, 0.0 MB sorted 0.0 mhits, 100.0% done total 3 docs, 7585 bytes total 0.069 sec, 109614 Bytes/sec, 43.35 docs/sec total 2 reads, 0.000 sec, 5.6 kb/call AVG, 0.0 msec/call AVG total 7 writes, 0.000 sec, 3.9 kb/call AVG, 0.0 msec/call AVG $/usr/local/coreseek/bin/search-c etc/CSFT. conf # The following is the prompt message during normal test search: (csft-4.0 version is similar) coreseek Fulltext 3.2 [sph00000.9.9-release (r2117)] Copyright (c) 2007-2010, beijing choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/CSFT. conf '... index 'xml': query'': returned 3 matches of 3 Total in 0.093 sec displaying matches: 1. document = 1, Weight = 1, published = Thu Apr 1 22:20:07 2010, author_id = 1 2. document = 2, Weight = 1, published = Thu Apr 1 23:25:48 2010, author_id = 1 3. document = 3, Weight = 1, published = Thu Apr 1 12:01:00 2010, author_id = 2 words: $/usr/local/coreseek/bin/search-c etc/CSFT. conf-A twittter and opera both provide the search service # The following prompt information for normal testing of search keywords: (csft-4.0 version is similar) coreseek Fulltext 3.2 [sph1_0.9.9-release (r2117)] copyright (c) 2007-2010, Beijing choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/CSFT. conf '... index 'xml': query'twittter and opera both provide the search service ': returned 3 matches of 3 Total in 0.038 sec displaying matches: 1. document = 3, Weight = 24, published = Thu Apr 1 12:01:00 2010, author_id = 2 2. document = 1, Weight = 4, published = Thu Apr 1 22:20:07 2010, author_id = 1 3. document = 2, Weight = 3, published = Thu Apr 1 23:25:48 2010, author_id = 1 words: 1. 'twittter': 1 Documents, 3 hits 2. 'and': 3 Documents, 15 hits 3. 'Opera ': 1 Documents, 25 hits 4. 'du': 2 Documents, 4 hits 5. 'provision': 0 users, 0 hits 6. ': 3 Documents, 18 hits 7. 'search': 2 Documents, 5 hits 8. 'service': 1 events, 1 hits $/usr/local/coreseek/bin/searchd-c etc/CSFT. conf # The following prompts when the search service is enabled properly: (csft-4.0 version is similar) coreseek Fulltext 3.2 [sph00000.9.9-release (r2117)] Copyright (c) 2007-2010, beijing choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/CSFT. conf '... listening on all interfaces, Port = 9312 # To stop the search service, use/usr/local/coreseek/bin/searchd-c etc/CSFT. conf -- stop # to enable the Service and update the index, use/usr/local/coreseek/bin/indexer-c etc/CSFT. conf -- all -- rotate # Then, refer to the relevant files in the API directory under the csft-3.2.14, use PHP, Python, Ruby, Java to test the search service; you can also go
<Ahref = "/products-install/step_by_step/">
Search for the service to create a three-step tutorial. Check the third step to test with PHP. #4. Continue # after completing the preceding steps, coreseek has been installed and tested. You can provide Normal XML data source indexes and corresponding search services. # For more information, see the manual, prepare Mysql Data Information, test the MySQL data source, and call the search service in your application. For Mysql Data Source configuration, see
Testpack/etc/csft_mysql.conf File
    • Chinese Word Segmentation core Configuration
    • Coreseek 3.2/sphinx (0.9.9) Chinese manual
 
# If you have any questions, please go to: http://www.coreseek.cn/forum/ questions, we will answer in the first time # If you need professional support, please go to: http://www.coreseek.cn/contact/ to contact us, discuss support and cooperation matters # Wish you a happy start !!!
 
 
 
Appendix: #5. Python data source support: # FreeBSD operating system:
 
$ CD/usr/ports/lang/python26; make install clean # freebsd7/8. You can also run pkg_add-r python26 to quickly install $ rehash $ Python # the following error occurs: python 2.6.4 (r264: 75706, Feb 17 2010, 10:45:15) [GCC 4.2.1 20070719 [FreeBSD] On freebsd7type "help", "Copyright ", "Credits" or "License" for more information. >>> # press Ctrl + D to exit python2.6
## Linux operating system: 
## install activepython 2.6 ## download activepython 2.6 from ActiveState ## unzip activepython 2.6 to/usr/local/python26 $. /install. sh enter directory in which to install activepython. leave blank andpress 'enter' to use the default [/opt/ActivePython-2.6]. install directory: /usr/local/python26  ##$/usr/local/python26/bin/Python # the following error occurs: activepython 2.6.5.12 (ActiveState Software Inc .) based onpython 2.6.5 (r265: 79063, Mar 20 2010, 14:12:36) [GCC 3.3.4 (pre 3.3.5 20040809)] on linux2type "help", "Copyright ", "Credits" or "License" for more information. >>> # press Ctrl + D to exit python2.6 $ mV/usr/bin/Python/usr/bin/python. old $ ln-S/usr/local/python26/bin/Python/usr/bin/Python $/usr/bin/Python # It should be displayed with/usr/local/ python26/bin/Python consistent prompt, python2.6 environment installation successful $  Export libs ="-LDL-lutil-xlinker-export-dynamic " # Set Python compilation parameters in Linux, if this parameter is not set, compilation of make may fail! #### For the yum system, change the first line of/usr/bin/Yum #! /Usr/bin/python. Old to ensure that Yum can be used properly ##
#### Reinstall coreseek to support Mysql Data Sources, XML data sources, and Python data sources $ CD csft-3.2.14 $. /configure -- prefix =/usr/local/coreseek -- without-unixodbc -- With-mmseg-separated des =/usr/local/mmseg3/include/mmseg/--- mmseg-libs =/usr/local/mmseg3/lib/-- With-Python $ make & make install #### Python data source installation support is complete. # If you have actual requirements for the python data source, you can view the Chinese manual Python data source for details! # Python data source demonstration (test whether the script can read data correctly before testing the index ): demonstration 1 and demonstration 2 (you need to install and configure the python2.6 package to connect to MSSQL in advance)
 


Source Package content description: Directory Description: csft-x.y.z: coreseek Source code Mmseg-i.j.k: mmseg source. Code Testpack: Test Configuration and data packet testpack Test Description: Directory Description: API interface and test script etc: configuration file ETC/pysource: Python data source script var: run data var/data: index file var/log: Search log var/test: test source data CSFT Universal Test :( 3.2.x and 4. X is supported) configuration 1: Test object: XML data source, Chinese Word Segmentation and search corresponding configuration: ETC/CSFT. conf test data: var/test. xmlphp Program : API/test_coreseek.php online description: configure the listener: ETC/csft_cjk.conf test data: var/test. xmlphp program: API/test_coreseek.php online description: role configuration: ETC/csft_mysql.conf test data: var/test/Documents ENTs. sqlphp program: API/test_coreseek.php Test Description: import the test data to the database first, and set the MySQL user password database in the configuration file online description: configure the data script corresponding to "ETC/csft_demo_python.conf: ETC/pysource/csft_demo/_ init __. pyphp program: API/test_coreseek.php Test Description: Install Python 2.6 (x86) online description: configure the following data script for the environment: ETC/csft_demo_python_pymssql.conf: ETC/pysource/csft_demo_pymssql/_ init __. pyphp program: API/test_coreseek.php Test Description: Please first install Python 2.6 (x86), pymssql (py2.6) online description: http://www.coreseek.cn/products-install/python/coreseek-4.y.z new test: configuration 6: Test object: RT real-time index, chinese Word Segmentation and search corresponding configuration: ETC/csft_rtindex.conf PHP program: API/test_coreseek_rtindex.php online description: role corresponding configuration: ETC/csft_rtindex_cjk.conf PHP program: API/test_coreseek_rtindex.php
 

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.