Menu

SARG 2.3.2 problem installing

sarg
IgorA100
2010-11-25
2012-12-19
  • IgorA100

    IgorA100 - 2010-11-25

    CentOS Linux 5.5
    Downloaded from the repository revision 458.
    a problem:
    autoconf
    error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the
    error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
    error: possibly undefined macro: AM_GNU_GETTEXT

    Run: gettext -version : 0.14.6
    Downloaded from http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz and install:
    ./configure -prefix=/usr -exec-prefix=/usr -bindir=/bin
    make all
    make install

    Run: gettext -version : 0.18.1
    Begin to install sarg:
    # autoconf
    configure.in:69: error: possibly undefined macro: AM_ICONV
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    configure.in:91: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
    configure.in:92: error: possibly undefined macro: AM_GNU_GETTEXT
    #
    Ok, try:
    # autoreconf -fi
    Creating directory m4
    Copying file m4/codeset.m4
    Copying file m4/gettext.m4
    Copying file m4/glibc2.m4
    Copying file m4/glibc21.m4
    Copying file m4/iconv.m4
    Copying file m4/intdiv0.m4
    Copying file m4/intl.m4
    Copying file m4/intldir.m4
    Copying file m4/intlmacosx.m4
    Copying file m4/intmax.m4
    Copying file m4/inttypes-pri.m4
    Copying file m4/inttypes_h.m4
    Copying file m4/lcmessage.m4
    Copying file m4/lib-ld.m4
    Copying file m4/lib-link.m4
    Copying file m4/lib-prefix.m4
    Copying file m4/lock.m4
    Copying file m4/longlong.m4
    Copying file m4/nls.m4
    Copying file m4/po.m4
    Copying file m4/printf-posix.m4
    Copying file m4/progtest.m4
    Copying file m4/size_max.m4
    Copying file m4/stdint_h.m4
    Copying file m4/uintmax_t.m4
    Copying file m4/visibility.m4
    Copying file m4/wchar_t.m4
    Copying file m4/wint_t.m4
    Copying file m4/xsize.m4
    Copying file po/Makevars.template
    #
    Ok.
    ./configure - Ok
    make all - Ok
    make install - Problem

    make -C po install
    make: Entering directory `/tmp/inst/sarg-2.3.2/po'
    *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.18
    make: ***  Error 1
    make: Leaving directory `/tmp/inst/sarg-2.3.2/po'
    make: ***  Error 2
    #

    Please help me.
    P.s.:
    # autoconf -version
    autoconf (GNU Autoconf) 2.59

     
  • IgorA100

    IgorA100 - 2010-11-25

    Installed autoconf 2.68:
    # autoconf -version
    autoconf (GNU Autoconf) 2.68

    Problem persists:
    # make install
    make -C po install
    make: Entering directory `/tmp/inst/sarg-2.3.2/po'
    *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.18
    make: ***  Error 1
    make: Leaving directory `/tmp/inst/sarg-2.3.2/po'
    make: ***  Error 2

     
  • Frederic Marchal

    You must overwrite po/Makefile.in.in (take note of the double ".in") with the one provided by your version of gettext. It should be in

    /usr/share/gettext/po/Makefile.in.in
    

    .

    Then make install should work.

    Frederic

     
  • IgorA100

    IgorA100 - 2010-11-26

    Thank you for your reply.
    Replace file Makefile.in.in, the problem persists:
    Procedure:
    1. Replaced in the source files "configure.in":

    AM_GNU_GETTEXT_VERSION ([0.17])
    

    at:

    AM_GNU_GETTEXT_VERSION ([0.18])
    

    2. Replace file Makefile.in.in
    3. autoreconf-fi
    4. make all
    5. make install
    Installation complete.
    P. S. sorttable.js have only: / usr / libexec / webmin / blue-theme / unauthentocated / sorttable.js copied into the folder with the reports SARG (sarg /) - is not working reorder. In sarg.conf the correct path: sorttable sarg / sorttable.js

     
  • Frederic Marchal

    The path to sorttable.js is the URL the browser reading the report must follow to download the file (i.e it is either a http://…/sorttable.js path or an absolute path on the web server or a path relative to the location of the output directory entered in output_dir). In my case, sorttable.js is stored at the root of the web server serving the reports and the sorttable configuration option is set to /sorttable.js in sarg.conf.

    Rereading the comment in sarg.conf shows that it could definitely benefit from some clarification. I'll try to come up with a better description for the final release.

    Thank you for the procedure to upgrade to gettext 0.18.

    Frederic

     
  • IgorA100

    IgorA100 - 2010-11-26

    No icons show graphs :(
    The file sarg.conf written: graphs yes
    Screenshot: http://radikal.ru/F/i081.radikal.ru/1011/54/2f5bfab25023.jpg.html

    [root@gate250 bin]# ldd /usr/local/bin/sarg
            linux-gate.so.1 =>  (0x00d24000)
            libldap-2.3.so.0 => /usr/lib/libldap-2.3.so.0 (0x00101000)
            libc.so.6 => /lib/libc.so.6 (0x008e7000)
            liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 (0x00b60000)
            libresolv.so.2 => /lib/libresolv.so.2 (0x00c46000)
            libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00bb3000)
            libssl.so.6 => /lib/libssl.so.6 (0x07681000)
            libcrypto.so.6 => /lib/libcrypto.so.6 (0x0013b000)
            /lib/ld-linux.so.2 (0x008c3000)
            libdl.so.2 => /lib/libdl.so.2 (0x00a42000)
            libcrypt.so.1 => /lib/libcrypt.so.1 (0x00b2c000)
            libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x002a3000)
            libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x002d1000)
            libcom_err.so.2 => /lib/libcom_err.so.2 (0x0027c000)
            libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00dbe000)
            libz.so.1 => /usr/lib/libz.so.1 (0x00a8f000)
            libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00dad000)
            libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00c41000)
            libselinux.so.1 => /lib/libselinux.so.1 (0x00aa4000)
            libsepol.so.1 => /lib/libsepol.so.1 (0x00abe000)
    [root@gate250 bin]#
    

    config.log: http://dl.cgmap.ru/more/config.7z

    P.s. SARG 2.3.1 show graphs.

     
  • Frederic Marchal

    The link to download sorttable.js is written in sarg.conf but I plan to distribute a custom version of sorttable along with sarg. The script from kryogenix.org hasn't been updated for 3 years now and contains some bugs.

    The sorting of the MILLISEC column should be fixed in svn. Thanks for the report.

    Frederic

     
  • IgorA100

    IgorA100 - 2010-11-26

    is written in sarg.conf

    Sorry, no noticed: (
    Yes, I noticed that the JS have not been updated.
    Did not tell me about the lack of a graph?

     
  • Frederic Marchal

    According to your config.log file, configure could not find gd.h nor any related libgd file. You probably lack the development files of libgd or libgd2.

    Frederic

     
  • IgorA100

    IgorA100 - 2010-11-26

    Thank you, great fmarchal
    Ver. 2.3.1 i set out RPM and I have not had "gd-devel"
    Run: yum install "gd-devel" and everything is working correctly.
    Many thanks!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
OSZAR »