1
tar xzvf coreseek-3.2.14.tar.gz
2
cd mmseg-3.2.14/
./configure --prefix=/usr/local/mmseg3

checking for vfprintf... yes
checking for waitpid... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: error: cannot find input file: src/Makefile.in
3配置mmseg插件时,将出现Makefile错误
可以通过安装automake和autoconf
然后运行下面的代码
apt-get install yum
yum -y install libtool
aclocal
libtoolize --force
automake --add-missing
autoconf
autoheader
make clean
上述完成之后,重新运行
./configure --prefix=/usr/local/mmseg3
会出现如下界面
Configuration:

Source code location: .
Compiler: gcc
Compiler flags: -g -O2
Host System Type: x86_64-unknown-linux-gnu
Install path: /usr/local/mmseg3

See config.h for further configuration information.
4安装
make && make install
将会出现如下界面
----------------------------------------------------------------------
test -z "/usr/local/mmseg3/bin" || /bin/mkdir -p "/usr/local/mmseg3/bin"
/bin/bash ../libtool --mode=install /usr/bin/install -c mmseg '/usr/local/mmseg3/bin'
libtool: install: /usr/bin/install -c mmseg /usr/local/mmseg3/bin/mmseg
test -z "/usr/local/mmseg3/include/mmseg" || /bin/mkdir -p "/usr/local/mmseg3/include/mmseg"
/usr/bin/install -c -m 644 css/ICorpusReader.h css/SegmenterManager.h css/tolowercase.h css/UnigramRecord.h css/mmthunk.h css/SegmentPkg.h css/UnigramCorpusReader.h css/Segmenter.h css/SynonymsDict.h css/UnigramDict.h utils/csr_mmap.h utils/darts.h utils/scoped_ptr.h utils/Utf8_16.h utils/csr_assert.h utils/csr_pool.h utils/freelist.h utils/Singleton.h utils/csr.h utils/csr_utils.h utils/os.h utils/StringTokenizer.h csr_typedefs.h css/ThesaurusDict.h iniparser/dictionary.h iniparser/iniparser.h utils/bsd_getopt.h utils/bsd_getopt_win.h '/usr/local/mmseg3/include/mmseg'
make[2]: Leaving directory `/home/coreseek-3.2.14/mmseg-3.2.14/src'
make[1]: Leaving directory `/home/coreseek-3.2.14/mmseg-3.2.14/src'
make[1]: Entering directory `/home/coreseek-3.2.14/mmseg-3.2.14'
make[2]: Entering directory `/home/coreseek-3.2.14/mmseg-3.2.14'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/mmseg3/etc" || /bin/mkdir -p "/usr/local/mmseg3/etc"
/usr/bin/install -c data/unigram.txt data/uni.lib data/mmseg.ini '/usr/local/mmseg3/etc'
以上完成mmseg安装
5、安装coreseek3.2.14
ln -s /usr/local/mmseg3/bin/mmseg /bin/mmseg
cd csft-3.2.14/
./configure --prefix=/usr/local/coreseek --without-unixodbc --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql
运行成功,会出现
generating configuration files
------------------------------

configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libstemmer_c/Makefile
config.status: creating sphinx.conf.dist
config.status: creating sphinx-min.conf.dist
config.status: creating config/config.h
config.status: executing depfiles commands

configuration done
6、make && make install
安装结束,会出现以下界面
test -z "/usr/local/coreseek/etc" || /bin/mkdir -p "/usr/local/coreseek/etc"
/usr/bin/install -c -m 644 sphinx.conf.dist sphinx-min.conf.dist example.sql '/usr/local/coreseek/etc'
make install-data-hook
make[3]: Entering directory `/home/coreseek-3.2.14/csft-3.2.14'
mkdir -p /usr/local/coreseek/var/data && mkdir -p /usr/local/coreseek/var/log
make[3]: Leaving directory `/home/coreseek-3.2.14/csft-3.2.14'
make[2]: Leaving directory `/home/coreseek-3.2.14/csft-3.2.14'
make[1]: Leaving directory `/home/coreseek-3.2.14/csft-3.2.14'
7、至此,MMSEG和Coreseek3.2.14就安装完成了
ls /usr/local/coreseek/
bin etc var
8、测试
1、查看自带测试数据
cd testpack
cat var/test/test.xml
coreseek-3.2.14/testpack# /usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc/ var/test/test.xml
这部分指的是使用MMSEG创建中文词条,并保存到Sphinx数据库中
ln -s /alidata/server/mysql/lib/libmysqlclient.so.16 /usr/lib/libmysqlclient.so.16
/usr/local/coreseek/bin/indexer -c etc/csft.conf -all
结果
root@AY1405291839081862d9Z:/home/coreseek-3.2.14/testpack# /usr/local/coreseek/bin/indexer -c etc/csft.conf -all
Coreseek Fulltext 3.2 [ Sphinx 0.9.9-release (r2117)]
Copyright (c) 2007-2011,
Beijing Choice Software Technologies Inc (http://www.coreseek.com)

using config file 'etc/csft.conf'...
WARNING: no such index '-all', skipping.
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

linux下面安装coreseek与mmseg的更多相关文章

  1. windows/Linux 下安装coreseek/sphinx

    2013年12月8日 17:26:26 注意的地方: 1.配置文件的 数据源, 索引, 服务 这3处配置的路径要写成windows识别的路径,最好是绝对路径 2.安装windows服务的时候,可以不带 ...

  2. 在yum安装lamp的环境下安装coreseek以及php的sphinx扩展

    首先说明下,之前的lamp环境用yum快速安装的现在装一个coreseek学习学习: 在安装前建议安装下这四个东西,以免后续安装报错 $ curl -O -L http://mirrors.kerne ...

  3. Linux下搭建coreseek(sphinx+mmseg3)全文检索

    测试平台:Center OS 1.设置环境,升级/安装系统基础依赖包:m4.autoconf.automake.libtool #设置路径和中文环境: $ export PATH=/usr/local ...

  4. 安装coreseek cannot find input file: src/Makefile.in 错误解决方法

    安装coreseek 出现了cannot find input file: src/Makefile.in 解决方法如下 >autoheader >automake --add-missi ...

  5. Linux下安装 Posgresql 并设置基本参数

    在Linux下安装Postgresql有二进制格式安装和源码安装两种安装方式,这里用的是二进制格式安装.各个版本的Linux都内置了Postgresql,所以可直接通过命令行安装便可.本文用的是Cen ...

  6. Linux下安装Tomcat服务器和部署Web应用

    一.上传Tomcat服务器

  7. Linux下安装使用Solr

    Linux下安装使用Solr 1.首先下载Solr.mmseg4j分词包.tomcat并解压,这用google.百度都可以搜索得到下载地址. 2.因为要使用到中文分词,所以要设置编码,进入tomcat ...

  8. Linux下安装tar.gz类型的jdk,并配置环境变量

    近期因要学习一门技术,必须在Linux下运行,故开始学习如何使用Linux. 在安装jdk时出现了困难,环境变量配置不成功,花了一天时间才搞定,特分享出来,供大家参考. Linux下安装jdk,步骤如 ...

  9. Linux下安装和配置JDK与Tomcat(升级版)

    在这个版本 Linux下安装和配置JDK与Tomcat(入门版) 的基础上优化升级 1.下载相关软件 apache-tomcat-6.0.37.tar.gz jdk-6u25-linux-i586-r ...

随机推荐

  1. QT基础:QMainWindow学习小结

    简述 普通的桌面应用程序有个共同的特性,有菜单栏.工具栏.状态栏.中央窗口等部件.菜单栏其实可以看成是一个窗口,菜单栏中的每一个菜单也可以看成一个窗口,每个部件基本都可以认为是一个窗口.那么这些典型的 ...

  2. Spring @Lazy

    @DependsOn用于强制初始化其他Bean.可以修饰Bean类或方法,使用该Annotation时可以指定一个字符串数组作为参数,每个数组元素对应于一个强制初始化的Bean. @DependsOn ...

  3. Go错误处理(二)

    1,.error接口的定义 type error interface{ Error()string } 2.error的使用 func Foo(param int)(n int,err error){ ...

  4. 今天被坑了,而且被坑的好爽! 该死的UTF-8 有 BOM 格式编码

    调一个项目,最后无法登录了. 排查到最后发现是cookie无法保存会话ID, 工作两年的经验这时候没用上. 开始一以为是PHP.ini的配置错了. 考虑过域名,浏览器问题. 脚本BUG. 最后最后一步 ...

  5. scala中Stream理解

    // Stream:Stream is lazy List; // Stream惰性求值指它只确定第一个值,后面的值用到再求值,这样可以防止数据过大全部加载导致内存溢出 // 将Range转化成Str ...

  6. Windows 2012 R2 安装Nessus

    1.nessus官网注册 注册地址:https://www.tenable.com/products/nessus-home Name字段随意,邮箱需要填写自己的,方便接受注册码 2.注册后,登录邮箱 ...

  7. U3D功能脚本备忘

    编译器属性 属性 介绍 用例 AddComponentMenu 在Component菜单中添加新的菜单项 [AddComponentMenu("Duan/Script/TestScript& ...

  8. 在input中既隐藏边框,也隐藏轮廓的设置

    在设置input的时候,我们往往不想显示边框,所以通常会在css里面写"border"none",但是结果往往差强人意,如下图 我们这个时候可以加一个属性来把它的轮廓也隐 ...

  9. mysql错误:got error 28 from storage engine

    今天碰到数据库出错 Got error 28 from storage engine 查了一下,数据库文件所在的盘应该没事,应该是数据库用的临时目录空间不够 引用 磁盘临时空间不够导致.解决办法:清空 ...

  10. spring mvc 篇

    [1]spring mvc 实现多文件上传 http://blog.csdn.net/a1314517love/article/details/24183273 http://bbs.csdn.net ...