Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

perlbrew command not found

Tags:

perl

perlbrew

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?

like image 438
Sharukh Avatar asked Dec 07 '22 10:12

Sharukh


2 Answers

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.

like image 87
ikegami Avatar answered Jan 02 '23 02:01

ikegami


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.

like image 21
Kjetil S. Avatar answered Jan 02 '23 00:01

Kjetil S.