Help save net neutrality! Learn more.
Close

Errors on Fedora 19, when creating an index for ZIM-file.

Help
Dmitriy
2013-09-19
2013-09-19
  • Dmitriy

    Dmitriy - 2013-09-19

    I try to start the service Kiwix with full-text search on Linux. To do this, create an index for ZIM-file.
    OS - Fedora 19 32bit
    Kiwix from http://sourceforge.net/projects/kiwix/files/0.9_rc2/kiwix-0.9-rc2-linux-i686.tar.bz2/download

    "[root@dmz bin]# ./kiwix-index -v --backend=xapian /var/ftp/wikipedia/ZIM-files/wikipedia_ru_all_05_2011.zim /public/index/
    Indexing of '/var/ftp/wikipedia/ZIM-files/wikipedia_ru_all_05_2011.zim' starting...
    isArticleExtractor running: yes
    isArticleParser running: yes
    isArticleIndexer running: yes
    0% of all the articles indexed...
    Waiting... ToIndexQueue is empty for now...
    Illegal instruction (core dumped)

    [root@dmz bin]# ./kiwix-index -v --backend=clucene /var/ftp/wikipedia/ZIM-files/wikipedia_ru_all_05_2011.zim /public/index/
    Unable instanciate the Kiwix indexer.
    [root@dmz bin]#
    "
    Packages "xapian-core" and "clucene-core" installed

     
    • Emmanuel Engelhart

      I guess you have an "old" CPU?

       
      • Dmitriy

        Dmitriy - 2013-09-19

        Athlon 1100 MHz
        #cat /proc/cpuinfo
        processor : 0
        vendor_id : AuthenticAMD
        cpu family : 6
        model : 4
        model name : AMD Athlon(tm) Processor
        stepping : 2
        cpu MHz : 1109.882

        Old CPU?

         
        • Anonymous - 2013-09-19

          I guess yes, this CPUs are not so young and don't support SSE2 instructions. Xapian (fulltext search engine) needs this per default. You are not the only one complaining about that... and this is annoying not being able to run Kiwix on older CPUs. If you are agree, I will try to compile a version of Kiwix without this instructions and let you test (I can't). OK?

           
        • Emmanuel Engelhart

          Could you please try this dev. version:
          http://tmp.kiwix.org/kiwix-0.9-static-i686.tar.bz2

          I have tried to compile it without SSE2 instructions...

           
          • Dmitriy

            Dmitriy - 2013-09-19

            It was not written anywhere that it is necessary to SSE2: (
            /kiwix-index from http://tmp.kiwix.org/kiwix-0.9-static-i686.tar.bz2 work and index creates!
            But now the problem is with kiwix-serve(from kiwix-0.9-static-i686.tar.bz2)-
            ./kiwix-serve --index=/public/index/gn --port=8888 /var/ftp/wikipedia/ZIM-files/wikipedia_gn_all_01_2013.zim
            Illegal instruction (core dumped)

            kiwix-serve from site kiwix.org also does not work:
            "Illegal instruction (core dumped)"

             
            Last edit: Dmitriy 2013-09-19
            • Anonymous - 2013-09-19

              Ok, if I have achieved to fix kiwix-index, this is really a good news! But this is really strange that kiwix-index works and not kiwix-serve. I guess, if you launch kiwix-serve without the --index argument, it works?

               
              • Dmitriy

                Dmitriy - 2013-09-19

                No:
                ./kiwix-serve --port=8888 wikipedia_gn_all_01_2013.zim
                terminate called after throwing an instance of 'std::logic_error'
                what(): basic_string::_S_construct NULL not valid
                Aborted (core dumped)

                "kiwix-serve" from www.kiwix.org without index works:
                http://oss.tambov.ru:8888/

                 
                Last edit: Dmitriy 2013-09-19
        • Emmanuel Engelhart

          BTW, corresponding bug ticket:
          https://sourceforge.net/p/kiwix/bugs/478/

           
  • Dmitriy

    Dmitriy - 2013-09-19

    How to for "kiwix-serve" specify which library(clucene or hapian) search?
    Only through library.xml ?

     
    • Emmanuel Engelhart

      you can only use xapian, we will remove this option soon.

       
  • Dmitriy

    Dmitriy - 2013-09-19

    its works! I created the file library.xml and have it use hapian (indextype=xapian) and full text search engine began to work :
    http://oss.tambov.ru:7777

    Thank you!!!
    And the old server is capable of something :)

     
    Last edit: Dmitriy 2013-09-19
    • Emmanuel Engelhart

      This is great news, the problem you have by starting directly with a ZIM file (instead of the library XML file) is a bug which seems to have been introduced a few days ago. We will fix it ASAP. Thx you for your patience.

       


Anonymous

Cancel  Add attachments