For reasons I've never understood the Perl packages for Debian based Linux distributions (e.g. Debian, Ubuntu, Bio-Linux, etc.) have a separate package for LWP (libwww-perl) which is not installed by default.
So you have a choice, you can go the package based way and install the relevant Debian packages, for example:
sudo apt-get install libwww-perl
Alternatively, since you are interested in BioPerl, just install the BioPerl package, which will pull in the appropriate dependencies:
sudo apt-get install bioperl
Note: if you want the BioPerl Run package as well you will also need to install the 'bioperl-run' Debian package.
Or you can manage the installed Perl modules the CPAN way as suggested by Michael.
In my experience mixing the two approaches can cause problems, so to begin with you will want to pick one option and stick with it.
If you decide to go the package managed way, you may find the DebianMed and DebianScience/Biology package collections a helpful way to install bioinformatics, biology and medicine related packages. The 'med-bio' and 'science-biology' meta-packages (packages of packages) provide a useful starting point.
Please have a closer look at the error message. For me this is not a bioinformatics question. Hint you need to install on of those packages
Did you google the error message?
Once again, many thanks to Pierre and Michael for your prompt reply. I googled and it did not retrieve any answer understandable to me. Also, I tried the (perl ... LWP') and still no success. I have no experience at all in linux/ubuntu. I just tried to install bioperl and run it on ubuntu but it seems formidable for me. The tested script run flawlessly on biolinux.
Thanks,
Mohamed
As @Pierre and @Michael allude, the problem isn't with BioPerl but with missing dependencies (Michael's answer was to install
Bundle::LWP
from CPAN which would fix part of this, but you might also needIO::String
).If you don't have admin privileges you will need to set up a local or user-based library of perl modules, which is possible using local::lib. I also highly recommend cpanminus (aka cpanm) to make life easier.
If you do not have any experience with Linux and Ubuntu it will be very hard to install BioPerl correctly. It is very likely that you didn't install BioPerl correctly, otherwise the dependencies had been installed automatically. You need to consider one ore more of these points:
We cannot help you at the moment with the level of detail we are given.
Thanks everyone for your kind comments and suggestions. I will try what was mentioned here. If not, I'll stick to Biolinux. The computer is mine and I installed Ubuntu myself. I should have admin privilege on it. I'm coming from a long time in biology track and it took me ages to orient myself now in this new discipline (Linux/Ubuntu/Bioperl (or other programming)). But it is as suggested, I should first understand Linux system in more details.
Best regards,
Mohamed