Koozali.org: home of the SME Server

squidguard installing get_blacklist Perl problem

Offline steve288

  • *
  • 336
  • +0/-0
squidguard installing get_blacklist Perl problem
« on: May 02, 2008, 06:03:23 PM »
I have been trying to install A program that is suppose to automatically update squidguard blacklists

I got it from https://sourceforge.net/project/showfiles.php?group_id=138678

I have followed the instructions

--- Instructions.
Copy the 'get_blacklist' file to your /usr/sbin directory (or any directory you want and what's in PATH of root) and the 'get_blacklist.conf' file to /etc/squid - otherwise you have to change the variable in get_blacklist so that the script can find it's configuration.

chmod 640 /etc/squid/get_blacklist.conf
chown root:root /etc/squid/get_blacklist.conf
chmod 750 /usr/sbin/get_blacklist
chown root:root /usr/sbin/get_blacklist

You ask "Why need this script to be root?" Answer: "This script must reload squid to take settings in effect. If you know a better way to do this: please mail me: l.rupp@web.de"

2) Have a look at config-file (esp. the [global]-section) and control the settings. Not everyone uses /etc/squid/squid.conf and /etc/squid/squidguard.conf (Most people use /etc/squid/squidGuard.conf, perhaps) and the script could not run
properly with incorrect settings. (At this time the scripts checks squid.conf and will use the squidguard.conf given in there with an additional warning in his logfile - but perhaps this is not what you want...)

3) Start the script as root using 'get_blacklst' should work. You should find a logfile named get_blacklist.log in your squidGuards logfile directory.

If everything seems to work, you can configure a cron-job or just place the get_blacklist.cron in your /etc/cron.daily directory. This will start get_blacklist every night for you.

4) Perhaps add a logrotate entry for the get_blacklist.log in you logrotate configuration.
-- End Instructions

Now point 2 makes mention of a different place for your squidGuard.conf and indeed my squidGuard.conf is in /usr/local/squidGuard/squidguard.conf so i changed this in the script.
Also note that there is a spelling error in point 3. Which was at first a little confusing because it’s a command. ‘get_blacklst’ should actually be ‘get_blacklist’ note missing  i   .

Now when I type get_blacklist I get the following error..

[root@mail2 bin]# get_blacklist
Can't locate Config/IniFiles.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.5/i38                      6-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-li                      nux-thread-multi/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.4 /usr/lib/perl5/sit                      e_perl/5.8.5/i386-linux-thread-multi/5.8.3 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.2 /usr/lib/perl5/s                      ite_perl/5.8.5/i386-linux-thread-multi/5.8.1 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.0 /usr/lib/perl5                      /site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/sit                      e_perl/5.8.5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/5.8.4 /usr/lib/                      perl5/site_perl/5.8.5/5.8.3 /usr/lib/perl5/site_perl/5.8.5/5.8.2 /usr/lib/perl5/site_perl/5.8.5/5.8.1 /usr/lib/perl5/sit                      e_perl/5.8.5/5.8.0 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.5/i386-li                      nux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386-li                      nux-thread-multi/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.4 /usr/lib/perl5/v                      endor_perl/5.8.5/i386-linux-thread-multi/5.8.3 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.2 /usr/lib/p                      erl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.1 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/5.8.0 /usr                      /lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/5.8.5/i386-linux-thread-multi /usr                      /lib/perl5/vendor_perl/5.8.5/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5                      .8.5/5.8.4 /usr/lib/perl5/vendor_perl/5.8.5/5.8.3 /usr/lib/perl5/vendor_perl/5.8.5/5.8.2 /usr/lib/perl5/vendor_perl/5.8.                      5/5.8.1 /usr/lib/perl5/vendor_perl/5.8.5/5.8.0 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/5.8.5/i386-linux-thread-m                      ulti /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-lin                      ux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-                      multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr                      /lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2                       /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/                      i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-l                      inux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-t                      hread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/ven                      dor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/l                      ib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/get_blacklist line 35.
BEGIN failed--compilation aborted at /usr/sbin/get_blacklist line 35.

Now I don’t know much about perl well accept that it is a great scripting language.
It seems to make reference to perl/5.8.5 and perl/5.8.2 etc etc.
I cannot find this version of perl in the “software installer” list of available packages. There are several perl packages though.
Eg Perl-Compress-Zlib.i386 1.42-1.el4 – base  but none that are many more.

Can anyone tell me how to resolve this problem?

Thanks.