Help - Search - Members - Calendar
Full Version: Perl Modules
The Planet Forums > Control Panels > Plesk
ukagg
Hi,

How can I check that, Libwww Module is installed on my Plesk server?

If it is not there, how can I install that?

Thanks
ukagg
joelmoss
Install the CPAN module which can install any perl module:
http://www.perl.com/CPAN/modules/by-module/CPAN/
ffeingol
Here is some doc from serverexpert.com on using the cpan module.

Frank
ukagg
I installed the cpan. It asked me a lot of questions, but I entered only default.

After installing cpan, I also installed the Bundle::LWP, Bundle:: DBI and MIME::Tools.

But still my perl applications are saying that DBI, LWP and Tools are missing.

However, cpan is saying that they are uptodate.

I could not understand what is going wrong. Please help.

Thanks
ukagg
ffeingol
ukagg,

It sounds as if there might be 2 versions of perl installed on your system. From the user that you used to install the modules, type:

which perl

that will give you the path to perl. Then take a look at the first line of one of your perl scripts that is not working. Does the path in that file match the path from the which command?

Frank
HostCrest
Perl Diver is a nice little script for checking your Perl configuration. http://www.scriptsolutions.com/programs/pe...perldiver.shtml
ukagg
Yes. I found 2 diffirent installation of perl. I think one is that came pre-installed, and another I installed unknowingly when I was installing CPAN.

Is there any harm in leaving both on the server, or is it better to remove one?

If it adviced to keep only one, then which one should I remove, and how?

Using perldiver.cgi, I found that, second one (which I installed accidently) has more modules installed.

Thanks a lot.
ukagg
ffeingol
It won't hurt to have 2 copies. It just takes disk space and could be a little confusing. OTOH, deleting the 2nd copy could be difficult to make sure you get all the pieces.

You should be able to get your script running then by just adjusting the first line of your cgi script to point to the 2nd copy of perl.


Frank
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.