Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SquidGuard package install failure

    Scheduled Pinned Locked Moved pfSense Packages
    11 Posts 3 Posters 3.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mshundal
      last edited by

      Hi there,

      I am getting an error when I try to install the squidGuard package.

      Fatal error: Cannot redeclare is_iprange() (previously declared in /etc/inc/util.inc:194) in /usr/local/pkg/squidguard_configurator.inc on line 1800 
      

      I searched before posting and the only matching post (http://forum.pfsense.org/index.php?topic=23711.0) while had the exact error; the solution does not work for a new install. I tried editing the file suidguard_configurator.inc and re-installing but guess the package manager grabs a new copy of the file every time i hit install.

      Any hints/tips/workarounds are much appreciated.

      • Regards
      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        http://forum.pfsense.org/index.php/topic,23711.0.html

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • M
          mshundal
          last edited by

          umm yeah…. that's the post i referenced in my original message....

          and as mentioned it does not apply.

          anyone else?

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by

            @mshundal:

            umm yeah…. that's the post i referenced in my original message....

            and as mentioned it does not apply.
            anyone else?

            You edit files and then reinstall? Why ? New installation write old files with bug.

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • N
              NeophyteHeaven
              last edited by

              reinstall.. make sure you have pyhton installed..

              http://ftp.cse.yzu.edu.tw/pub/BSD/FreeBSD/ports/i386/packages-7.2-release/All/python25-2.5.4_1.tbz
              pkg_add python25-2.5.4_1.tbz
              cd /usr/local/lib/python2.5/site-packages/
              cp -rp ../../python2.4/site-packages/DenyHosts* .

              then i just run run this sh

              http://www.tomschaefer.org/temp/pfsense/denyhosts/1.2.3/install.sh

              everything will work after that..

              running pfsense 1.2.3-RELEASE on Dell R300 (raid1), Lusca/LUSCA_HEAD r14560 patched by chudy r11

              1 Reply Last reply Reply Quote 0
              • M
                mshundal
                last edited by

                Thanks but had some errors:

                # cd /usr/local/lib/python2.5/site-packages/
                # cp -rp ../../python2.4/site-packages/DenyHosts* .
                cp: No match.
                

                which likely cause this:

                # chmod +x install.sh
                # ./install.sh
                starting
                touch hosts.deniedssh
                copy config file
                denyhosts.conf                                100% of   20 kB   73 kBps
                install daemon
                denyhosts.sh                                  100% of  481  B  678  Bps
                remove old hosts.allow
                rm: denyhosts: No such file or directory
                hosts.allow                                   100% of  124  B  283 kBps
                set permissions
                starting denyhosts
                denyhosts is not running.
                ./denyhosts.sh: WARNING: run_rc_command: cannot run /usr/local/bin/denyhosts.py
                Success
                #
                
                

                should i install python 2.4 as well?

                1 Reply Last reply Reply Quote 0
                • N
                  NeophyteHeaven
                  last edited by

                  pkg_add -r pyhton

                  running pfsense 1.2.3-RELEASE on Dell R300 (raid1), Lusca/LUSCA_HEAD r14560 patched by chudy r11

                  1 Reply Last reply Reply Quote 0
                  • M
                    mshundal
                    last edited by

                    pkg_add -r pyhton

                    Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/pyhton.tbz: File unavailable (e.g., file not found, no access)
                    pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/pyhton.tbz' by URL

                    1 Reply Last reply Reply Quote 0
                    • M
                      mshundal
                      last edited by

                      so i got denyhosts working by installing it by itself but guess what, the original issue remains :(

                      1 Reply Last reply Reply Quote 0
                      • M
                        mshundal
                        last edited by

                        nevermind, got around it by editing the other offending file; pkg installed but with errors - changed the util.inc back to original and edited squidguard configurator this time and done :)

                        1 Reply Last reply Reply Quote 0
                        • N
                          NeophyteHeaven
                          last edited by

                          good to hear it that worked..i got mine works after fresh install..

                          running pfsense 1.2.3-RELEASE on Dell R300 (raid1), Lusca/LUSCA_HEAD r14560 patched by chudy r11

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.