I installed perlbrew on Linux backtrack on my virtual machine. and I have perl 5.10.1 installed on my backtrack. but when I write perlbrew command in the terminal it shows the following message: perlbrew: command not found
What is wrong with my system?
When you installed perlbrew
, you were instructed to add something like
source ~/perl5/perlbrew/etc/bashrc
to your shell startup script (.bashrc
). It appears that you did not do this, or that you did not restart your shell after doing this.
The standard sudo apt install perlbrew
on a fresh Ubuntu18 install appears to be borken (and Ubuntu20 too if my memory isn't malfunctioning). And has been so for some time. I couldn't get it to work even if I appended source ~/perl5/perlbrew/etc/bashrc
to ~/.bash_profile and/or ~/.bashrc and started a new bash. And also did perlbrew init
.
What eventually worked for me is curl -L https://install.perlbrew.pl | bash
taken from https://perlbrew.pl/ After this which perlbrew
shows the correct /home/me/perl5/perlbrew/bin/perlbrew
instead of /usr/bin/perlbrew
. And now I can see the whole list of available perl5 versions with perlbrew available
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With