Sphinx是一个非常快的搜索引擎,提供了非常好的搜索接口,
Thinking Sphinx(A Ruby connector between Sphinx and ActiveRecord)是一个非常容易使用的链接ActiveRecord到Sphinx服务器的ruby库,用来管理Sphinx配置与搜索的ruby接口.

用Sphinx,无限快!!!

首先安装Sphinx:

[root@li96-10 sphinx-0.9.9]# wget http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
[root@li96-10 sphinx-0.9.9]# tar zxvf sphinx-0.9.9.tar.gz
[root@li96-10 sphinx-0.9.9]# cd sphinx-0.9.9
[root@li96-10 sphinx-0.9.9]# ./configure --prefix=/usr/local/system/sphinx

报错了:

ERROR: cannot find MySQL include files.

Check that you do have MySQL include files installed.
The package name is typically 'mysql-devel'.

If include files are installed on your system, but you are still getting
this message, you should do one of the following:

1) either specify includes location explicitly, using --with-mysql-includes;
2) or specify MySQL installation root location explicitly, using --with-mysql;
3) or make sure that the path to 'mysql_config' program is listed in
   your PATH environment variable.

To disable MySQL support, use --without-mysql option.

其实还是比较明显的,需要安装mysql-devel

[root@li96-10 sphinx-0.9.9]# yum install mysql-devel
[root@li96-10 sphinx-0.9.9]# ./configure --prefix=/usr/local/system/sphinx
[root@li96-10 sphinx-0.9.9]# make && make install
[root@li96-10 sphinx-0.9.9]# gem install thinking-sphinx #然后安装thinking-sphinx

转载于:https://blog.51cto.com/writerok/710819

安装Sphinx 和 Thinking Sphinx相关推荐

  1. coreseek php接口,筹建coreseek(sphinx+mmseg3)详细安装配置+php之sphinx扩展安装+php调用示例...

    搭建coreseek(sphinx+mmseg3)详细安装配置+php之sphinx扩展安装+php调用示例 一个文档包含了安装.增量备份.扩展.api调用示例,省去了查找大量文章的时间. 搭建cor ...

  2. php sphinx mysql_windows7使用Sphinx+PHP+MySQL详细介绍

    安装(Windows) 1.官方下载 Sphinx下载地址: 下载 2.解压并重命名 此处下载版本为3.0.3,将 sphinx 文件夹命名为sphinx 3.文件夹目录介绍 sphinx --api ...

  3. 【Sphinx】MySQL+Sphinx 全文检索的使用和测试

    导读:最近在线上由于某些不可名状的原因需要在数据库中过滤一些词语,所以线上比较多的语句都是 select c1,c2 fron tb1 where c1 like '%name%'类似与这个样子的模糊 ...

  4. sphinx java_把 sphinx 官方提供的 java api 添加到 maven 库

    如果客户端和服务器版本不一致可能会出现如下错误DEPRECATED: Do not call this method or, even better, use SphinxQL instead of ...

  5. php sphinx应用场景,Sphinx+Scws 搭建千万级准实时搜索应用场景详解

    目标: 一.搭建准确的千万级数据库的准实时搜索(见详情) 二.实现词语高亮(客户端JS渲染,服务器端渲染,详见7.3) 三.实现搜索联想(输入框onchange,ajax请求搜索,取10条在层上展示方 ...

  6. php怎么样sphinx,php使用sphinx

    2.使用sphinx php api测试:<?php require ( "sphinxapi.php" ); //此文件在sphinx源代码的api文件夹中可以找到 $cl ...

  7. linux安装sphinx

    从sphnix网站下载sphinx源码包,当前最新版本是: http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz.当然,还需要保证你的系统已经安装了mys ...

  8. Mac下使用Homebrew安装Sphinx和MySQL

    安装 假设你的系统上已经安装好饿 Homebrew,执行以下命令: ➜ ~ brew install mysql 启动MySQL: ➜ ~ mysql.server start 然后关闭MySQL: ...

  9. mysql sphinx 中文搜索_sphinx+mysql+mmseg 实现中文全站搜索 安装配置文档

    一.Sphinx的特性 高速的建立索引(在当代CPU上,峰值性能可达到10 MB/秒); 高性能的搜索(在2 – 4GB 的文本数据上,平均每次检索响应时间小于0.1秒); 可处理海量数据(目前已知可 ...

最新文章

  1. 100+Python编程题给你练~(附答案)
  2. delphi memo 行数 自动换行_大咖分享办公秘籍:Word和Excel换行
  3. 相机数据格式设置不对踩坑
  4. 带参函数_更好的理解Python第五弹函数预处理与指针
  5. 半导体公司IC设计环境概况
  6. Linux opencv安装与编译
  7. #undef 标识符
  8. 百度BCH云服务器SSL证书服务(免费申请流程)- 申请篇
  9. 数据战略规划_在战略规划期间我应该如何协作?
  10. 程序员有成立工会的理由吗?
  11. PHP Yii2 composer环境安装
  12. 离线bootstrap_css下载
  13. 06-移位寄存器74HC595芯片编程
  14. 西门子g120变频器接线图_西门子S7—1500第二十二讲(G120变频器第二篇)
  15. V4L2框架-media device
  16. c语言程序运行一会死机,为什么函数执行完了,还能导致系统死机?
  17. CSR8675项目实战:BlueBrowsing蓝牙播放器
  18. win11添加右键在此处打开命令窗口
  19. 书籍推荐:搜索引擎技术入门书籍
  20. Top 11 Best Practices for PHP Development

热门文章

  1. [图解]红旗Linux6.0下如何安装VMWARE TOOLS
  2. ASP.NET 4中的SEO改进
  3. 如何优雅的使用 phpStorm
  4. Linux: 让切换目录更方便: pushd,popd,dirs,cd -
  5. PHP数组缓存:三种方式JSON、序列化和var_export的比较
  6. Web 开发中 20 个很有用的 CSS 库
  7. Python实例讲解 -- 发送邮件带附件 (亲测)
  8. KVM 通过virsh console连入虚拟机
  9. mysql 字符,索引
  10. mysql 用户与权限