I have changed the owner of the folder to username and works.
Maybe will hep someone else:
/Library/Caches$> sudo chown username Homebrew/
~$> brew install rbenv
==> Downloading https://github.com/sstephenson/rbenv/tarball/v0.3.0
########################################################################
100.0%
==> Caveats
To enable shims and autocompletion, add rbenv init to your profile:
if which rbenv > /dev/null; then eval “$(rbenv init -)”; fi
==> Summary
/usr/local/Cellar/rbenv/0.3.0: 32 files, 160K, built in 6 seconds
Inspect or clean up the working tree at
/var/folders/v6/lqcgrgmd5nx5qtks6vyhzm0m0000gn/T/ruby-build.20120722171222.19980
Results logged to
/var/folders/v6/lqcgrgmd5nx5qtks6vyhzm0m0000gn/T/ruby-build.20120722171222.19980.log
/Users/username/.rbenv/versions/1.9.2-p290/include: Not a
directory
Is your username really username? And why doesnt the above directory
exist?
The problems you’re having are indicative of your unix knowledge being
at a pretty early phase. That’s really cool, and it’s good you’re
learning, but you may want to stop this project for a day to read up on
file and directory permissions. That knowledge will help you with these
issues.
Go through whatever tutorial you were following and work out why you
added
a .rbenv. It’ll list some advantages of having one, and that’ll inform
your
future behavior, which is good. It’s how we accumulate dev knowledge.
I’m glad you’re up and running!
Be good
Jam
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.