Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 42093
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: kalyanrajsista [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.094001
Fixed in: (no value)



Subject: unable to install Perl-Critic-1.094001
Hello, I've installed Perl-Critic-1.082, but want to install Perl-Critic-1.094001 but failing with the following error: Can't locate Readonly.pm in @INC (@INC contains: blib lib blib/arch blib/lib /usr/local/lib/perl5/5.8.8/sun4-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at lib/Perl/Critic/Config.pm line 15. BEGIN failed--compilation aborted at lib/Perl/Critic/Config.pm line 15. Compilation failed in require at lib/Perl/Critic/PolicySummary.pod.PL line 25. BEGIN failed--compilation aborted at lib/Perl/Critic/PolicySummary.pod.PL line 25. make[1]: *** [lib/Perl/Critic/PolicySummary.pod] Error 2 make[1]: Leaving directory `/opt/perlmods/src/Perl-Critic-1.094001' make: *** [all] Error 2 Please help me out of how to resolve this error.. Regards, Kalyan
Subject: Re: [rt.cpan.org #42093] unable to install Perl-Critic-1.094001
Date: Thu, 1 Jan 2009 23:29:07 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Jeffrey Thalhammer <jeff [...] imaginative-software.com>
Looks like you need to install Readonly first. Are you using CPAN.pm to do the installation? It usually takes care of all the dependencies for you. If you had installed an earlier version of Perl::Critic, then I would think that you'd already have Readonly. But perhaps not.
I've already Installed ReadOnly and old version of Perl critic (Perl-Critic-1.082) is working fine. Also, I've installed all the dependent modules for Perl::Critic before installing this.
Subject: Re: [rt.cpan.org #42093] unable to install Perl-Critic-1.094001
Date: Thu, 1 Jan 2009 23:52:12 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Jeffrey Thalhammer <jeff [...] imaginative-software.com>
Hmm. Can you verify that those modules all got installed where this Perl is looking for them: blib lib blib/arch blib/lib /usr/local/lib/perl5/5.8.8/sun4-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . If that all checks out, then Elliot and I will dig deeper on our end. Jeffrey Thalhammer Imaginative Software Systems vcard: http://www.imaginative-software.com/contact/jeff.vcf
We've a customized path, where we install all our dependent modules. /opt/<<project_name>>/lib. All the dependent modules will pick from this path. Look at the below listing for ReadOnly perl module under "/opt/<<project_name>>/lib" bash-3.00# ls -l Re* Readonly/ Readonly.pm
Subject: Re: [rt.cpan.org #42093] unable to install Perl-Critic-1.094001
Date: Fri, 2 Jan 2009 00:43:50 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Jeffrey Thalhammer <jeff [...] imaginative-software.com>
Well that would explain it. Notice that the @INC that your Perl is using doesn't contain any directories in /opt. Somehow, the Perl that you use to run Perl::Critic version 1.082 is different (or at least, configured differently) from the one you're using to build Perl::Critic 1.094. I suspect that you have different Perls installed, or maybe you need to set PERL5LIB. Does that make sense? What is the the output of these commands? $> which perl $> which cpan $> perl -V $> perldoc -l Readonly Jeffrey Thalhammer Imaginative Software Systems vcard: http://www.imaginative-software.com/contact/jeff.vcf On Jan 2, 2009, at 12:21 AM, kalyanraj via RT wrote: Show quoted text
> Queue: Perl-Critic > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=42093 > > > We've a customized path, where we install all our dependent modules. > /opt/<<project_name>>/lib. All the dependent modules will pick from > this > path. > > Look at the below listing for ReadOnly perl module under > "/opt/<<project_name>>/lib" > > bash-3.00# ls -l Re* > Readonly/ Readonly.pm >
Here is the information I've at hand now... bash-3.00# which perl /usr/local/bin/perl bash-3.00# which cpan /usr/local/bin/cpan bash-3.00# perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.10, archname=sun4-solaris uname='sunos 5.10 generic_118822-30 sun4u sparc sunw,ultra-5_10 solaris ' config_args='-Dcc=gcc' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/opt/gnu/include' ccversion='', gccversion='3.4.6', gccosandvers='solaris2.10' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib ' libpth=/usr/local/lib /opt/gnu/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under solaris Compiled at May 8 2007 03:33:15 @INC: /usr/local/lib/perl5/5.8.8/sun4-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . bash-3.00# perldoc -l Readonly No documentation found for "Readonly".
Subject: Re: [rt.cpan.org #42093] unable to install Perl-Critic-1.094001
Date: Fri, 2 Jan 2009 00:50:10 -0800
To: bug-Perl-Critic [...] rt.cpan.org
From: Jeffrey Thalhammer <jeff [...] imaginative-software.com>
Can you ping me on AOL-IM or Skype (I'm "thaljef") ? Jeffrey Thalhammer Imaginative Software Systems vcard: http://www.imaginative-software.com/contact/jeff.vcf
Thank you Jeff helping online over skype to resolve the problem. Infact, it is our environment which is creating problem in failing to install the module.
This turned out to be a problem in the user's environment.