Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: DBI.c has a problem

by hippo (Archbishop)
on Nov 24, 2024 at 16:01 UTC ( [id://11162859]=note: print w/replies, xml ) Need Help??


in reply to DBI.c has a problem

There is only one installation of Perl on this system.

If that's true then it appears that you have 2 separate DBI modules installed. Probably one from the package manager and one from CPAN. Find out which one works and then remove the problematic one.


🦛

Replies are listed 'Best First'.
Re^2: DBI.c has a problem
by LanX (Saint) on Nov 24, 2024 at 16:56 UTC
    Yes, and the OP could start comparing @INC for root and his user.

    A diff should help narrowing the problematic path.

    perl -MData::Dumper -E'say Dumper \@INC'

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

      Hm, that was/is it. For some reason I have a /perl5/lib/perl5 library in my home directory. After some juggling, I was able to clean the @INC variable and it now runs. Thanks to all.

      Jim
        Honestly...

        You should better address the root problem and uninstall the faulty DBI.pm instead of just excluding one path of @INC.

        This will bite you sooner or later, in multiple ways.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        see Wikisyntax for the Monastery

        As has been repeated on PerlMonks countless times: "Don't mess with system perl, install you own one on your home directory".

        The reason is twofold:

        1. If you mess up something in the perl installation provided by your operating system, you operating system mit not be able to work correctly or may even fail to boot properly.
        2. Your operating system/package manager can update/change/remove/patch perl modules at any time, depending on the ever-changing dependencies of your installed programs. You don't want to spend hours trying to find a bug in your own programs, only to find out that your OS distributor did make some unofficial changes to some module.

        PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
        Also check out my sisters artwork and my weekly webcomics

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11162859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2025-11-07 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (65 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.