Perl Module Installation issue.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl Module Installation issue.
# 1  
Old 04-12-2013
Perl Module Installation issue.

I have issue with the perl module installed in the new Linux server

I have installed the required module, but still the perl program was not able to find the path

I'm getting the below error:

Code:
Can't locate Log/Log4perl.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/Log4perl.pm /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./audit.pl line 11.
BEGIN failed--compilation aborted at ./audit.pl line 11.

Linux version:

Code:
 
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

Perl version:

Code:
 
-bash-3.2$ perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi

Perl module Installed:

Code:
=head2 Mon Mar 11 07:51:56 2013: C<Module> L<Log::Log4perl|Log::Log4perl>
=over 4
=item *
C<installed into: /usr/lib/perl5/site_perl/5.8.8>
=item *
C<LINKTYPE: dynamic>
=item *
C<VERSION: 1.40>
=item *
C<EXE_FILES: eg/l4p-tmpl>
=back


Require your assistance please. Smilie

Last edited by zaxxon; 04-12-2013 at 06:11 AM.. Reason: removed surrounding html tags...
# 2  
Old 04-12-2013
What does ls /usr/lib/perl5/site_perl/5.8.8/Log/Log4perl.pm return?
# 3  
Old 04-12-2013
Reply

Code:
-bash-3.2$ ls /usr/lib/perl5/site_perl/5.8.8/Log/Log4perl.pm
ls: /usr/lib/perl5/site_perl/5.8.8/Log/Log4perl.pm: Permission denied
-bash-3.2$ whoami
arbatch

And when i log in as a root user

Code:
-bash-3.2$ sudo su - root
[sudo] password for arbatch:
[root@DI-FLOR-LBD396b ~]# ls /usr/lib/perl5/site_perl/5.8.8/Log/Log4perl.pm
/usr/lib/perl5/site_perl/5.8.8/Log/Log4perl.pm
[root@DI-FLOR-LBD396b ~]#

# 4  
Old 04-12-2013
Hmmm, I think I understand why the module wasn't loaded ...

How did you install the module?
# 5  
Old 04-12-2013
I installed almost a month ago. Not sure of the exact steps i followed.

First ran cpan command and under the cpan prompt installed the module using

Code:
install "Log::Log4Perl"

# 6  
Old 04-12-2013
Odd, that should have made it globally accessible, unless there's some unusual SELinux rule in place...

All entries in the standard @INC directories should be globally readable, they are analogous to /lib, /usr/lib, /usr/local/lib but for Perl rather than C

A thought does occur that perhaps you'd be better off having a non system (and more up to date) Perl installed alongside the system Perl, this would allow you install modules, write your own modules and generally muck about, without having an impact on the system's Perl installation (/usr/local/bin/perl as opposed to /usr/bin/perl. )

To achieve this in a manageable fashion take a look at perlbrew - search.cpan.org
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Network card module installation

Hi, I am using Red Hat 9.0 and it does not have the inbuilt driver module for my onboard lan card (RTL 8169). I downloaded the module (file - r8169-6.017.00.tar.bz2 and even r8169-6.015.00.tar.bz2), but when try to install it it says r8169.h , r8169_n.c , Makefile etc are... (2 Replies)
Discussion started by: dextergenious
2 Replies

2. Red Hat

Network card module installation

Hi, I am using Red Hat 9.0 and it does not have the inbuilt driver module for my onboard lan card (RTL 8169). I downloaded the module (file - r8169-6.017.00.tar.bz2 and even r8169-6.015.00.tar.bz2), but when try to install it it says r8169.h , r8169_n.c , Makefile etc are not ELF formats. ... (0 Replies)
Discussion started by: dextergenious
0 Replies

3. Solaris

perl module install issue

Hi, I've been trying to install the perl module DateTime-0.72 onto Solaris 10 server. # uname -a SunOS 5.10 Generic_142910-17 i86pc i386 i86pc but I'm getting the following error: /export/home/perl-modules/DateTime-0.72/> perl Build.PL Can't locate Module/Build.pm in @INC (@INC... (4 Replies)
Discussion started by: keatingb
4 Replies

4. Shell Programming and Scripting

problem during perl module installation

Hi 'm getting error while installing perl mdule on linux.can any one tell me how to resolve that error? problem is: CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build J/JD/JDB/Win32-OLE-0.1709.tar.gz OS unsupported Warning: No success on command Warning (usually harmless):... (1 Reply)
Discussion started by: kavi.mogu
1 Replies

5. Windows & DOS: Issues & Discussions

Strawberry perl - New TK module installation error

Hi, I am struggling in installing TK module for strawberry perl. I downloaded TK804 module, extracted to a folder, kept in c:/strawberry/perl/lib path, then from tht path 1) perl makefile.pl 2)dmake 3)dmake test 4)dmake install During perl makefile.pl it is giving error as... (3 Replies)
Discussion started by: vasanth.vadalur
3 Replies

6. Shell Programming and Scripting

calling perl subroutine from perl expect module

All, Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program. Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies

7. Shell Programming and Scripting

Perl Module installation

Hi All, I am failry new to Perl.I am trying to install a Perl module (Filesys::df.pm) in an IBM AIX5.3 server.But I could not succeed in that.I am getting the following error: abcd3dev# make cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias... (6 Replies)
Discussion started by: surjithss
6 Replies

8. UNIX for Advanced & Expert Users

help with perl module installation

Hi, I am trying to install perl modules in HPUX under my account. I do not have the root permission. The module name I am trying to install is Spreadsheet-WriteExcel. I have downloaded the tar.gz file from CPAN and extracted the same under my home directory. When I try do 'perl... (2 Replies)
Discussion started by: sabyasm
2 Replies

9. Shell Programming and Scripting

perl module installation problems... experts advice needed,...

---------- This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) ----------in win 2000 advanced server,.. i am somewhat comfortable with perl but i am new to perl modules.. when i tried to install xml::simple and xml::parser there... (4 Replies)
Discussion started by: sekar sundaram
4 Replies
Login or Register to Ask a Question