简体   繁体   中英

Perl Devel::REPL re.pl command not found

Is there any instruction on installing Devel::Repl? I use cpan Devel::REPL command to have it installed but I cannot launch it using the re.pl command (as suggested https://metacpan.org/pod/Devel::REPL )

My cpan command comes from the perl v5.36 installed from homebrew. Is there something I have to do in order to be able to run re.pl? Like adding ~/.cpan to my system $PATH? 在此处输入图像描述

I used the cpan Devel::REPL command to have it installed but I cannot launch it using the re.pl command Is there something I have to do in order to be able to run re.pl ?

Yes, re.pl is installed in the bin directory of the perl installation directory. This directory is not automatically added to the search path by homebrew, so you need to add it manually. Add the following line to your ~/.zshrc file:

export PATH="/opt/homebrew/Cellar/perl/5.36.0/bin${PATH+:$PATH}"

then open a new terminal. You should now be able to type re.pl at the prompt to enter the REPL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM