pivotal-legacy / homebrew-tap

33 stars 49 forks source link

command not found: cf #23

Closed kevinSuttle closed 10 years ago

kevinSuttle commented 10 years ago

screen shot 2014-08-25 at 1 20 58 pm

This is after removing the cf tool from the OSX installer, but I'm guessing I wasn't supposed to do that.

nebhale commented 10 years ago

I'm not sure what the issue is here? If you've brew install cloudfoundry-cli, the command will be available to you.

kevinSuttle commented 10 years ago

But it's not. That's my issue.

nebhale commented 10 years ago

Can you please post the output of the following:

  1. brew info cloudfoundry-cli
  2. brew --prefix
  3. echo $PATH
  4. which cf
kevinSuttle commented 10 years ago

FYI: I reinstalled the Go cf tool from the binary (I needed to use it). These results may be false positives.

❯ brew info cloudfoundry-cli
cloudfoundry-cli: stable 6.4.0, HEAD
https://github.com/cloudfoundry/cli
/usr/local/Cellar/cloudfoundry-cli/6.4.0 (2 files, 18M) *
  Built from source
From: https://github.com/pivotal/homebrew-tap/blob/master/cloudfoundry-cli.rb

~
❯ brew --prefix
/usr/local

~
❯ echo $PATH
/Users/kevinsuttle/.rbenv/shims:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin

~
❯ which cf
zsh: correct 'cf' to '.cf' [nyae]? n
/usr/local/bin/cf
nebhale commented 10 years ago

/usr/local/bin/cf is where I'd expect you to have find the cf binary. You're right that using the OS X package might be causing a false positive, but I cannot tell for sure from this output. You might try running brew doctor and fixing up any problems that you find there.

kevinSuttle commented 10 years ago

Dunno. I guess I'll try uninstalling the binary again later.

~  17s
❯ brew doctor
Your system is ready to brew.

~  22s
❯ which cf
zsh: correct 'cf' to '.cf' [nyae]? n
/usr/local/bin/cf

~
❯ cf -v
cf version 6.4.0-952cc94-2014-08-13T23:33:07+00:00