When I run a perl script
pdfannotextractor.pl in bash, I want to set the value of a variable
TEXMFVAR needed by the script, and pass it to the script.
I googled around, and thought I found a solution:
$ TEXMFVAR=/usr/local/texlive/2014/texmf-var sudo /usr/local/texlive/2014/texmf-dist/scripts/pax/pdfannotextractor.pl --install
But it seems
TEXMFVAR is still empty in the script, because it creates a directory
$TEXMFVAR under my current dir. I am puzzled.
$ ls \$TEXMFVAR/* $TEXMFVAR/ls-R $TEXMFVAR/scripts: pax
Do I need to
export the variable?
Is this a problem of usage of environment variables?
Note: My original problem is about texlive and here https://tex.stackexchange.com/questions/243889/error-installing-pdfbox-library-for-pax-package