WordPress.org

Ready to get started?Download WordPress

Forums

124

Sphinx Search Engine (92 posts)

  1. Hemakumars
    Member
    Posted 3 years ago #

    Hello,

    I am a Open source Developer working in the http://opengov.in as i need to install wordpress sphinx search plugin 0.4 version but in sphinxsearch.com steps are given for linux.I am using the ubuntu 10.0.4 version,could you tell me the step by step process to activate the sphinx search plugin for the domain.

    I have tried,but errors are coming like make make install hope you reply with the solution

    Thank's and Regards

    Hemakumar.S

  2. Ivinco
    Member
    Posted 3 years ago #

    Hello Hemakumar

    Just try 'aptitude install sphinxsearch' to install Sphinx in ubuntu 10.0.4 and then follow the installation instructions from here http://wordpress.org/extend/plugins/wordpress-sphinx-plugin/installation/

  3. Hemakumars
    Member
    Posted 3 years ago #

    Hai,

    Thank you to send this link,but i have tried exactly these instructions as well as by installing apt-get install libmysql++-dev and mysql-client-5.1 in the usr/bin root of my system which has ubuntu 10.0.4 operating system.

    I created the sphinx directory in /opt/lampp and gave full permission,once i try to install and configure sphinx it showing make , make install.

    thank's and regards
    Hemakumar.S

  4. Ivinco
    Member
    Posted 3 years ago #

    > it showing make , make install.
    Can you show the exact error you see when you try to install Sphinx?

  5. Hemakumars
    Member
    Posted 3 years ago #

    Thank you once again for reply

    These are the links for sphinx errors

    http://farm2.static.flickr.com/1090/5112871415_95ee630e26.jpg

    http://farm2.static.flickr.com/1420/5112871419_6dbf787ca7.jpg

    With Regards

    Hemakumar.S

  6. Ivinco
    Member
    Posted 3 years ago #

    Could you share a bigger error screenshot? it's too small to see the text.

  7. Hemakumars
    Member
    Posted 3 years ago #

    Actually this is the error is coming
    configuration done
    ------------------

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

    Making all in src
    make[1]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
    make all-am
    make[2]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    source='sphinx.cpp' object='sphinx.o' libtool=no \
    DEPDIR=.deps depmode=none /bin/bash ../config/depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I../config -DSYSCONFDIR="\"/opt/lampp/sphinx/etc\"" -I/usr/local/include -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -c -o sphinx.o sphinx.cpp
    ../config/depcomp: line 512: exec: g++: not found
    make[2]: *** [sphinx.o] Error 127
    make[2]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    make: *** [all-recursive] Error 1

  8. Ivinco
    Member
    Posted 3 years ago #

    It seems you don't have g++ compiler on your system.
    Try installing it: sudo apt-get install g++

  9. Hemakumars
    Member
    Posted 3 years ago #

    After installing g++

    these kind of errors coming

    [moderator note: snipped errors as per the forum guidelines]

  10. Ivinco
    Member
    Posted 3 years ago #

    It seems you have successfully installed Sphinx and you can start using it. Default directory for sphinx is /usr/local/sphinx.

    Now you can try further steps as described here: http://wordpress.org/extend/plugins/wordpress-sphinx-plugin/installation/

    Let me know if you have any troubles.

  11. Hemakumars
    Member
    Posted 3 years ago #

    As per your guidance , it installed successfully the next step which is Run indexing manually where as once i click it shows Sphinx index successfully rebuilt.but the real process before this rebuilt message a fifteen lines of details will be displayed like the process of database and the indepth details of path.it doesn't show anything.

  12. Ivinco
    Member
    Posted 3 years ago #

    Hemakumars,

    Could you please describe your current status in more details?

  13. Hemakumars
    Member
    Posted 3 years ago #

    Next step is Run indexing manually, once i click that it just shows Sphinx indexing Successfully rebuilt. but the real thing is it has to show the indexing details like configuring with the mysql by providing the original database size and how it compresses to small size as well as the processing time taken with the no of keywords searched by user will be in search log those kind of details definitely shown once the indexing done.

  14. Yaroslav Vorozhko
    Member
    Posted 3 years ago #

    Hemakumars,
    Try commands below to manage your index from command line via ssh.

    If you will have a problem then show the output of the command and your sphinx.conf file.

    Start Sphinx: /path/to/sphinx/bin/searchd --config /path/to/sphinx/etc/sphinx.conf

    Stop Sphinx: /path/to/sphinx/bin/searchd --config /path/to/sphinx/etc/sphinx.conf --stop

    Re-index: /path/to/sphinx/bin/indexer --config /path/to/sphinx/etc/sphinx.conf delta_wordpress main_wordpress

    Rotate indexes: /path/to/sphinx/bin/indexer --config /path/to/sphinx/etc/sphinx.conf delta_wordpress main_wordpress --rotate

  15. Hemakumars
    Member
    Posted 3 years ago #

    Hai,

    For the configuring Sphinx it shows the configuration done but the make,make install command shows some errors where as your valuable inputs on secure shell command in administrator is a great help but now in my position is that i have to successfully implement in local host which is nothing but lampp.

    These are the measures i have tried in the ubuntu linux

    fpuser@fpuser-desktop:/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112$ sudo ./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

    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 expat.h usability... no
    checking expat.h presence... no
    checking for expat.h... no
    checking iconv.h usability... yes
    checking iconv.h presence... yes
    checking for iconv.h... 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 library containing XML_Parse... no
    checking for library containing iconv... none required
    checking for library containing logf... -lm
    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 logf... yes
    checking for LOCK_EX in sys/file.h... yes
    checking for F_SETLKW in fcntl.h... yes

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

    checking whether to compile with MySQL support... yes
    checking for mysql_config... mysql_config
    checking MySQL include files... -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX
    checking MySQL libraries... -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient
    checking whether to compile with PostgreSQL support... no
    checking whether to use 64-bit document/word IDs... no
    checking whether to compile with libstemmer support... no
    checking for libexpat... not found
    configure: WARNING: xmlpipe2 will NOT be available
    checking for libiconv... found
    checking for iconv() arg types... char **

    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.

    fpuser@fpuser-desktop:/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112$ make
    Making all in src
    make[1]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
    make all-am
    make[2]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    make[1]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    Making all in test
    make[1]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/test'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/test'
    make[1]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'
    fpuser@fpuser-desktop:/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112$ make install
    Making install in src
    make[1]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
    make install-am
    make[2]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    make[3]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
    /usr/bin/install -c 'indexer' '/usr/local/bin/indexer'
    /usr/bin/install -c 'searchd' '/usr/local/bin/searchd'
    /usr/bin/install -c 'search' '/usr/local/bin/search'
    /usr/bin/install -c 'spelldump' '/usr/local/bin/spelldump'
    make[3]: Nothing to be done for `install-data-am'.
    make[3]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    make[2]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    make[1]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/src'
    Making install in test
    make[1]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/test'
    make[1]: Nothing to be done for `install'.
    make[1]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112/test'
    make[1]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'
    make[2]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'
    test -z "/usr/local/etc" || mkdir -p -- "/usr/local/etc"
    /usr/bin/install -c -m 644 'sphinx.conf.dist' '/usr/local/etc/sphinx.conf.dist'
    /usr/bin/install -c -m 644 'example.sql' '/usr/local/etc/example.sql'
    make install-data-hook
    make[3]: Entering directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'
    mkdir -p /usr/local/var/data && mkdir -p /usr/local/var/log
    make[3]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'
    make[2]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'
    make[1]: Leaving directory `/opt/lampp/sphinx/sphinx-0.9.8-svn-r1112'

  16. Yaroslav Vorozhko
    Member
    Posted 3 years ago #

    This output is not errors.
    You installed sphinx in /usr/local.
    binaries:
    /usr/local/bin/indexer
    /usr/local/bin/searchd
    /usr/local/bin/search
    sphinx.conf:
    /usr/local/etc/sphinx.conf.dist
    /usr/local/etc/example.sql

  17. Hemakumars
    Member
    Posted 3 years ago #

    Could you tell me what are the requirements to successfully implement the sphinx search plug-in 0.4 in the hosting webserver.

    Our wordpress domains all hosted by justhost.com. they are saying that the packages has to be changed for the sphinx plug-in to be installed in the webserver.

    Do you have any successful mantra to do it in the webserver?

    With regards

    Hemakumar.S

  18. Yaroslav Vorozhko
    Member
    Posted 3 years ago #

    If you want to install sphinx in specified folder you should set prefix parameter:
    sudo ./configure --prefix=/path/to/sphinx

  19. Hemakumars
    Member
    Posted 3 years ago #

    Did you know about the setting up procedures in the webserver where the website will benefit immensely?

  20. Hemakumars
    Member
    Posted 3 years ago #

    Could any one have the working example of Free open-source wordpress sphinx-search 0.4 plug-in installed perfectly in the wordpress domain.

  21. Hemakumars
    Member
    Posted 3 years ago #

    Hi,

    Now i am trying debian way to install the sphinx search in the local host, sphinx conf modified with the database requirement and till indexer command in ubuntu 9.10 is done. once the indexer-all command given,data is showing zero.

    If any expert knows the finishing touch of successful implementation of sphinx reply soon

    Thanks and regards

    Hemakumar.S

  22. Ivinco
    Member
    Posted 3 years ago #

    once the indexer-all command given,data is showing zero

    Can you post the output of the indexer-all command?

  23. Hemakumars
    Member
    Posted 3 years ago #

    root@TP046:/usr/local/bin# indexer -all
    Sphinx 0.9.9-release (r2117)
    Copyright (c) 2001-2009, Andrew Aksyonoff

    using config file '/usr/local/etc/sphinx.conf'...
    WARNING: no such index '-all', skipping.
    total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
    total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg

  24. Hemakumars
    Member
    Posted 3 years ago #

    This is the wordpress sphinx search plug-in 0.4 version indexing

    Sphinx 0.9.8-dev (r1112)
    Copyright (c) 2001-2008, Andrew Aksyonoff

    using config file '/opt/lampp/sphinx/etc/sphinx.conf'...
    indexing index 'delta_wordpress'...
    collected 0 docs, 0.0 MB
    total 0 docs, 0 bytes
    total 0.010 sec, 0.00 bytes/sec, 0.00 docs/sec
    indexing index 'main_wordpress'...
    collected 49 docs, 0.0 MB
    sorted 0.0 Mhits, 88.2% done
    total 49 docs, 20272 bytes
    total 0.019 sec, 1048949.63 bytes/sec, 2535.44 docs/sec
    rotating indices: succesfully sent SIGHUP to searchd (pid=511.

    Tell me the solution to show the number of documents

    With regards

    Hemakumar.S

  25. Ivinco
    Member
    Posted 3 years ago #

    Why don't you try to use reindex.php like this?

    snikolaev@a5530:/www/blog/wp-content/plugins/wordpress-sphinx-plugin/cron$ php reindex.php main
    Sphinx 1.11-id64-dev (r2500)
    Copyright (c) 2001-2010, Andrew Aksyonoff
    Copyright (c) 2008-2010, Sphinx Technologies Inc (http://sphinxsearch.com)

    using config file '/www/blog/wp-content/plugins/wordpress-sphinx-plugin/rep/sphinx.conf'...
    indexing index 'main_wp'...
    collected 2 docs, 0.0 MB
    sorted 0.0 Mhits, 100.0% done
    total 2 docs, 251 bytes
    total 0.642 sec, 390 bytes/sec, 3.11 docs/sec
    total 3 reads, 0.000 sec, 0.2 kb/call avg, 0.0 msec/call avg
    total 9 writes, 0.000 sec, 0.4 kb/call avg, 0.0 msec/call avg
    ...

    snikolaev@a5530:/www/blog/wp-content/plugins/wordpress-sphinx-plugin/cron$ php reindex.php delta
    nothing to index...

    Anyway if you want to use 'indexer' directly the correct syntax is 'indexer --all'. And you might want to specify path to correct config (it might be .../wp-content/plugins/wordpress-sphinx-plugin/rep), use '-c' for this.

  26. Hemakumars
    Member
    Posted 3 years ago #

    Thank you for your guidance we have configured in local-host, where as we are trying to implement in our website but everything is indexed properly.the problem is there are no search results.

    I just had a warning report while indexing , watch this link,
    We are eagerly waiting for your reply!

    With regards
    Hemakumar.S

  27. Ivinco
    Member
    Posted 3 years ago #

    Please ensure searchd is running.
    "WARNING: no process found by PID 31252." means it's not running.

  28. Hemakumars
    Member
    Posted 3 years ago #

    we are actually using a shared system server(justhost.com) and not a dedicated one is that a problem..?

  29. Ivinco
    Member
    Posted 3 years ago #

    If they don't allow you to run searchd - yes. Did you try to start the daemon on the same page where you started the indexing?

  30. Hemakumars
    Member
    Posted 3 years ago #

    man!
    you are god! it works .......
    thanks for your great support,people like you should always be active on our open source community..

    with regards
    hemakumar.s

124

Topic Closed

This topic has been closed to new replies.

About this Topic