The 'chruby' command can't be found

1.8k Views Asked by At

I'm using Hackintosh on my HP laptop to run flutter apps on the iOS simulator. Everything was fine until I got an error saying that I need to update cocoa pods. When I tried to do so, it said that I don't have write permissions for the 'ruby'. Upon googling this error, I run these commands: brew install chruby ruby-install ruby-install ruby They run successfully but I got theses warning messages: enter image description here I added the paths to .zshrc file as shown: enter image description here When I tried to run the command chruby 3.2.2 to switch to ruby version 3.2.2, which has been installed, it said that the 'chruby' command isn't recognized.

I tried to add the paths to the .bash_profile file, but I couldn't find it in the hidden files.

0

There are 0 best solutions below