Forums

Resolved
0 votes
Hello Everybody.

I am trying to install sarg on ClearOs 6.6 Lite, but i am getting this error:

Resolving Dependencies
--> Running transaction check
---> Package sarg.i686 0:2.3.1-1.el6.rft will be installed
--> Processing Dependency: gd >= 1.8 for package: sarg-2.3.1-1.el6.rft.i686
--> Processing Dependency: libgd.so.2 for package: sarg-2.3.1-1.el6.rft.i686
--> Finished Dependency Resolution
Error: Package: sarg-2.3.1-1.el6.rft.i686 (rpmforge-testing)
Requires: libgd.so.2
Error: Package: sarg-2.3.1-1.el6.rft.i686 (rpmforge-testing)
Requires: gd >= 1.8
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles –nodigest

I had checked libgd.so.2, its presente on system. Its ok now

GD is not present. how can i install that with minimum impact. Of course i can update the GD libray and dependencies, but iam not confortable with repositorys.

Thanks.
Tuesday, September 08 2015, 06:59 PM
Share this post:
Responses (9)
  • Accepted Answer

    Tuesday, February 02 2016, 10:32 PM - #Permalink
    Resolved
    0 votes
    Hello Milton,

    to install vi ssh

    # yum install --enablerepo=clearos-centos* gd-2.0.35-11.el6.x86_64

    or

    # yum install --enablerepo=clearos-centos* gd-2.0.35-11.el6.i686

    after... install sarg, good luck
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, February 11 2016, 05:09 AM - #Permalink
    Resolved
    0 votes
    Hello,
    I have had the same issue as Milton had, but when I try the command:
    yum install --enablerepo=clearos-centos* gd-2.0.35-11.el6.x86_64

    I get the error:
    No package gd-2.0.35-11.el6.x86_64 available.

    Is there another repo I should be using or an updated package name? (If the later, I would appreciate any tips
    on finding out the most up to date package names.)

    Thanks,
    Phil
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, February 11 2016, 02:24 PM - #Permalink
    Resolved
    0 votes
    @Phillip.

    You're likely on version 7 where the version of the gd package is different.

    Just run:

    yum --enablerepo=clearos-centos install gd


    You'll install a more up-2-date package of gd (2.0.35-26) which will work just fine.

    B.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, February 11 2016, 02:54 PM - #Permalink
    Resolved
    0 votes
    Thanks for your suggestion Ben, but when I run the command:
    yum --enablerepo=clearos-centos install gd
    I get "Error getting repository data for clearos-centos, repository not found"

    I tried:
    yum --enablerepo=clearos-centos* install gd
    But that got the response: "No package gd available. Error: Nothing to do."

    I am running ClearOS Pro 6.6.0

    One note: this came up while trying to install SARG according to the instructions I found at:
    http://danda.poweredbyclear.com/master-frame-sargv6.html

    Part of these instructions included disabling repositories in the file /etc/yum.repos.d/rpmforge.repo by
    setting all the enable= lines to enable=0. The instructions emphasized the need for this.

    However, do I need to re-enable those repositories to install gd?

    Thanks again,
    Phil
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, February 11 2016, 03:01 PM - #Permalink
    Resolved
    0 votes
    I think you need to get your system up to date in general so that you can access the new yum repo configuration and newly named repos.

    yum upgrade


    Does it have any dependency issues?

    How about this:

    rpm -qv clearos-release-community


    It should return:

    clearos-release-community-6-6.7.0.6.v6.noarch

    B.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 12 2016, 04:35 AM - #Permalink
    Resolved
    0 votes
    It does look like my system is in need of some help.

    rpm -qv clearos-release-community
    returns package not installed.

    The "yum upgrade" command comes back with a lot of errors related to php and owncloud packages being required and suggests
    either using --skip-broken or rpm -VA --nofiles --nodigest

    Maybe its time to upgrade to version 7?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 12 2016, 06:11 AM - #Permalink
    Resolved
    0 votes
    Phil, I see you are using the instructions on my site to install sarg. As mentioned, the format of the ClearOS V 6 repositories has changed. Therefore, in the spirit of "eat you own dog-food", made minor changes to the yum instructions and successfully installed on a i686 ClearOS 6.7 installation. I have the Community version - no idea if the "Pro" version is different. I don't have a Version 7.x system running currently to provide instructions for it.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 10 2016, 09:42 PM - #Permalink
    Resolved
    0 votes
    Tony,
    It took me a month but I finally got around to trying your new instructions and it worked! :)
    Thank you!
    Phil
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 19 2016, 02:42 AM - #Permalink
    Resolved
    0 votes
    @ Philip

    Have written a better script for the daily reports than the default one supplied, especially if you rotate your squid logs daily, which I do :-

    Replace /etc/cron.daily/sarg with the following :-

    #!/bin/bash
    LOG_FILES=
    for FILE in /var/log/squid/access.log*; do
    LOG_FILES="$LOG_FILES -l $FILE"
    done

    # Get yesterday's date
    YESTERDAY=$(date --date "1 day ago" +%d/%m/%Y)

    # Get today's date
    TODAY=$(date --date "0 day ago" +%d/%m/%Y)

    exec /usr/bin/sarg \
    $LOG_FILES \
    -o /var/www/sarg/daily \
    -d $YESTERDAY-$TODAY &>/dev/null
    exit 0

    The reply is currently minimized Show
Your Reply