Operating System - Linux
1821410 Members
2898 Online
109633 Solutions
New Discussion юеВ

What is @INC and how to configure

 
Jano_1
Advisor

What is @INC and how to configure

What is @INC and how do I configure it?

I have been struggling for days now to get perl and some perl modules working with apache. When I start httpd I receive this error:
Can't locate Apache/DBI.pm in @INC
which is followed by a lot of paths.

The funny thing is that DBI.pm does exist in one of the paths as shown in the error.

I have reinstalled perl but I am still having the same problem.

Regards,
Jano
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: What is @INC and how to configure

Check your perl version number

/full_path/perl -v

Perl v4 had problems with these pluin modules, or so I have discovered the hard way on hpux.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jano_1
Advisor

Re: What is @INC and how to configure

Hi Steven,

perl -v

This is perl, v5.6.1 built for i386-linux

What more can I check?

Jano
rmueller58
Valued Contributor

Re: What is @INC and how to configure

Try getting the latest version 5.x stable.tar.gz of perl, compile and build it.

Then see if you get the same error.

Make sure when you compile apache you check your configure --help within apache, seems to me you have to enable a library or two when compiling. especially when using PHP/Mysql/Perl

I found a good document for compiling MYSQL/PHP/Apache for Snort/ACID.

http://www.internetsecurityguru.com/documents/snort_acid_rh9.pdf#search='SnortRH9mysqlPHP'

It makes a simple task out of a complex one.
rmueller58
Valued Contributor

Re: What is @INC and how to configure

configure --enable-so
allows enabling the PHP static objects.

Jano_1
Advisor

Re: What is @INC and how to configure

I am using apt to install my packages. The great advantage is that it can automatically solve all the dependencies. So I assume it it always gets the latest stable packages.

Regards.
Stuart Browne
Honored Contributor

Re: What is @INC and how to configure

You're using mod_perl aren't you?

I'd double check your script and see where it says 'use "DBI";' (or similar) and review any path or ::'s in it..
One long-haired git at your service...