
Hello, After I lanched the installing page of OTRS, I got this error. I checked that I have well installed DBI and other pakages. I can't figure out this problem. Any help will be appreciated. Best regards, Xiaoxing Software error: Can't locate DBI.pm in @INC (@INC contains: /opt/otrs/bin/Custom /opt/otrs/bin/Kernel/cpan-lib /opt/otrs/bin /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib /opt/otrs/bin/cgi-bin/../.. /usr/local/perl/lib/5.10.0/i686-linux /usr/local/perl/lib/5.10.0 /usr/local/perl/lib/site_perl/5.10.0/i686-linux /usr/local/perl/lib/site_perl/5.10.0 .) at /opt/otrs/bin/cgi-bin/../../Kernel/System/DB.pm line 17. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/DB.pm line 17. Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/Web/InterfaceInstaller.pm line 27. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/Web/InterfaceInstaller.pm line 27. Compilation failed in require at /opt/otrs/bin/cgi-bin/installer.pl line 39. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/installer.pl line 39. For help, please send mail to the webmaster (webmaster@localhostmailto:webmaster@localhost), giving this error message and the time and date of the error.

On 05/25/2011 01:15 PM, Xiaoxing Meng wrote:
Can't locate DBI.pm in @INC
Are you sure DBI.pm is present on your system? Do a "find / -name DBI.pm" and if it finds the file, make sure it's located in one of the directories contained in @INC. If DBI.pm isn't present, install the perl module, either through CPAN or the package manager of your distribution. -- Tiemen Ruiten Linux System Administrator

I'm sure. Here is the copy of screen as attachement. Best wishes, Xiaoxing -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Tiemen Ruiten Sent: mercredi 25 mai 2011 13:29 To: User questions and discussions about OTRS. Subject: Re: [otrs] Can't locate DBI.pm in @INC On 05/25/2011 01:15 PM, Xiaoxing Meng wrote:
Can't locate DBI.pm in @INC
Are you sure DBI.pm is present on your system? Do a "find / -name DBI.pm" and if it finds the file, make sure it's located in one of the directories contained in @INC. If DBI.pm isn't present, install the perl module, either through CPAN or the package manager of your distribution. -- Tiemen Ruiten Linux System Administrator --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

On 05/25/2011 01:34 PM, Xiaoxing Meng wrote:
I'm sure. Here is the copy of screen as attachement.
Best wishes, Xiaoxing
So, DBI.pm is present but not in the place where OTRS expects it. Either you should modify the directories contained in @INC or you should make a symlink between /usr/local/lib/perl5 or /usr/lib/perl5 and /usr/local/lib/perl or /usr/lib/perl respectively. -- Tiemen Ruiten Linux System Administrator

Hi Xiaoxing,
On Wed, May 25, 2011 at 13:34, Xiaoxing Meng
I'm sure. Here is the copy of screen as attachement.
The DBI module must be installed in a place where both the web server user, and the OTRS user can access it. This means that if you install via the CPAN client you'll need to run it as root. But usually the most convenient is to install DBI and it's modules with your package management system, such as apt-get or yum. This way installation is very easy and you'll get easy to install updates as a bonus. -- Mike
participants (3)
-
Michiel Beijen
-
Tiemen Ruiten
-
Xiaoxing Meng