Install Perl module on ubuntu

Install by cpan

cpan -i foo
Replace foo with the module name you want to install.

Install from source

Search the module on cpan.org
Download the source.
Let's use HTML::Entities for example.
You will get your search url:
http://search.cpan.org/~gaas/HTML-Parser-3.72/lib/HTML/Entities.pm
The source url will be:
http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-3.72.tar.gz

Make and install perl module

  tar -xvf HTML-Parser-3.72.tar.gz   
  cd HTML-Parser-3.72/ 
  perl Makefile.PL
  make
  sudo make install 

Comments

Popular posts from this blog

react-native run-android : do not build/update modified code(App.js)

react-native run-android : sun.security.provider.cert path.SunCertPathBuilderException : unable to find valid certification path to req uested target

How to fix error : no module named sendgrid when try to use sendgrid python lib in PHP.