Установка Sphinx на Centos

D
На сайте с 04.03.2007
Offline
113
3377

Скачал архив с Sphinx, распаковал, запускаю

./configure
выдает следующую ошибку

configuring Sphinx
------------------

checking for CFLAGS needed for pthreads... none
checking for LIBS needed for pthreads... -lpthread
checking for pthreads... found
checking whether to compile with MySQL support... yes
checking for mysql_config... mysql_config
checking for mysql_real_connect... no
checking for mysql_real_connect... no
checking MySQL include files... configure: error: missing include files.

******************************************************************************
ERROR: cannot find MySQL include files.

Check that you do have MySQL include files installed.
The package name is typically 'mysql-devel'.

If include files are installed on your system, but you are still getting
this message, you should do one of the following:

1) either specify includes location explicitly, using --with-mysql-includes;
2) or specify MySQL installation root location explicitly, using --with-mysql;
3) or make sure that the path to 'mysql_config' program is listed in
your PATH environment variable.

To disable MySQL support, use --without-mysql option.
******************************************************************************

А сам mysql

# whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

Подскажите, как Sphinx поставить?

BS
На сайте с 22.06.2009
Offline
73
#1

Поставьте mysql-devel, если всё равно не будет видеть, укажите явно --with-mysql-includes, кажется они будут в /usr/include/mysql после инстала mysql-devel.

Или ставьте из рпм сфинкс.

M
На сайте с 16.09.2009
Offline
278
#2

Вот в дебиане есть пакеты - готовые сборки. Ищем: apt-cache search sphinx

Идея понятна?

А если таки нужно обязательно собрать зверушку для бедной

центоси/федоры/etc (какой дистрибутив?) - дак доставьте пакеты с заголовочными

файлами mysql (называются mysql-devel в CentOS).

Абонементное сопровождение серверов (Debian) Отправить личное сообщение (), написать письмо ().
D
На сайте с 04.03.2007
Offline
113
#3

Поставил mysql-devel.

.configure
прошло.
configuration done
------------------

You can now run 'make' to build Sphinx binaries,
and then run 'make install' to install them.

А вот с make проблема

# make install

Making install in src
make[1]: Entering directory `/usr/local/etc/sphinx/sphinx/src'
if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
make install-am
make[2]: Entering directory `/usr/local/etc/sphinx/sphinx/src'
g++ -DHAVE_CONFIG_H -I. -I../config -DSYSCONFDIR="\"/usr/local/etc\"" -I/usr/lo cal/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BI TS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -Wall -g -D_FILE_OFFSET _BITS=64 -O3 -DNDEBUG -MT sphinx.o -MD -MP -MF .deps/sphinx.Tpo -c -o sphinx.o s phinx.cpp
sphinx.cpp: In member function Б─≤int SelectParser_t::GetToken(SelectBounds_t*)Б ─≥:
sphinx.cpp:4691: warning: ignoring return value of Б─≤double strtod(const char*, char**)Б─≥, declared with attribute warn_unused_result
sphinx.cpp: In member function Б&#9472;&#8804;virtual int CSphIndex_VLN::Build(const CSphVec tor<CSphSource*>&, int, int)Б&#9472;&#8805;:
sphinx.cpp:9076: warning: ignoring return value of Б&#9472;&#8804;int ftruncate(int, __off64 _t)Б&#9472;&#8805;, declared with attribute warn_unused_result
sphinx.cpp:9313: warning: ignoring return value of Б&#9472;&#8804;int ftruncate(int, __off64 _t)Б&#9472;&#8805;, declared with attribute warn_unused_result
sphinx.cpp: In member function Б&#9472;&#8804;virtual void CSphIndex_VLN::DebugDumpDocids(FI LE*)Б&#9472;&#8805;:
sphinx.cpp:14647: warning: format Б&#9472;&#8804;%dБ&#9472;&#8805; expects type Б&#9472;&#8804;intБ&#9472;&#8805;, but argument 3 has type Б&#9472;&#8804;long unsigned intБ&#9472;&#8805;

Или это нормально ?

Himiko
На сайте с 28.08.2008
Offline
560
#4
Или это нормально ?

Ошибок тут не вижу, а warning'и бывают практически при любой сборке.

Профессиональное администрирование серверов (https://systemintegra.ru). Круглосуточно. Отзывы (/ru/forum/834230) Лицензии (http://clck.ru/Qhf5) ISPManager,VDSManager,Billmanager e.t.c. по низким ценам.
D
На сайте с 04.03.2007
Offline
113
#5
Himiko:
Ошибок тут не вижу, а warning'и бывают практически при любой сборке.

Понял.

Я просто написал

make install
а потом вспомнил, что перед ним нужно было выполнить
make
Насколько это критично?
Himiko
На сайте с 28.08.2008
Offline
560
#6
Насколько это критично?

Думаю, что вообще не критично.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий