Skip to content

Instantly share code, notes, and snippets.

@sestaton
Last active October 31, 2015 00:31
Show Gist options
  • Save sestaton/10546662 to your computer and use it in GitHub Desktop.
Save sestaton/10546662 to your computer and use it in GitHub Desktop.
install perlbrew, perl, cpanminus, and transposome on a system with a broken wget
#!/bin/bash
##NB: Follow these instructions for installing Transposome: http://sestaton.github.io/Transposome
## What follows is to help users on really old Linux systems with a broken wget and no admin privileges.
export PERLBREW_ROOT=$HOME/perl5/perlbrew
export PERLBREW_HOME=$HOME/.perlbrew
# install perlbrew and patchperl
echo "Downloading perlbrew..."
\curl -kL http://install.perlbrew.pl |sed 's/curl\ -f/curl\ -k\ -f/g' |bash
\curl -kL https://raw.github.com/gugod/patchperl-packing/master/patchperl > $PERLBREW_ROOT/bin/patchperl
echo "Done with perlbrew."
echo "Downloading patchperl..."
chmod 755 $PERLBREW_ROOT/bin/patchperl
echo "Done with patchperl."
## download and compile perl
perlbrew --notest install perl-5.20.1 -Dusethreads
source $PERLBREW_ROOT/etc/bashrc
perlbrew use perl-5.20.2
## install cpanminus
curl -kL cpanmin.us > $PERLBREW_ROOT/bin/cpanm
chmod 755 $PERLBREW_ROOT/bin/cpanm
## install Transposome
echo "Downloading Transposome..."
cpanm git://github.com/sestaton/Transposome.git
echo "Done with Transposome. Test your installation now by typing 'transposome --help'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment