Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpanm - command not found - macOS, perl 5.28 #217

Closed
tddschn opened this issue May 25, 2019 · 6 comments
Closed

cpanm - command not found - macOS, perl 5.28 #217

tddschn opened this issue May 25, 2019 · 6 comments

Comments

@tddschn
Copy link

tddschn commented May 25, 2019

I was on mac and following the instruction in the README.

  1. install perl: I didn't do anything since perl was already installed on mac (version 5.28)
  2. install cpanminus: I used cpan to do it and cpanminus was successfully installed.
$ cpan -i App::cpanminus
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/Users/me/.cpan/Metadata'
  Database was generated on Sat, 25 May 2019 02:56:31 GMT
App::cpanminus is up to date (1.7044).
$cpanm
zsh: command not found: cpanm

I don't know a lot about perl or cpan/cpanm, and couldn't figure out what's wrong.

can anyone help me with this?

thanks in advance!!

@bollwarm
Copy link
Collaborator

cpanm not cpamn

@tddschn
Copy link
Author

tddschn commented May 27, 2019

well, I mistyped it.
image

@myjeshurun
Copy link

I have the same problem too.

@hexsum
Copy link
Owner

hexsum commented Aug 1, 2019

cpan -I App::cpanminus is specially for root user.
you can try this way to install cpanm curl -kL http://cpanmin.us | perl - App::cpanminus
this will install cpanm into ~/perl5/bin/cpanm

@hexsum hexsum closed this as completed Aug 1, 2019
@stradicat
Copy link

I installed it that way, but it's still not found.

My zshrc contains the userland config line eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)".

@somk
Copy link

somk commented Jun 15, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants