2011-10-21 73 views
1

使錯誤,我似乎有作爲this guy:安裝獅身人面像-ARCH Linux的

我使用的XAMPP上Arch Linux的每包更新到最新的轉了同樣的問題。

$ make 
Making all in src 
make[1]: Entering directory «.../src» 
/bin/sh svnxrev.sh .. 
make all-am 
make[2]: Entering directory «/home/sphinx/src» 
g++ -DHAVE_CONFIG_H -I. -I../config -DSYSCONFDIR="\"/home/sphinx/sphinx_bin/etc\"" 
-DDATADIR="\"/home/sphinx/sphinx_bin/var/data\"" -I/usr/local/include -I/mysql/include 
-I/mysq/include -L/mysql/lib -Wl,--rpath -Wl,/mysql/lib -fno-exceptions -g -Wall -g 
-D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinx.o -MD -MP -MF .deps/sphinx.Tpo -c -o 
sphinx.o sphinx.cpp 
sphinx.cpp: In constructor �?WordformContainer_t::WordformContainer_t()’: 
sphinx.cpp:15614:27: warning: �?WordformContainer_t::m_pMultiWordforms’ will be 
initialized after 
sphinx.cpp:15611:15: warning: �?uint64_t WordformContainer_t::m_uTokenizerFNV’ 
sphinx.cpp:15904:1: warning: when initialized here 
sphinx.cpp: In function �?int xmlUnknownEncoding(void*, const XML_Char*, 
XML_Encoding*)’: 
sphinx.cpp:21575:10: error: �?XML_STATUS_ERROR’ was not declared in this scope 
sphinx.cpp:21599:9: error: �?XML_STATUS_OK’ was not declared in this scope 
sphinx.cpp: In member function �?bool CSphSource_XMLPipe2::ParseNextChunk(int, 
CSphString&)’: 
sphinx.cpp:22112:76: error: �?XML_STATUS_OK’ was not declared in this scope 
sphinx.cpp: In function �?int xmlUnknownEncoding(void*, const XML_Char*, 
XML_Encoding*)’: 
sphinx.cpp:21600:1: warning: control reaches end of non-void function 
make[2]: *** [sphinx.o] Error 1 
make[2]: leaving directory «/home/sphinx/src» 
make[1]: *** [all] Error 2 
make[1]: leaving directory «/home/sphinx/src» 
make: *** [all-recursive] Error 1 

回答

0

該問題是由安裝了2個expat實例引起的。

我解決了這個錯誤只是爲了進入更多的道路。最好的解決方案是溝渠xampp並手動安裝mysql/php/perl/etc。

2

評論AUR package可能會有所幫助。在編譯之前,需要修改兩個源文件。

[arch ~]# tar zxf sphinx-2.0.4-release.tar.gz 
[arch ~]# cd sphinx-2.0.4-release 
[arch sphinx-2.0.4-release]# sed -i 's/T val = ExprEval/T val = this->ExprEval/g' "src/sphinxexpr.cpp" 
[arch sphinx-2.0.4-release]# sed -i '15083,15083 s/x00/x21/' "src/searchd.cpp" 
[arch sphinx-2.0.4-release]# make 
[arch sphinx-2.0.4-release]# make install