ChrissyToph has asked for the wisdom of the Perl Monks concerning the following question:

Hey everyone,

I'm a total noob with PERL so apologies in advance for any silly questions/general noobiness.

I was trying to install a piece of software and it was asking me to update to the latest version of PERL so I tried that, only to now have screwed up my terminal entirely. I'm a QA so occasionally I make some file changes and commits, which aren't saving at the moment due to my screw up so I desperately need help.

I use a MacBookPro with macOS Mojave 10.14.6 installed. When I open a new terminal, I get the error -bash: /Users/win/perl5/perlbrew/etc/bashrc: No such file or directory Reading info online, I've now tried to reinstall PERL by running \curl -L https://install.perlbrew.pl | bash It outputs that it's installed and that I need to run source ~/perl5/perlbrew/etc/bashrc/ When I run this, I get back ERROR: The installation "perl-5.28.0" is unknown

I've tried to navigate to the folder and delete the perl 5.28.0 folder but that doesn't make a difference. Any advice would be much much appreciated, thank you!

Replies are listed 'Best First'.
Re: ERROR: The installation "perl-5.28.0" is unknown.
by daxim (Curate) on Sep 25, 2019 at 10:48 UTC
    I've tried to navigate to the folder and delete the perl 5.28.0 folder but that doesn't make a difference.
    To complete the deinstallation, remove the perlbrew-related lines from $HOME/.bashrc, and for good measure check the directory paths contained in the environment variables PERLBREW_HOME and PERLBREW_ROOT and delete those if existing.

    Then log out. Afterwards type perlbrew should show neither a filename path nor a bash function.

      Absolute legend - that worked perfectly, thank you so much!
Re: ERROR: The installation "perl-5.28.0" is unknown.
by marto (Cardinal) on Sep 25, 2019 at 10:35 UTC

    What is the contents of ~/perl5/perlbrew/perls? 5.28.0 isn't the latest version of Perl. You don't show how you tried to set this up.

    " It outputs that it's installed and that I need to run source ~/perl5/perlbrew/etc/bashrc/ When I run this, I get back"

    Are you sure it didn't ask you to add that line to a file?

    Append the following piece of code to the end of your ~/.profile and s +tart a new shell, perlbrew should be up and fully functional from the +re: source ~/perl5/perlbrew/etc/bashrc

    You'll experience problems if you don't follow the instructions.