#!/bin/bash

working_dir=`dirname $0`

cd $working_dir

set -u
set -o  errexit

TMPDIR="." ./foreign_modules/perlbrew_install.sh
set +u
source ~/perl5/perlbrew/etc/bashrc
set -u
perlbrew init
nice perlbrew install perl-5.14.2 -Duseithreads -Dusemultiplicity -Duse64bitint -Duse64bitall -Duseposix -Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
perlbrew switch perl-5.14.2
perlbrew install-cpanm
perlbrew lib create mediacloud
perlbrew switch perl-5.14.2@mediacloud

#!/bin/bash

working_dir=`dirname $0`

cd $working_dir

set -u
set -o  errexit

if [ `uname -m` != 'x86_64' ]; then
   echo "Install failed, you must have a 64 bit OS"
fi

TMPDIR="." ./foreign_modules/perlbrew_install.sh
set +u
source ~/perl5/perlbrew/etc/bashrc
set -u
perlbrew init
nice perlbrew install perl-5.14.2 -Duseithreads -Dusemultiplicity -Duse64bitint -Duse64bitall -Duseposix -Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
perlbrew switch perl-5.14.2
perlbrew install-cpanm
perlbrew lib create mediacloud
perlbrew switch perl-5.14.2@mediacloud

Abort the install early if we don't detect a 64bit OS
Abort the install early if we don't detect a 64bit OS

