• Hello,

    I am a Open source Developer working in the https://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

Viewing 15 replies - 1 through 15 (of 91 total)
  • Hello Hemakumar

    Just try ‘aptitude install sphinxsearch’ to install Sphinx in ubuntu 10.0.4 and then follow the installation instructions from here https://www.ads-software.com/extend/plugins/wordpress-sphinx-plugin/installation/

    Thread Starter Hemakumars

    (@hemakumars)

    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

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

    Thread Starter Hemakumars

    (@hemakumars)

    Thank you once again for reply

    These are the links for sphinx errors

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

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

    With Regards

    Hemakumar.S

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

    Thread Starter Hemakumars

    (@hemakumars)

    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

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

    Thread Starter Hemakumars

    (@hemakumars)

    After installing g++

    these kind of errors coming

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

    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: https://www.ads-software.com/extend/plugins/wordpress-sphinx-plugin/installation/

    Let me know if you have any troubles.

    Thread Starter Hemakumars

    (@hemakumars)

    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.

    Hemakumars,

    Could you please describe your current status in more details?

    Thread Starter Hemakumars

    (@hemakumars)

    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.

    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

    Thread Starter Hemakumars

    (@hemakumars)

    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′

    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

Viewing 15 replies - 1 through 15 (of 91 total)
  • The topic ‘Sphinx Search Engine’ is closed to new replies.