Homebrew iProblem

Can anyone tell me what’s going on here ? I have reinstalled xCode and
homebrew and I still get the same error.

                                                                       ~$>

brew install rbenv
==> Downloading https://github.com/sstephenson/rbenv/tarball/v0.3.0
0.0%Warning:
Failed to create the file /Library/Caches/Homebrew/rbenv-0.3.0.tgz:
Warning: Permission denied
###############
21.1%
curl: (23) Failed writing body (0 != 2896)
Error: Download failed:
https://github.com/sstephenson/rbenv/tarball/v0.3.0
~$>

And brew doctor shos this error.

~$> brew doctor

Error: Experimental support for using Xcode without the “Command Line
Tools”.

Do a quick google search for how to install the xcode command line
tools. Should be an option in preferences somewhere. That should help.

On Jul 21, 2012, at 15:33 , Ja Tse wrote:

###############
21.1%
curl: (23) Failed writing body (0 != 2896)
Error: Download failed:
https://github.com/sstephenson/rbenv/tarball/v0.3.0
~$>

These are two separate errors. Fix the xcode one first to make sure that
it isn’t masking a permissions error.

And brew doctor shos this error.

~$> brew doctor

Error: Experimental support for using Xcode without the “Command Line
Tools”.

Xcode → Prefs → downloads → components → command-line tools

I have installed the xCode command-line and brew doctor says all ok,
however I am still getting the error from brew when I try to install
rbenv.

~$> brew install rbenv
==> Downloading https://github.com/sstephenson/rbenv/tarball/v0.3.0
0.0%Warning:
Failed to create the file /Library/Caches/Homebrew/rbenv-0.3.0.tgz:
Warning: Permission denied
####################
28.5%
curl: (23) Failed writing body (0 != 3909)
Error: Download failed:
https://github.com/sstephenson/rbenv/tarball/v0.3.0
~$> brew doctor
Your system is raring to brew.
~
$>

On Jul 22, 2012, at 6:37 AM, Ja Tse [email protected] wrote:

####################
Posted via http://www.ruby-forum.com/.

Ryan answered this; you have a permissions issue. Change the permissions
on /Library/Caches/Homebrew.

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

Jam

I know this sounds a silly question but what shour I set the permission
to ? at the moment the folder its empty.

And this is what it looks like.

/Library/Caches$> ls -la
total 1552
.
.
.
drwxr-xr-x 2 root admin 68 28 Jul 2011 Homebrew
.
.
.

Actually I still have a problem. Anyone seen this before ?

~$> rbenv install 1.9.2-p290
Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
Installing yaml-0.1.4…

BUILD FAILED

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

Last 10 log lines:
Making all in src
/bin/sh …/libtool --tag=CC --mode=compile /usr/bin/gcc-4.2
-DHAVE_CONFIG_H -I. -I… -I…/include
-I’/Users/username/.rbenv/versions/1.9.2-p290/include’ -g -O2 -MT
api.lo -MD -MP -MF .deps/api.Tpo -c -o api.lo api.c
/bin/sh …/libtool --tag=CC --mode=compile /usr/bin/gcc-4.2
-DHAVE_CONFIG_H -I. -I… -I…/include
-I’/Users/username/.rbenv/versions/1.9.2-p290/include’ -g -O2 -MT
reader.lo -MD -MP -MF .deps/reader.Tpo -c -o reader.lo reader.c
libtool: compile: /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I…
-I…/include -I/Users/username/.rbenv/versions/1.9.2-p290/include -g -O2
-MT reader.lo -MD -MP -MF .deps/reader.Tpo -c reader.c -fno-common
-DPIC -o .libs/reader.o
cc1: error: /Users/username/.rbenv/versions/1.9.2-p290/include: Not a
directory
make[2]: *** [reader.lo] Error 1
make[2]: *** Waiting for unfinished jobs…
make[2]: *** [api.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

On Jul 22, 2012, at 10:15 AM, Ja Tse [email protected] wrote:

/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.

Jam,

I am not sure why I added the .rbenv file, However after removing, the
command rbenv install 1.9.3-p0 started to run correctly.

And the username its actually my name-and-surname I have substitute it
before pasting the output of command line.

I have rbenv in full swing now I successfully installed 1.8.7. 1.9.2 and
1.9.3

Thanks

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