<?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: Installing Perl environment on Linux]]></title>
	<link>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux?</link>
	<atom:link href="https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux</guid>
	<pubDate>Tue, 26 Dec 2017 21:21:50 -0600</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux</link>
	<title><![CDATA[Installing Perl environment on Linux]]></title>
	<description><![CDATA[<p>By using&nbsp;<code>plenv</code>, you can easily install and switch among different version of Perl. This will be installed under your home directory in<code>~/.plenv</code>.</p><h4>Install latest Perl (with supporting multithreading) and CPANMinus.</h4><pre><code> $ cd
 $ git clone git://github.com/tokuhirom/plenv.git ~/.plenv
 $ git clone git://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/
 $ echo 'export PATH="$HOME/.plenv/bin:$PATH"' &gt;&gt; ~/.bashrc
 $ echo 'eval "$(plenv init -)"' &gt;&gt; ~/.bashrc
 $ source ~/.bashrc
 $ plenv install 5.18.1 -Dusethreads
 $ plenv rehash
 $ plenv global 5.18.1
 $ plenv install-cpanm
</code></pre><ul>
<li><code>git</code>&nbsp;is a distributed revision control and source code management software which can help you to download files from GitHub server.</li>
<li><code>echo</code>&nbsp;means "print".</li>
<li><code>&gt;&gt;</code>&nbsp;means adding the output into the end of the file, while&nbsp;<code>&gt;</code>&nbsp;means adding the output by overwriting the whole file. Please use<code>&gt;</code>&nbsp;with additional cares.</li>
<li>In Linux system, there are two types of outputs when you execute a command. One is called standard output (or sometimes STDOUT for short), and the other is a standard error (STDERR).&nbsp;<code>1&gt;</code>&nbsp;is for STDOUT only,&nbsp;<code>2&gt;</code>&nbsp;is for STDERR only, and&nbsp;<code>&amp;&gt;</code>means for both. In default&nbsp;<code>&gt;</code>&nbsp;is the same to&nbsp;<code>1&gt;</code>.</li>
<li><code>exec</code>&nbsp;is execution.</li>
<li>Remember to install Perl in supporting multithreading (with option&nbsp;<code>-Dusethreads</code>), which is important for many NGS analysis packages (e.g. Trinity). In this setting, you can use multiple CPU for Perl software.</li>
<li>Install the CPAN (Comprehensive Perl Archive Network) manager software, CPANMinus, by&nbsp;<code>install-cpanm</code>.</li>
</ul><p>You can use&nbsp;<code>plenv global</code>&nbsp;and&nbsp;<code>plenv local</code>&nbsp;to change the different version of Perl to fulfil different needs of your Perl software.</p><p>For example, if the&nbsp;specific version of Perl is not compatible with your script, you can switch to the different version by:</p><pre><code> $ plenv local 
</code></pre><ul>
<li>It is similar to set the local version of your script language when you use&nbsp;<code>pyenv</code>&nbsp;and&nbsp;<code>rbenv</code>&nbsp;as the following.</li>
</ul><p>Put the following path into&nbsp;<code>~/.bashrc file</code>.</p><pre><code>export PERL5LIB="$HOME/.plenv/build/perl-5.18.1/lib"
</code></pre><h4>Install BioPerl and PerlIO::gzip</h4><p>CPANMinus is a very good Perl module manager, use&nbsp;<code>cpanm</code>&nbsp;to install BioPerl can save you a lot of time. Here are some useful modules:</p><pre><code>$ cpanm Bio::Perl
$ cpanm Bio::SearchIO
$ cpanm PerlIO::gzip<br /></code></pre><p><span>For more information, please visit:&nbsp;</span><a href="https://github.com/tokuhirom/plenv">https://github.com/tokuhirom/plenv</a></p><pre><code>&nbsp;</code></pre>]]></description>
	<dc:creator>biogeek</dc:creator>
</item>
<item>
	<guid isPermaLink='true'>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux#item-annotation-3429</guid>
	<pubDate>Tue, 10 Jul 2018 10:26:59 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux#item-annotation-3429</link>
	<title><![CDATA[Comment by Jit]]></title>
	<description><![CDATA[<p>You migth need to install this&nbsp;</p>
<p>&nbsp;sudo conda install -c bioconda perl-app-cpanminus</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink='true'>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux#item-annotation-3428</guid>
	<pubDate>Tue, 10 Jul 2018 10:25:15 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux#item-annotation-3428</link>
	<title><![CDATA[Comment by Jit]]></title>
	<description><![CDATA[<p>If Conda is installed&nbsp;</p>
<p>&nbsp;</p>
<p>➜ parallelLastz git:(master) ✗ conda create -n myLocalPerl perl perl-app-cpanminus<br>Solving environment: done</p>
<p>## Package Plan ##</p>
<p>environment location: /home/urbe/anaconda3/envs/myLocalPerl</p>
<p>added / updated specs: <br> - perl<br> - perl-app-cpanminus</p>
<p><br>The following packages will be downloaded:</p>
<p>package | build<br> ---------------------------|-----------------<br> perl-threaded-5.22.0 | 10 11.2 MB bioconda<br> perl-app-cpanminus-1.7039 | 2 220 KB bioconda<br> ------------------------------------------------------------<br> Total: 11.4 MB</p>
<p>The following NEW packages will be INSTALLED:</p>
<p>libgcc: 7.2.0-h69d50b8_2 <br> libgcc-ng: 7.2.0-hdf63c60_3 <br> libstdcxx-ng: 7.2.0-hdf63c60_3 <br> perl: 5.26.2-h470a237_0 conda-forge<br> perl-app-cpanminus: 1.7039-2 bioconda <br> perl-threaded: 5.22.0-10 bioconda</p>
<p>Proceed ([y]/n)? Y</p>
<p><br>Downloading and Extracting Packages<br>perl-threaded-5.22.0 | 11.2 MB | ############################################### | 100% <br>perl-app-cpanminus-1 | 220 KB | ############################################### | 100% <br>Preparing transaction: done<br>Verifying transaction: done<br>Executing transaction: done<br>#<br># To activate this environment, use:<br># &gt; source activate myLocalPerl<br>#<br># To deactivate an active environment, use:<br># &gt; source deactivate<br>#</p>
<p>➜ parallelLastz git:(master) ✗ source activate myLocalPerl<br>(myLocalPerl) ➜ parallelLastz git:(master) ✗ cpanm Parallel::ForkManager<br>--&gt; Working on Parallel::ForkManager<br>Fetching http://www.cpan.org/authors/id/Y/YA/YANICK/Parallel-ForkManager-1.19.tar.gz ... OK<br>Configuring Parallel-ForkManager-1.19 ... OK<br>==&gt; Found dependencies: Test::Warn<br>--&gt; Working on Test::Warn<br>Fetching http://www.cpan.org/authors/id/B/BI/BIGJ/Test-Warn-0.36.tar.gz ... OK<br>Configuring Test-Warn-0.36 ... OK<br>==&gt; Found dependencies: Sub::Uplevel<br>--&gt; Working on Sub::Uplevel<br>Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-0.2800.tar.gz ... OK<br>Configuring Sub-Uplevel-0.2800 ... OK<br>Building and testing Sub-Uplevel-0.2800 ... OK<br>Successfully installed Sub-Uplevel-0.2800<br>Building and testing Test-Warn-0.36 ... OK<br>Successfully installed Test-Warn-0.36<br>Building and testing Parallel-ForkManager-1.19 ... OK<br>Successfully installed Parallel-ForkManager-1.19<br>3 distributions installed<br>(myLocalPerl) ➜ parallelLastz git:(master) ✗ perl parallelLastz.pl <br>Can't locate Bio/SeqIO.pm in @INC (you may need to install the Bio::SeqIO module) (@INC contains: /home/urbe/perl5 /home/urbe/anaconda3/envs/myLocalPerl/lib/site_perl/5.26.2/x86_64-linux-thread-multi /home/urbe/anaconda3/envs/myLocalPerl/lib/site_perl/5.26.2 /home/urbe/anaconda3/envs/myLocalPerl/lib/5.26.2/x86_64-linux-thread-multi /home/urbe/anaconda3/envs/myLocalPerl/lib/5.26.2 .) at parallelLastz.pl line 10.<br>BEGIN failed--compilation aborted at parallelLastz.pl line 10.<br>(myLocalPerl) ➜ parallelLastz git:(master) ✗ cpanm Bio::SeqIO <br>--&gt; Working on Bio::SeqIO<br>Fetching http://www.cpan.org/authors/id/C/CJ/CJFIELDS/BioPerl-1.007002.tar.gz ... OK<br>==&gt; Found dependencies: Module::Build<br>--&gt; Working on Module::Build<br>Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4224.tar.gz ... OK<br>Configuring Module-Build-0.4224 ... OK<br>Building Module-Build-0.4224 ... OK<br>Successfully installed Module-Build-0.4224<br>Configuring BioPerl-1.007002 ... OK<br>==&gt; Found dependencies: Data::Stag, URI::Escape, IO::String, Test::Most<br>--&gt; Working on Data::Stag<br>Fetching http://www.cpan.org/authors/id/C/CM/CMUNGALL/Data-Stag-0.14.tar.gz ... OK<br>Configuring Data-Stag-0.14 ... OK<br>==&gt; Found dependencies: IO::String<br>--&gt; Working on IO::String<br>Fetching http://www.cpan.org/authors/id/G/GA/GAAS/IO-String-1.08.tar.gz ... OK<br>Configuring IO-String-1.08 ... OK<br>Building and testing IO-String-1.08 ... OK<br>Successfully installed IO-String-1.08<br>Building and testing Data-Stag-0.14 ... OK<br>Successfully installed Data-Stag-0.14<br>--&gt; Working on URI::Escape<br>Fetching http://www.cpan.org/authors/id/E/ET/ETHER/URI-1.74.tar.gz ... OK<br>Configuring URI-1.74 ... OK<br>==&gt; Found dependencies: Test::Needs<br>--&gt; Working on Test::Needs<br>Fetching http://www.cpan.org/authors/id/H/HA/HAARG/Test-Needs-0.002005.tar.gz ... OK<br>Configuring Test-Needs-0.002005 ... OK<br>Building and testing Test-Needs-0.002005 ... OK<br>Successfully installed Test-Needs-0.002005<br>Building and testing URI-1.74 ... OK<br>Successfully installed URI-1.74<br>--&gt; Working on Test::Most<br>Fetching http://www.cpan.org/authors/id/O/OV/OVID/Test-Most-0.35.tar.gz ... OK<br>Configuring Test-Most-0.35 ... OK<br>==&gt; Found dependencies: Test::Deep, Exception::Class, Test::Exception, Test::Differences<br>--&gt; Working on Test::Deep<br>Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Deep-1.128.tar.gz ... OK<br>Configuring Test-Deep-1.128 ... OK<br>Building and testing Test-Deep-1.128 ... OK<br>Successfully installed Test-Deep-1.128<br>--&gt; Working on Exception::Class<br>Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Exception-Class-1.44.tar.gz ... OK<br>Configuring Exception-Class-1.44 ... OK<br>==&gt; Found dependencies: Devel::StackTrace, Class::Data::Inheritable<br>--&gt; Working on Devel::StackTrace<br>Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Devel-StackTrace-2.03.tar.gz ... OK<br>Configuring Devel-StackTrace-2.03 ... OK<br>Building and testing Devel-StackTrace-2.03 ... OK<br>Successfully installed Devel-StackTrace-2.03<br>--&gt; Working on Class::Data::Inheritable<br>Fetching http://www.cpan.org/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz ... OK<br>Configuring Class-Data-Inheritable-0.08 ... OK<br>Building and testing Class-Data-Inheritable-0.08 ... OK<br>Successfully installed Class-Data-Inheritable-0.08<br>Building and testing Exception-Class-1.44 ... OK<br>Successfully installed Exception-Class-1.44<br>--&gt; Working on Test::Exception<br>Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Exception-0.43.tar.gz ... OK<br>Configuring Test-Exception-0.43 ... OK<br>Building and testing Test-Exception-0.43 ... OK<br>Successfully installed Test-Exception-0.43<br>--&gt; Working on Test::Differences<br>Fetching http://www.cpan.org/authors/id/D/DC/DCANTRELL/Test-Differences-0.64.tar.gz ... OK<br>Configuring Test-Differences-0.64 ... OK<br>==&gt; Found dependencies: Capture::Tiny, Text::Diff<br>--&gt; Working on Capture::Tiny<br>Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz ... OK<br>Configuring Capture-Tiny-0.48 ... OK<br>Building and testing Capture-Tiny-0.48 ... OK<br>Successfully installed Capture-Tiny-0.48<br>--&gt; Working on Text::Diff<br>Fetching http://www.cpan.org/authors/id/N/NE/NEILB/Text-Diff-1.45.tar.gz ... OK<br>Configuring Text-Diff-1.45 ... OK<br>==&gt; Found dependencies: Algorithm::Diff<br>--&gt; Working on Algorithm::Diff<br>Fetching http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-1.1903.tar.gz ... OK<br>Configuring Algorithm-Diff-1.1903 ... OK<br>Building and testing Algorithm-Diff-1.1903 ... OK<br>Successfully installed Algorithm-Diff-1.1903<br>Building and testing Text-Diff-1.45 ... OK<br>Successfully installed Text-Diff-1.45<br>Building and testing Test-Differences-0.64 ... OK<br>Successfully installed Test-Differences-0.64<br>Building and testing Test-Most-0.35 ... OK<br>Successfully installed Test-Most-0.35<br>Building and testing BioPerl-1.007002 ... OK<br>Successfully installed BioPerl-1.007002<br>16 distributions installed</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink='true'>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux#item-annotation-3427</guid>
	<pubDate>Tue, 10 Jul 2018 10:01:47 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/34864/installing-perl-environment-on-linux#item-annotation-3427</link>
	<title><![CDATA[Comment by Jit]]></title>
	<description><![CDATA[<pre><code><span>curl </span><span>-</span><span>L http</span><span>://</span><span>cpanmin</span><span>.</span><span>us </span><span>|</span><span> perl </span><span>-</span><span> </span><span>--</span><span>sudo </span><span>App</span><span>::</span><span>cpanminus</span></code><br><br></pre>
<p>The above is installing the "zero configuration CPAN modules installer" called&nbsp;<code>cpanm</code>. (Can take several minutes to install - don't break the process)</p>
<p>and after - simply:</p>
<pre><code><span>cpanm </span><span>Foo</span><span>
cpanm </span><span>Module</span><span>::</span><span>One</span><span>
cpanm </span><span>Another</span><span>::</span><span>Module</span></code></pre>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>