Skip to content

Instantly share code, notes, and snippets.

@lifofernandez
Last active December 6, 2021 14:07
Show Gist options
  • Save lifofernandez/5f3378af6500c8e4ea0ab94885030962 to your computer and use it in GitHub Desktop.
Save lifofernandez/5f3378af6500c8e4ea0ab94885030962 to your computer and use it in GitHub Desktop.
CPAN fix "Do not have write permissions on '/usr/bin'" OSX El Capitan problem

CPAN log

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Solution: http://www.perlmonks.org/?node_id=1144321

Aperently in this OSX version, applications can not whrite on /usr with temporary sudoer rights.

Start CPAN interactive shell

$ cpan

Change CPAN configuration

cpan> o conf makepl_arg "INSTALLBIN=/usr/local/bin INSTALLSCRIPT=/usr/local/bin"

Save changes

cpan> o conf commit

Quit CPAN interactive shell

cpan> quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment