How to install for a normal user? - adjust/elastex GitHub Wiki

Of course as with Perl in general, TIMTOWDI, but these are the recommended steps to install elastex for your current user without needing superuser privileges.

On Mac OS X, the following two preparation steps are needed:

  1. install homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. install cpanm with homebrew: brew install cpanm

From this point, these are the general installation steps:

  1. run cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
  2. add eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) to your shell's automatically sourced file:
  • detect your shell with: echo $SHELL, then:
    • if BASH: echo "$(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)" >> ~/.bashrc
    • if ZSH: echo "$(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)" >> ~/.zshrc
  1. install elastex and its dependencies: cpanm https://github.com/adjust/elastex.git