Hi guys, Hope someone can shed some light as to what i need to do to get Sphinx up and running (for better searching on my wiki). What i can't comprehend is why it cannot find mysql.h when I have MySQL 5.0.27 installed.
Other System specs Centos 4.5 PHP 5 Apache 2 Mediawiki 1.11 Here goes: [EMAIL PROTECTED] sphinx-0.9.8-svn-r871]# ./configure checking build environment -------------------------- checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no configuring Sphinx ------------------ checking whether to compile with MySQL support... (cached) yes checking whether to compile with PostgreSQL support... (cached) no checking MySQL libraries... (cached) /usr/lib/mysql checking for mysql_config... /usr/bin/mysql_config checking MySQL C flags... -I/usr/include/mysql checking whether to use 64-bit document/word IDs... no checking whether to compile with libstemmer support... no checking for compiler programs ------------------------------ checking whether to compile debug version... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ranlib... ranlib checking for header files ------------------------- checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h.. . yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for types ------------------ checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for off_t... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for library functions ------------------------------ checking for pid_t... yes checking for unistd.h... (cached) yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking return type of signal handlers... void checking whether lstat dereferences a symlink specified with a trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for library containing setsockopt... none required checking for library containing gethostbyname... none required checking for dup2... yes checking for gethostbyname... yes checking for gettimeofday... yes checking for memmove... yes checking for memset... yes checking for select... yes checking for socket... yes checking for strcasecmp... yes checking for strchr... yes checking for strerror... yes checking for strncasecmp... yes checking for strstr... yes checking for strtol... yes checking for LOCK_EX in sys/file.h... yes checking for F_SETLKW in fcntl.h... yes 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 config/config.h config.status: config/config.h is unchanged config.status: executing depfiles commands configuration done ------------------ You can now run 'make' to build Sphinx binaries, and then run 'make install' to install them. [EMAIL PROTECTED] sphinx-0.9.8-svn-r871]# [EMAIL PROTECTED] sphinx-0.9.8-svn-r871 ]# make Making all in src make[1]: Entering directory `/home/rumz/sphinx-0.9.8-svn-r871/src' if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi; make all-am make[2]: Entering directory `/home/rumz/sphinx- 0.9.8-svn-r871/src' if g++ -DHAVE_CONFIG_H -I. -I. -I../config -DSYSCONFDIR="\"/usr/local/etc\"" -I/usr/include/mysql -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinx.o -MD -MP -MF ".deps/sphinx.Tpo" -c -o sphinx.o sphinx.cpp; \ then mv -f ".deps/sphinx.Tpo" ".deps/sphinx.Po"; else rm -f ".deps/sphinx.Tpo"; exit 1; fi In file included from sphinx.cpp:14: sphinx.h:51:19: mysql.h: No such file or directory In file included from sphinx.cpp:14: sphinx.h:873: error: ISO C++ forbids declaration of `MYSQL_RES' with no type sphinx.h:873: error: expected `;' before '*' token sphinx.h:874: error: ISO C++ forbids declaration of `MYSQL_FIELD' with no type sphinx.h:874: error: expected `;' before '*' token sphinx.h:875: error: `MYSQL_ROW' does not name a type sphinx.h:876: error: `MYSQL' does not name a type sphinx.cpp: In constructor `CSphSource_MySQL::CSphSource_MySQL(const char*)': sphinx.cpp:11297: error: class `CSphSource_MySQL' does not have any field named `m_pMysqlResult' sphinx.cpp:11298: error: class `CSphSource_MySQL' does not have any field named `m_pMysqlFields' sphinx.cpp :11299: error: class `CSphSource_MySQL' does not have any field named `m_tMysqlRow' sphinx.cpp: In member function `virtual void CSphSource_MySQL::SqlDismissResult()': sphinx.cpp:11306: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11306: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11309: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11309: error: `mysql_free_result' was not declared in this scope sphinx.cpp:11311: error: `m_pMysqlFields' was not declared in this scope sphinx.cpp:11309: warning: unused variable 'mysql_free_result' sphinx.cpp:11311: warning: unused variable 'm_pMysqlFields' sphinx.cpp: In member function `virtual bool CSphSource_MySQL::SqlQuery(const char*)': sphinx.cpp:11317: error: `m_tMysqlDriver' was not declared in this scope sphinx.cpp:11317: error: `mysql_query' was not declared in this scope sphinx.cpp:11317: warning: unused variable 'm_tMysqlDriver' sphinx.cpp:11317: warning: unused variable 'mysql_query' sphinx.cpp:11320: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11320: error: `m_tMysqlDriver' was not declared in this scope sphinx.cpp:11320: error: `mysql_use_result' was not declared in this scope sphinx.cpp:11321: error: `m_pMysqlFields' was not declared in this scope sphinx.cpp:11320: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11320: warning: unused variable 'm_tMysqlDriver' sphinx.cpp:11320: warning: unused variable 'mysql_use_result' sphinx.cpp :11321: warning: unused variable 'm_pMysqlFields' sphinx.cpp: In member function `virtual bool CSphSource_MySQL::SqlIsError()': sphinx.cpp:11328: error: `m_tMysqlDriver' was not declared in this scope sphinx.cpp:11328: error: `mysql_errno' was not declared in this scope sphinx.cpp:11328: warning: unused variable 'm_tMysqlDriver' sphinx.cpp:11328: warning: unused variable 'mysql_errno' sphinx.cpp : In member function `virtual const char* CSphSource_MySQL::SqlError()': sphinx.cpp:11334: error: `m_tMysqlDriver' was not declared in this scope sphinx.cpp:11334: error: `mysql_error' was not declared in this scope sphinx.cpp:11334: warning: unused variable 'm_tMysqlDriver' sphinx.cpp:11334: warning: unused variable 'mysql_error' sphinx.cpp: In member function `virtual bool CSphSource_MySQL::SqlConnect()': sphinx.cpp:11340: error: `m_tMysqlDriver' was not declared in this scope sphinx.cpp:11340: error: `mysql_init' was not declared in this scope sphinx.cpp:11343: error: `mysql_real_connect' was not declared in this scope sphinx.cpp:11340: warning: unused variable 'mysql_init' sphinx.cpp:11343: warning: unused variable 'mysql_real_connect' sphinx.cpp: In member function `virtual void CSphSource_MySQL::SqlDisconnect()': sphinx.cpp:11349: error: `m_tMysqlDriver' was not declared in this scope sphinx.cpp:11349: error: `mysql_close' was not declared in this scope sphinx.cpp:11349: warning: unused variable 'm_tMysqlDriver' sphinx.cpp:11349: warning: unused variable 'mysql_close' sphinx.cpp: In member function `virtual int CSphSource_MySQL::SqlNumFields()': sphinx.cpp:11355: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11355: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11358: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11358: error: `mysql_num_fields' was not declared in this scope sphinx.cpp:11358: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11358: warning: unused variable 'mysql_num_fields' sphinx.cpp: In member function `virtual bool CSphSource_MySQL::SqlFetchRow()': sphinx.cpp:11364: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11364: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11367: error: `m_tMysqlRow' was not declared in this scope sphinx.cpp:11367: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11367: error: `mysql_fetch_row' was not declared in this scope sphinx.cpp:11367: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11367: warning: unused variable 'mysql_fetch_row' sphinx.cpp: In member function `virtual const char* CSphSource_MySQL::SqlColumn(int)': sphinx.cpp:11374: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11374: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11377: error: `m_tMysqlRow' was not declared in this scope sphinx.cpp:11377: warning: unused variable 'm_tMysqlRow' sphinx.cpp : In member function `virtual const char* CSphSource_MySQL::SqlFieldName(int)': sphinx.cpp:11383: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11383: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11386: error: `m_pMysqlFields' was not declared in this scope sphinx.cpp:11387: error: `m_pMysqlResult' was not declared in this scope sphinx.cpp:11387: error: `mysql_fetch_fields' was not declared in this scope sphinx.cpp:11387: warning: unused variable 'm_pMysqlResult' sphinx.cpp:11387: warning: unused variable 'mysql_fetch_fields' sphinx.cpp:11389: error: `m_pMysqlFields' was not declared in this scope sphinx.cpp:11389: warning: unused variable 'm_pMysqlFields' make[2]: *** [sphinx.o] Error 1 make[2]: Leaving directory `/home/rumz/sphinx-0.9.8-svn-r871/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/rumz/sphinx- 0.9.8-svn-r871/src' make: *** [all-recursive] Error 1 [EMAIL PROTECTED] sphinx-0.9.8-svn-r871]#
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

