in reply to CPAN on El Capitan
Lots of comments, but few solutions. How about this:
After: "Do not have write permissions on '/usr/bin'"
Find the build directory in root's home. It will something like this directory:
/var/root/.cpan/build/CPAN-2.14-XXXXXXBecome root:
sudo -iand go to the directory:
cd /var/root/.cpan/build/CPAN-2.14-XXXXXXEdit the Makefile 2 places:
INSTALLBIN = /usr/bin --->>> INSTALLBIN = /usr/local/bin And: INSTALLSCRIPT = /usr/bin --->>> INSTALLSCRIPT = /usr/local/bin
Then run make:
make installThis will install cpan (and cpan-mirrors) in /usr/local/bin
|
|---|