in reply to cpan problems when /tmp and /var are existing symbolic links

I believe the tests for Archive::Zip utilize File::Temp, which discovers the tempdir using File::Spec. File::Spec suggests you can hint an alternate tempdir by setting the TMPDIR environment variable. Proof of concept:

  1. In your homedir create a directory named ~/tmp
  2. Execute TMPDIR=~/tmp perl -MFile::Spec::Functions=tmpdir -E 'say tmpdir()'

You will see your alternate tempdir returned. This is what Archive::Zip should actually use.

So you could possibly do this:

TMPDIR=~/tmp cpanm Archive::Zip

And if that doesn't work, built it yourself by downloading the archive from CPAN, extracting it to a directory, then:

perl Makefile.PL make TMPDIR=~/tmp make test make install

...or just cpanm -f, but those tests for linkdir do exist for a reason. ;)


Dave