in reply to Re^2: How can I find installed packages in a broken Perlbrew?
in thread How can I find installed packages in a broken Perlbrew?

"I changed ~/perl5 to ~/perl5-deactivated ... and that allowed me to run perl. ... If I change the directory back to perl5 ..."

Look in your PERLBREW_* environment variables. Perhaps you need to change instances of perl5-deactivated to perl5.

Also look in your ~/.bashrc (or equivalent). Maybe similar changes are needed there.

"~/perl5--deactivated/perlbrew$ bin/perlbrew version"

Is it ~/perl5-deactivated, or ~/perl5--deactivated, or something else?

— Ken

Replies are listed 'Best First'.
Re^4: How can I find installed packages in a broken Perlbrew?
by monsignor (Acolyte) on Dec 10, 2022 at 08:01 UTC

    Hi Ken

    I initially installed perlbrew and it created ~/perl, I did my upgrade and it ran into problems. The way I got things to the point that perl would run was to deactivate perlbrew by changing the name of the ~/perl directory. I didn't change anything else. When I start a shell I get errors because of the statements in the bashrc referencing a directory that doesn't exist.

    I don't know what is causing the library error I was getting. I don't know if just doing a reinstall of perlbrew over top of the old one (i.e. by changing the directory name back to ./perl will fix the problem and keep/upgrade any packages that I had previously installed. That's what I'm looking for guidance on.