On Mac OSX I would recommend first installing hombrew’s ruby-env and then the latest version of ruby/gems
Then you can do:
gem install chef –no-ri –no-rdoc
gem install knife –no-ri –no-rdoc
I think by default these files go in these locations:
USERNAME.pem ~/.chef
validation.pem ~/.chef
knife has an interactive setup tool invoked by `knife configure`