You don't have write permissions for the / usr/bin directory

using sudo gem install jekyll when installing jekyll has the following error

clipboard.png

:
sudo gem install -n /usr/local/bin jekyll

clipboard.png

is there any other way?
May.22,2021

in the OSX system, / usr/bin belongs to system-level protection. no one can write , including root , which is absolutely forbidden. The only way is to install it into / usr/local/bin as you did above.

Why is it so strict? Because the / usr/bin directory is so sensitive that any virus wants to conquer it, Apple strictly forbids it.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bfdf-2c2d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bfdf-2c2d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?