App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

Can't run self-upgrade

Open surfshopcart opened this issue 7 years ago • 1 comments

I've installed perlbrew on my VPS running CentOS 6.9 and I'm running into some problems. The /home/user/.perlbrew directory was not created but a file named 'perlbrew.BMp51k' was. I deleted that file and maually created the .perlbrew directory. After running the alias command, the init file was automatically created in the directory.

Now, when I run a command, I get errors. Here's an example:

$ perlbrew self-upgrade Can't exec "/tmp/perlbrew": Permission denied at /home/user/perl5/perlbrew/bin/perlbrew line 2306. Use of uninitialized value in scalar chomp at /home/user/perl5/perlbrew/bin/perlbrew line 2307. Use of uninitialized value in pattern match (m//) at /home/user/perl5/perlbrew/bin/perlbrew line 2308. Unable to detect version of new perlbrew!

I don't know what "tmp" folder it's talking about. /home/user/tmp has the proper permissions.

I've re-installed everything and I'm still having the same problems. Any idea why this is happening, or where I should look to fix it?

Thanks, Frank

surfshopcart avatar Jan 13 '18 05:01 surfshopcart

@surfshopcart the folder "/tmp" is the default place for perlbrew install to store some downloads.

If your account have no access permission to "/tmp" and/or you'd like to use /home/user/tmp, run export TMPDIR=/home/user/tmp before running self-upgrade.

gugod avatar Feb 01 '18 08:02 gugod