<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Install Perl Locally !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/37015/install-perl-locally?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/37015/install-perl-locally?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/37015/install-perl-locally</guid>
	<pubDate>Fri, 22 Jun 2018 05:26:42 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/37015/install-perl-locally</link>
	<title><![CDATA[Install Perl Locally !]]></title>
	<description><![CDATA[<code># To follow these instructions, we&#039;ll assume your system admins have already installed these essentials:
# Debian/Ubuntu system admins should run:
sudo apt-get install -y build-essential libexpat1-dev libssl-dev libmysqlclient-dev libxml2-dev
# RHEL/CentOS system admins should run:
sudo yum groupinstall -y &#039;Development Tools&#039;
sudo yum install -y expat-devel openssl-devel mysql-devel libxml2-devel

# Create a folder where you want to install different Perls, and cd into it:
# Note that it doesn&#039;t need to be your home folder. Put it wherever you want to maintain such software:
export PERL_BASE=&quot;$HOME/perl&quot;
mkdir -p $PERL_BASE
cd $PERL_BASE

# Download source tarball into a subfolder named src, and untar:
curl --create-dirs -L -o src/perl-5.24.1.tar.gz http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz
cd src
tar -zxf perl-5.24.1.tar.gz

# Configure and build, making sure that this non-standard location is baked into the perl binary:
cd perl-5.24.1
./Configure -des -Dprefix=$PERL_BASE/perl-5.24.1 -Dotherlibdirs=$PERL_BASE/perl-5.24.1/lib/perl5
make
make install

# Install dependencies for Ensembl API, VEP, OncoKB, and other tools we use here at MSKCC:
curl -sL https://cpanmin.us | $PERL_BASE/perl-5.24.1/bin/perl - --notest -l $PERL_BASE/perl-5.24.1 App::cpanminus JSON::Parse XML::Parser XML::Simple LWP LWP::Simple LWP::Protocol::https Archive::Extract Archive::Tar Archive::Zip CGI DBI Time::HiRes DBD::mysql Encode File::Copy::Recursive Perl::OSType Module::Metadata Statistics::Lite Tie::Autotie Tie::IxHash Log::Log4perl FindBin::Real Getopt::Long Catalyst::Runtime Catalyst::Devel List::Util Test::XML::Simple Test::XPath IO::String Bio::Perl version

# Set $PERL5LIB to find these libraries, and set $PATH to use this Perl instead of the system Perl:
export PERL5LIB=&quot;$PERL_BASE/perl-5.24.1/lib/perl5:$PERL_BASE/perl-5.24.1/lib/perl5/x86_64-linux:$PERL5LIB&quot;
export PATH=&quot;$PERL_BASE/perl-5.24.1/bin:$PATH&quot;

# You can add those 2 lines to the end of your `~/.bashrc` to make it persistent.
# But be sure to define `$PERL_BASE` in your `~/.bashrc` too.</code>]]></description>
	<dc:creator>Aaryan Lokwani</dc:creator>
</item>

</channel>
</rss>