Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: cpan problems when /tmp and /var are existing symbolic links

by davido (Cardinal)
on Jan 23, 2019 at 08:39 UTC ( #1228860=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1228860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2019-05-23 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (146 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!