Created
February 25, 2021 05:35
-
-
Save myui/bc61366f09b8f778f65fb5241841ab6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set up CPAN | |
# Append the following lines to .bashrc / .profile | |
# PERL_DIR=$HOME/.perl | |
# export PERL_LOCAL_LIB_ROOT=$PERL_DIR:${PERL_LOCAL_LIB_ROOT} | |
# export PATH=$PERL_DIR/bin:$PATH | |
# export PERL5LIB=$PERL_DIR/lib/perl5 | |
# PERL_MB_OPT="--install_base \"${PERL_DIR}\""; export PERL_MB_OPT; | |
# PERL_MM_OPT="INSTALL_BASE=${PERL_DIR}"; export PERL_MM_OPT; | |
cpan | |
cpan App::cpanminus | |
cd /tmp | |
wget https://ftp.gnu.org/gnu/stow/stow-latest.tar.gz | |
tar xzf stow-latest.tar.gz | |
cd stow-2.3.1/ | |
cpanm Test::Output | |
# eval `perl -V:siteprefix` | |
# echo $siteprefix | |
# ./configure --prefix=$siteprefix && make | |
# make clean | |
./configure --with-pmdir=`PERL5LIB= perl -le 'print $INC[0]'` && make | |
perl Build.PL | |
./Build install | |
which stow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment