You are not logged in.

#1 2011-10-22 02:14:16

imbob
Member
Registered: 2011-10-22
Posts: 9

[SOLVED] Sphinx install with MYSQL errors

Edit: After about 10 edits to this post, I think I have finally solved this issue.

The problem was that xampp and my arch install had 2 different versions of expat. I corrected this by just upgrading the outdated one in /opt/lampp/


There were 2 versions of expat installed in 2 different locations:

/usr/include/expat.h ...V2.0.1
/opt/lampp/include/expat.h ...V1.95.2

I'm pretty sure this is why I was receiving errors when including mysql with the sphinx installation.



::original message for search indexing::
---------------------------------------------------------------------------------------------

Hi all,

I have installed XAMPP and Arch Linux, fully upgraded as of this writing.
I am able to ./configure with no errors in either of the below 2 cases.

If I do the following, I get a bunch of errors when doing a

make

in that folder.

./configure --with-mysql=/opt/lampp/

This makes with no problem:

./configure --without-mysql

I have read from here that the problem could be that I don't have the latest expat, but I do...according to PACMAN.
Another reason why I think it is because of expat



cd
$ 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

Last edited by imbob (2011-10-22 04:55:10)

Offline

Board footer

Powered by FluxBB