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

    Perl DBI Module

    General pfSense Questions
    1
    2
    2.1k
    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.
    • T
      thekod
      last edited by

      I'm trying to install the DBI module in perl to access mysql DBs through a perl script on my pfsense box, but I just keep hitting brick walls…

      The Perl CPAN module throws an error because I don't have make installed (Why is that, BTW? Can we get a FULL full install made pretty please?)

      and if I copy over the built module from the CPAN tar, or from a full FreeBSD 6.3 install, I get the following error:
      Can't locate loadable object for module DBI in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/lib/perl5/5.8.8/DBI.pm line 263
      BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/DBI.pm line 263.
      Compilation failed in require at ./squidlog.pl line 4.
      BEGIN failed--compilation aborted at ./squidlog.pl line 4.

      Anybody have ANY ideas?  I'm pulling my hair out at this point...and yes, DBI.pm does exist in @INC, specifically in /usr/local/lib/perl5/5.8.8

      1 Reply Last reply Reply Quote 0
      • T
        thekod
        last edited by

        Found a couple solutions…easiest one is```
        pkg_add -r http://filename

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