Help! You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory


I’m trying to install rails and I keep getting this error. “You don’t have write permissions for the /Library/Ruby/Gems/2.6.0 directory”.

I followed everything step by step and now I’m not sure what to do. please help!


Hey @mistabelize

It looks like Ruby has installed at the system rather than the user level. Can you share the output of echo $PATH in your terminal please?




Can you also confirm the output of which ruby please.