bash - Cannot create a symlink inside of /usr/bin even as sudo -


when try symlink binary in /usr/bin folder, operation not permitted error:

 sudo ln -s /usr/bin/python2.7 /usr/bin/python2 ln: /usr/bin/python2: operation not permitted 

even sudo, error.

el capitan's new system integrity protection feature prevents changes several core parts of os x, including of /usr, root. local customizations, such you're doing, belong in /usr/local instead. /usr/local/bin doesn't exist default, can create , put custom binaries (an aliases) in it:

sudo mkdir -p /usr/local/bin sudo ln -s /usr/bin/python2.7 /usr/local/bin/python2 

(note /usr/local/bin doesn't exist default, is in default path, create it, it'll searched commands.)

it's possible disable system integrity protection, it's best leave on , customization in more appropriate locations. see this apple.se question more details.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -