Menu

Installation on (X)Ubuntu

Anonymous
2015-12-14
2015-12-17
  • Anonymous

    Anonymous - 2015-12-14

    Hello All,

    I need some help installing Daps 2.1.5 on a xubuntu 15.10 system.

    The configure step

    ./configure --prefix=/opt/daps

    runs fine and without errors. Every check after

    configure: ===== Checking for DocBook XSL Stylesheets...

    shows a "yes".

    But the make step fails with

    ERROR: STYLEROOT_CMDL=file:/usr/share/xml/docbook/stylesheet/docbook-xsl: Path does not exist

    The path exists

    willi@xubuntu:~$ ls /usr/share/xml/docbook/stylesheet/docbook-xsl
    assembly     epub          html      lib        slides       website
    catalog.xml  epub3         htmlhelp  manpages   template     xhtml
    common       fo            images    profiling  VERSION      xhtml-1_1
    eclipse      highlighting  javahelp  roundtrip  VERSION.xsl  xhtml5
    

    Does anyone have an idea what might be wrong? Thank you.

    Best regards,
    Willi

     
    • Thomas Schraitle

      Thanks Willi for your report!

      It seems it has something to do with the incorrect stripping of the "file:" suffix. As I haven't installed a recent Ubuntu yet, I couldn't test myself.
      I've tried to fix that in the sanitize_path function. See my commit on GitHub: https://github.com/openSUSE/daps/commit/d8469856722fbb7ed8638443f832df5771de2f76

      Unfortunately, we haven't published a release yet. However, if you don't mind, you could clone the GitHub repository and try it yourself. Here is how to do:

      1. Clone the DAPS repository:

        cd /tmp; git clone git@github.com:openSUSE/daps.git

      2. Make sure you have aclocal, autoconf, and automake installed (and maybe some other tools). Probably you have that already.

      3. Run ./autogen.sh to see if everything works.

      Hope that works for you.

      Thanks for your help!

       
      • Anonymous

        Anonymous - 2015-12-15

        Hello Thomas!

        Thank you for your quick answer and help. The version from the Github repository works! Almost :-) PDF and HTML generation is perfect, but webhelp does not work. I get an ERROR

        webhelp only works when a recent snapshot of the DocBook stylesheets is
        installed. Your version of the DocBook styles at
        /usr/share/xml/docbook/stylesheet/docbook-xsl
        is not webhelp capable.
        

        I get the same error (with another path in the error message) on a Fedora 23 system (yes, we have quite a potpourri of Linux distributions :-) ). But I think this is no subject for this thread, right!?

        Thank you very much.

        Best regards,
        Willi

         
        • Frank Sundermeyer

          webhelp requires at least version 1.78.1 of the DocBook stylesheets - previous versions of the stylesheet package do not have any webhelp stylesheets.

          /usr/share/xml/docbook/stylesheet/docbook-xsl/VERSION.xsl
          and
          /usr/share/xml/docbook/stylesheet/nwalsh/VERSION.xsl

          on Ubuntu 15.10 both report version 1.78.1, but the docbook-xsl package does not contain the webhelp stylesheets (check with dpkg-query -L docbook-xsl | grep webhelp).

          Haven't checked Fedora, yet, but I assume it is also either a version that is too old, or missing webhelp stylesheets.

          Workaround:
          1. Download the version 1.78.1 (not 1.79.0 !!) from here: https://sourceforge.net/projects/docbook/files/docbook-xsl/1.78.1/
          2. Unpack the tarball/zip, e.g. to ~/db4/docbook-xsl-1.78.1
          3. Run daps with the parameter --styleroot ~/db4/docbook-xsl-1.78.1, for example daps -d DC-foo --styleroot ~/db4/docbook-xsl-1.78.1 webhelp

           
          • Anonymous

            Anonymous - 2015-12-17

            Hi,

            I tried to follow your workaround but it neither works under Xubuntu 15.10 nor under Fedora 23. I cloned the git repository and put everything under /tmp for testing purposes. The parameter --styleroot does not seem to work

            $ cd /tmp/daps/doc
            $ /tmp/daps/bin/daps -d DC-daps-user --dapsroot /tmp/daps/ 
            --styleroot /tmp/docbook-xsl-1.78.1 webhelp
            ERROR: 
            webhelp only works when a recent snapshot of the DocBook stylesheets is
            installed. Your version of the DocBook styles at
            /usr/share/sgml/docbook/xsl-stylesheets-1.78.1
            is not webhelp capable.
            
             
  • Anonymous

    Anonymous - 2015-12-14

    This might (might!) be an xmlcatalog issue... We recently had some Debian fixes in that area. It is possible that this inadvertently caused issues on Ubuntu. Could you try

    xmlcatalog /etc/xml/catalog "http://docbook.sourceforge.net/release/xsl/current/"
    

    and

    xmlcatalog /etc/xml/catalog "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
    

    Then please post the output here.

    Stefan.

     

    Last edit: Stefan Knorr 2015-12-14
    • Anonymous

      Anonymous - 2015-12-14
      xmlcatalog /etc/xml/catalog "http://docbook.sourceforge.net/release/xsl/current/"
      file:/usr/share/xml/docbook/stylesheet/docbook-xsl/
      
      xmlcatalog /etc/xml/catalog "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
      file:/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
      
       
  • Stefan Knorr

    Stefan Knorr - 2015-12-17

    Re: Webhelp DAPS error above:
    The error may be a bit misleading. If you take a look at what DAPS does before it gives the error message, it may become clearer:

    for EXTENSION in $DOCBOOK_STYLES/extensions/webhelpindexer.jar \
      $DOCBOOK_STYLES/extensions/lucene-analyzers-*.jar \
      $DOCBOOK_STYLES/extensions/lucene-core-*.jar \
      $DOCBOOK_STYLES/extensions/tagsoup-*.jar; do [...]
    

    Looking at the Ubuntu package, it seems they do not ship the extensions folder, even though it is included in the official release.

    Maybe they package these extensions separately?

    Wait, no, there is this

    docbook-xsl (1.68.1.dfsg.1-0.1) unstable; urgency=low
    
    * NMU
    * new "upstream" tarball: 
    - Remove the extensions directory that contains the xalan and saxon 
      JAVA extensions we are missing the source for.
      (closes: #331661).
    (Do not forget to remove them from future new upstream versions.)
    

    You may have to copy them into the right folder, it seems. :/

     

    Last edit: Stefan Knorr 2015-12-17

Anonymous
Anonymous

Add attachments
Cancel