Yuksel Posted March 8, 2010 Share Posted March 8, 2010 Hello, I want to use sphinx as the default search method for ipb, but have some trouble while installing it. I followed the steps in the resources page (http://community.invisionpower.com/resources/official.html?record=181) After the command ./confiugure, i try to use the command make, but i get the following error message;make[2]: Entering directory `/tmp/sphinx-0.9.9/src' g++ -DHAVE_CONFIG_H -I. -I../config -DSYSCONFDIR="\"/usr/local/etc\"" -I/usr/local/include -I/usr/include/mysql -I/usr/local/include -L/usr/local/lib -mcpu=i486 -fno-strength-reduce -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinx.o -MD -MP -MF .deps/sphinx.Tpo -c -o sphinx.o sphinx.cpp `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. /usr/local/include/iodbcunix.h:128: error: conflicting declaration 'typedef unsigned int DWORD' sphinxstd.h:90: error: 'DWORD' has a previous declaration as 'typedef long unsigned int DWORD' sphinx.cpp:4784: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int' sphinx.cpp:4784: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int' sphinx.cpp: In member function 'virtual void CSphIndex_VLN::DebugDumpHeader(FILE*, const char*)': sphinx.cpp:14563: warning: format '%d' expects type 'int', but argument 3 has type 'DWORD' sphinx.cpp:14592: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' sphinx.cpp:14631: warning: format '%d' expects type 'int', but argument 3 has type 'DWORD' sphinx.cpp: In member function 'virtual void CSphIndex_VLN::DebugDumpDocids(FILE*)': sphinx.cpp:14648: warning: format '%d' expects type 'int', but argument 3 has type 'DWORD' sphinx.cpp:14655: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'long unsigned int' sphinx.cpp: In member function 'virtual void CSphIndex_VLN::DebugDumpHitlist(FILE*, const char*)': sphinx.cpp:14710: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'DWORD' sphinx.cpp: In member function 'virtual bool CSphSource_ODBC::SqlQuery(const char*)': sphinx.cpp:21288: warning: comparison between signed and unsigned integer expressions sphinx.cpp: At global scope: sphinx.cpp:1741: warning: 'g_tmInitTimer' defined but not used make[2]: *** [sphinx.o] Error 1 make[2]: Leaving directory `/tmp/sphinx-0.9.9/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/tmp/sphinx-0.9.9/src' make: *** [all-recursive] Error 1 Anyone know what the problem can be? Link to comment Share on other sites More sharing options...
AngelFire Posted March 8, 2010 Share Posted March 8, 2010 looks like a mysql lib problem, check you have all the libs needed for sphinx, like mysql-dev Im no expert but looks like it to me, and i know i needed dev on mine ;) Hope this helps Link to comment Share on other sites More sharing options...
Yuksel Posted March 8, 2010 Author Share Posted March 8, 2010 I have mysql, mysqli and odbc installed correctly. Link to comment Share on other sites More sharing options...
AngelFire Posted March 8, 2010 Share Posted March 8, 2010 do you have mysql-devel installed, and googleing parts of that error are coming up as mysql problems, other than that i cant help sorry Link to comment Share on other sites More sharing options...
SecondSight Posted March 10, 2010 Share Posted March 10, 2010 Hello ! :) I'm not conversant with servers. Anyway, here is how it worked for me : first I extracted the files in the /tmp directory (it seems like you did this too ?) and all the rest didn't work. So I extracted the file to another directory and the rest worked. Link to comment Share on other sites More sharing options...
Robulosity2 Posted March 10, 2010 Share Posted March 10, 2010 that would mean you probably don't have permissions to write in /tmp Link to comment Share on other sites More sharing options...
Yuksel Posted March 10, 2010 Author Share Posted March 10, 2010 do you have mysql-devel installed, and googleing parts of that error are coming up as mysql problems, other than that i cant help sorry I couldn't find any proper installation for this. What i read about it is that mysql-devel is default added to the mysql libraries. So installing it is not needed. Hello ! :) I'm not conversant with servers. Anyway, here is how it worked for me : first I extracted the files in the /tmp directory (it seems like you did this too ?) and all the rest didn't work. So I extracted the file to another directory and the rest worked. I will try this, but i doubt that this will work, because i can use the command ./configure without problems. Anyway, both thanks for the responses. Link to comment Share on other sites More sharing options...
AngelFire Posted March 10, 2010 Share Posted March 10, 2010 what o/s are you using? yum install mysql-devel apt-get install mysql-devel they might help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.