在debian上找不到sphinxclient.h头文件

时间:2017-01-22 08:53:56

标签: c debian sphinx

我试图在我的项目中使用http://sphinxsearch.com的C客户端库。它使用sphinxclient.h

在ubuntu上编译好

但是当我尝试在debian sid上编译它时,它会抱怨标题\documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,snakes,positioning,shapes.misc} \begin{document} \begin{tikzpicture} \node at (-3,1) [rectangle, aspect=0.5, draw=black!60,fill=black!20, inner sep=3pt, text width=2cm,,align=center](a){text text text}; \node at (-9,-1) [rectangle,draw](b1){text2}; \node at (-8.7,-2) [rectangle,draw](b2){text3}; \node at (-8.7,-3) [rectangle,draw](b3){text4}; \node at (-8.7,-4) [rectangle,draw](b4){text5}; \node at (-8.7,-5) [rectangle,draw](b5){text6}; \draw[->,thick] (a)--(0,0)--(-9,0); \draw[->,thick] (-9,0)--(b1); \draw[->,thick] ([xshift=0cm,yshift=0cm]b1.210)|-([]b2.west); \draw[->,thick] ([xshift=0cm,yshift=0cm]b1.210)|-([]b3.west); \draw[->,thick] ([xshift=0cm,yshift=0cm]b1.210)|-([]b3.west); \draw[->,thick] ([xshift=0cm,yshift=0cm]b1.210)|-([]b4.west); \draw[->,thick] ([xshift=0cm,yshift=0cm]b1.210)|-([]b5.west); %%%%%%%%%%%%%%%%%%%%%%% \node at (5,-1) [rectangle,draw](c1){text2}; \node at (4.7,-2) [rectangle,draw](c2){text3}; \node at (4.7,-3) [rectangle,draw](c3){text4}; \draw[->,thick] (a)--(0,0)--(5,0); \draw[->,thick] (5,0)--(c1); \draw[->,thick] ([xshift=0cm,yshift=0cm]c1.330)|-([]c2.east); \draw[->,thick] ([xshift=0cm,yshift=0cm]c1.330)|-([]c3.east); \end{tikzpicture} \end{document} 丢失了,我找不到提供此标题的任何包。

有没有"清洁"解决这个问题的方法?

1 个答案:

答案 0 :(得分:1)

似乎libsphinxclient不包含在Debian上游,并且没有单独的包。 您可以从Sphinx网站获取deb软件包,libsphinxclient安装在/ usr / share / sphinxsearch / api / libsphinxclient中(您可能需要将标头复制到include文件夹或将此文件夹添加到路径中)。