
Hello, In fact, I copied the file DBI.pm at the directory where otrs try to find the file instead of making a link between the two file. But I got another error Software error: Can't locate loadable object for module DBI in @INC (@INC contains: /opt/otrs/bin/cgi-bin /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/DBI.pm line 263 BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/DBI.pm line 263. Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/DB.pm line 21. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/DB.pm line 21. Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/Web/InterfacePublic.pm line 27. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/Web/InterfacePublic.pm line 27. Compilation failed in require at /opt/otrs/bin/cgi-bin/public.pl line 39. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/public.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. Doing a copy of file like that is not allowed? Best regards, Xiaoxing

On 05/26/2011 02:45 PM, Xiaoxing Meng wrote:
Hello, In fact, I copied the file DBI.pm at the directory where otrs try to find the file instead of making a link between the two file. But I got another error Software error: Can't locate loadable object for module DBI in @INC (@INC contains: /opt/otrs/bin/cgi-bin /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/DBI.pm line 263 BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/DBI.pm line 263. Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/DB.pm line 21. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/DB.pm line 21. Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/Web/InterfacePublic.pm line 27. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/Web/InterfacePublic.pm line 27. Compilation failed in require at /opt/otrs/bin/cgi-bin/public.pl line 39. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/public.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.
Doing a copy of file like that is not allowed?
Best regards,
Xiaoxing
Of course it's allowed, but it doesn't help you much. Why not follow the instructions we gave you? -- Tiemen Ruiten Linux System Administrator

Xiaoxing Meng wrote:
Hello, In fact, I copied the file DBI.pm at the directory where otrs try to find the file instead of making a link between the two file. But I got another error *Software error:* Can't locate loadable object for module DBI [...]
Doing a copy of file like that is not allowed?
It is "allowed" but it will mostly not work. The DBI package doesn't only consist of the file DBI.pm. Just follow one of the given installation instructions (via CPAN or your distro's package mechanism) and it will work. Cheers frank

I did do this symlink, but it didn't work. Best wishes, Xiaoxing -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Frank Thommen Sent: jeudi 26 mai 2011 14:58 To: User questions and discussions about OTRS. Subject: Re: [otrs] Can't locate DBI.pl Xiaoxing Meng wrote:
Hello, In fact, I copied the file DBI.pm at the directory where otrs try to find the file instead of making a link between the two file. But I got another error *Software error:* Can't locate loadable object for module DBI [...]
Doing a copy of file like that is not allowed?
It is "allowed" but it will mostly not work. The DBI package doesn't only consist of the file DBI.pm. Just follow one of the given installation instructions (via CPAN or your distro's package mechanism) and it will work. Cheers frank --------------------------------------------------------------------- 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

So you mean that install DBI in the directory that @INC of otrs includes? To be sure, Perl Makefile.PL PREFIX="" what do I need to write for PREFIX? -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Frank Thommen Sent: jeudi 26 mai 2011 15:20 To: User questions and discussions about OTRS. Subject: Re: [otrs] Can't locate DBI.pl
I did do this symlink, but it didn't work.
Don't create symlinks. Sooner or later you will loose control over such a system. Do a proper installation of DBI instead. Cheers frank --------------------------------------------------------------------- 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

Xiaoxing Meng wrote:
So you mean that install DBI in the directory that @INC of otrs includes? To be sure, Perl Makefile.PL PREFIX="" what do I need to write for PREFIX?
Use the same perl binary that OTRS uses (in case you have several parallel installations on your host) and do *not* use PREFIX. frank

Hello, On our server, we have Perl, v5.10.0. I know that we can use cpan to install the modules of perl, but the problem is for the raison of secure, our server is not allowed to connect with internet. So I can't download and install the pakage automatically by using like apt-get install etc. Now, I try to figure out the problem. Any help will be appreciated! Xiaoxing -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Frank Thommen Sent: jeudi 26 mai 2011 15:30 To: User questions and discussions about OTRS. Subject: Re: [otrs] Can't locate DBI.pl Xiaoxing Meng wrote:
So you mean that install DBI in the directory that @INC of otrs includes? To be sure, Perl Makefile.PL PREFIX="" what do I need to write for PREFIX?
Use the same perl binary that OTRS uses (in case you have several parallel installations on your host) and do *not* use PREFIX. frank --------------------------------------------------------------------- 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

For reasons of security it is usually highly recommended that your
server is able to connect to a package repository; this would allow
your system to be able receive and install security updates. Otherwise
your system will be very soon pretty vulnerable for attacks. Granted,
no attacks from the internet.
Of course, you're free to set up a local package repository, if you
don't want your servers to connect to a remote repository.
If you don't have access to a remote repository, you'll still best
install the needed modules for OTRS (plus their dependencies) using
your systems' package manager. There is more then one way to do this;
but at some point this would probably involve downloading some of the
software, maybe with an intermediate step, but still. Please
understand that you'll probably need a whole boatload of packages in
order to install OTRS.
If you want to have an all-in-one package please consider the Windows
Installer, which does not run on Linux (of course) but it has Perl
with all modules you'll need, plus Apache and MySQL, and OTRS, all in
one neat installable package.
--
Mike
On Fri, May 27, 2011 at 12:01, Xiaoxing Meng
Hello, On our server, we have Perl, v5.10.0. I know that we can use cpan to install the modules of perl, but the problem is for the raison of secure, our server is not allowed to connect with internet. So I can't download and install the pakage automatically by using like apt-get install etc.
Now, I try to figure out the problem.
Any help will be appreciated!
Xiaoxing
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Frank Thommen Sent: jeudi 26 mai 2011 15:30 To: User questions and discussions about OTRS. Subject: Re: [otrs] Can't locate DBI.pl
Xiaoxing Meng wrote:
So you mean that install DBI in the directory that @INC of otrs includes? To be sure, Perl Makefile.PL PREFIX="" what do I need to write for PREFIX?
Use the same perl binary that OTRS uses (in case you have several parallel installations on your host) and do *not* use PREFIX.
frank --------------------------------------------------------------------- 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
--------------------------------------------------------------------- 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

Helle, All the directories where I can find DBI.pm contains in attachement. The directories that OTRS try to find DBI.pm are ... /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 I used "ln" to connect these directories but I didn't succeed. "ln -s /usr/local/perl/lib/ /usr/local/lib/perl5/site_perl/" The "link" is not correct? Or I should not do this way? Best regards, Xiaoxing -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Frank Thommen Sent: jeudi 26 mai 2011 15:30 To: User questions and discussions about OTRS. Subject: Re: [otrs] Can't locate DBI.pl Xiaoxing Meng wrote:
So you mean that install DBI in the directory that @INC of otrs includes? To be sure, Perl Makefile.PL PREFIX="" what do I need to write for PREFIX?
Use the same perl binary that OTRS uses (in case you have several parallel installations on your host) and do *not* use PREFIX. frank --------------------------------------------------------------------- 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 Fri, May 27, 2011 at 05:55:34PM +0200, Xiaoxing Meng wrote:
All the directories where I can find DBI.pm contains in attachement. The directories that OTRS try to find DBI.pm are ... /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
I used "ln" to connect these directories but I didn't succeed. "ln -s /usr/local/perl/lib/ /usr/local/lib/perl5/site_perl/" The "link" is not correct? Or I should not do this way?
As others already pointed out, the installation of the perl-DBI package
is not only about DBI.pm. One of the error messages you posted earlier
showed that DBI.pm was found, but that DBI.so was missing.
--
-- Jos Vos
participants (5)
-
Frank Thommen
-
Jos Vos
-
Michiel Beijen
-
Tiemen Ruiten
-
Xiaoxing Meng