Sunday, March 27, 2011

About perl

On Windows

Is preferred to use the open source project Strawberry.
Download and run the installer.
You can refer to their wiki.

Set the environment variables first:
-EDITOR=%windir%\system32\notepad.exe
-HOME
-LANG=en_US.UTF8
-TERM
-VISUAL (i.e. D:\GNU\Notepad++\notepad++.exe)
-PERL5SHELL=%windir%\system32\cmd.exe
-PERL5LIB=C:\strawberry\perl\lib\

On other than Windows

Set the environment variables first:
-EDITOR=/usr/bin/nano
-HOME
-LANG=en_US.UTF8
-TERM
-VISUAL
-PERL5SHELL
-PERL5LIB=/usr/lib/perl5/

Use CPAN

Update CPAN in CPAN:
cpan> install CPAN
cpan> install Bundle::CPAN
cpan> q

Install PPM using CPAN:
cpan> d /ppm/
Choose and go.

Add you corresponding repositories on PPM as:
set repository MSWin32x86 http://ppm4.activestate.com/MSWin32-x86/5.12/1200/
set repository UWinniePack12xx http://cpan.uwinnipeg.ca/PPMPackages/12xx/
set repository TrouchellePPM12 http://trouchelle.com/ppm12/
set repository WxPerl http://www.wxperl.co.uk/repository/
set repository Bribes http://www.bribes.org/perl/ppm/
set repository BioPerlDist http://bioperl.org/DIST
set repository BioPerlRC http://bioperl.org/DIST/RC
set repository tcool http://ppm.tcool.org/archives/
set repository GtkPerl http://gtk2-perl.sourceforge.net/win32/ppm/

Add your CPAN modules as:

install Captcha::reCAPTCHA
install Class::Accessor
install Class::Autouse
install Class::Data::Inheritable
install Class::Trigger
install Compress::Zlib
install Convert::Binary::C
install Crypt::DH

install DBD::mysql

install DBI

install DB_File

install Data::Stag
install Data::Stag::XMLWriter

install DateTime

install Digest::HMAC_SHA1
install Digest::MD5
install Digest::SHA1
install File::Temp

install GD
install GD::Graph
install GTop
install GnuPG::Interface

install Graph
install Graph::Directed

install HTML::Entities
install HTML::Parser
install HTML::Tagset
install HTML::Template
install HTTP::Request::Common

install IO::String
install IO::WrapTie
install IP::Country::Fast
install Image::Magick
install Image::Size
install LWP::Simple
install LWP::UserAgent
install List::MoreUtils
install MIME::Lite
install MIME::Words
install Mail::Address
install Mail::GnuPG
install Math::BigInt::GMP
install Net::DNS
install Proc::ProcessTable
install RPC::XML
install SOAP::Lite
install SVG
install Set::Scalar
install Spreadsheet::ParseExcel

install Statistics::Frequency
install Storable
install String::CRC32
install Text::Shellwords
install Text::Wrap
install Text::vCard

install URI::Fetch
install URI::URL

install Unicode::CheckUTF8
install Unicode::MapUTF8

install XML::Atom
install XML::DOM
install XML::DOM::XPath
install XML::LibXML
install XML::Parser
install XML::Parser::PerlSAX
install XML::RSS
install XML::SAX
install XML::SAX::Base
install XML::SAX::Writer
install XML::Simple
install XML::Twig
install XML::Writer


BioPerl

Follow their wiki.

Install dependencies as:

install Ace
install Bio::ASN1::EntrezGene


No comments:

HTMLCode

HTMLCode Content