This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to perl module install

how to install the string:: approx ?

cpan String::Approx module
Can't locate strict.pm in @INC (you may need to install the strict module) (@INC contains: /usr/local/lib/perl5/site_perl/5.18.2/x86_64-linux /usr/local/lib/perl5/site_perl/5.18.2 /storage/mayank/perlinstallation/lib/perl5/5.18.2/x86_64-linux /storage/mayank/perlinstallation/lib/perl5/5.18.2 .) at /usr/local/bin/cpan line 6.
BEGIN failed--compilation aborted at /usr/local/bin/cpan line 6.
rna-seq

This is a problem with your perl installation, not related to the module you're trying to install. strict.pm is part of perl. If perl can't find it, it suggests your installation is somehow broken. Without more information, it's impossible to give you more help. What system are you using ? How was perl installed ?

What does that mean? Don't start overcomplicating things, by adding another perl version, a development version!, you are running 5.18.2 that should be fine!

This is a problem with your perl installation or your cpan configuration. Most solutions consist of just re-installing Perl. See http://www.perlmonks.org/?node_id=1080639 If the problem is only with cpan, but not with e.g.: perl -Mstrict -e'1;' it should be sufficient to re-configure cpan, start cpan then o conf init. Most likely, your perl include path contains an inaccessible directory, you can reproduce the behavior the follwing way:

mkdir -p /tmp/dontyou
chmod 000 /tmp/dontyou/
ls /tmp/dontyou
ls: dontyou: Permission denied
perl -I '/tmp/dontyou/' -Mstrict -e'1'
Can't locate strict.pm:   /tmp/dontyou/strict.pm: Permission denied.
BEGIN failed--compilation aborted.

strong textsame problem .pls help as

Can't locate strict.pm in @INC (you may need to install the strict module) (@INC contains: /usr/local/lib/perl5/site_perl/5.18.2/x86_64-linux /usr/local/lib/perl5/site_perl/5.18.2 /storage/mayank/perlinstallation/lib/perl5/5.18.2/x86_64-linux /storage/mayank/perlinstallation/lib/perl5/5.18.2 .) at /usr/local/bin/cpan line 6. BEGIN failed--compilation aborted at /usr/local/bin/cpan line 6.

What did you do ? Did you check permissions on the directories as suggested ?

As another thing to look at, the presence of /usr/local/lib/perl5/site_perl/5.18.2/x86_64-linux and /storage/mayank/perlinstallation/lib/perl5/5.18.2/x86_64-linux in @INC makes me think that you may have two conflicting installations of perl. In this case, just use the system one (in /usr/local) and you should be OK (i.e. remove the perl installation in /storage).

Hello vigneshnivas09!

We believe that this post does not fit the main topic of this site.

Not a bioinformatics question.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

1 answer

I think you need to check your CPAN shell in perl

Log in to answer this question.