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.
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.
Share this post:
Responses (9)
-
Accepted Answer
-
Accepted Answer
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 -
Accepted Answer
-
Accepted Answer
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 -
Accepted Answer
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. -
Accepted Answer
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? -
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
@ 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
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »