Most Perl modules are prepared in Perl, some use XS (they are created in C) so they involve a C compiler. On the other hand, C compiler is disabled on all of our shared servers as it is a significant stability menace.

1. Right after opening the command console, you have to have to sort cpan. This way, you will accessibility the cpan console:
2. The syntax is the subsequent:
put in module::title
For illustration, we will put in the Day::Calc Perl module:
3. Most very likely, you will see this mistake message at the conclusion:
Cpan is configured to supply a single environment to Makefile.PL, and Makefile.PL is
choosing up a conflicting location from the natural environment.
Cpan Prefix is pre-configured as PREFIX=/home/Consumer/perl/usr
Even so, our servers’ ecosystem is configured to use /house/Person/perl5
As this kind of, simply just explain to cpan to quit specifying PREFIX. From within just the cpan
shell, run these instructions:
o conf makepl_arg '' o conf mbuildpl_arg '' o conf commit o conf make_arg '' o conf commit

4. Now really feel free to operate set up module::identify when once again.
In circumstance you see an error like under, you have to have to delete the former failed establish and consider once more:
In our instance, the error shows listing /dwelling/nctests/.cpan/construct/Date-Calc-6.4-hsg6j9

You can entry it by means of the cPanel File Supervisor or using an FTP customer and delete it:
5. This is a prosperous installation log:
Modules may well have dependencies on other modules (virtually generally on CPAN) and are not able to be set up with out them (or without the need of a particular edition of them).
At times, the installation will check with to install a module (or a few kinds), which has/have a dependence.
6. Following the installation do not neglect to sort exit in the cpan console to shut it and take out the lock file:
Otherwise, you may see this message soon after attempting to open up it all over again:
Just after Shall I try out to operate in downgraded method? (Y/n), sort n and stick to the directions.
You will need to kill a jogging cpan procedure and distant the lock file manually:

7. Eventually, you can open up the Perl Modules choice in cPanel and check for a new set up module.
Remember to Be aware: In purchase for the newly put in module to perform effectively, the pursuing lines should really be additional at the leading of your script:
#!/usr/bin/perl use cPanelUserConfig



or
#!/usr/bin/perlml
We hope that this post will aid you setting up Perl modules on our servers.
That’s it!
Recent Comments