Skip to content

Instantly share code, notes, and snippets.

@pscott-au
Forked from lifofernandez/osx_elcapitan_fix.md
Created October 22, 2018 17:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pscott-au/f8c14ef0d70fc2872483691f24bae171 to your computer and use it in GitHub Desktop.
Save pscott-au/f8c14ef0d70fc2872483691f24bae171 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