Heroku: team not found

This would seem to have been resolved earlier in How to use gems with Ubuntu? as well as in other answers, but none of the solutions seem to work for me.

I am using Mac OSX 10.6

I installed heroku using bundler. Below is my gem environment and my path - I tried adding the folders listed in EXECUTABLE DIRECTORY and GEM PATHS to my $ PATH, but I always get a command not found when I type the hero from my rails project.

$ bundle show heroku
/Library/Ruby/Gems/1.8/gems/heroku-1.18.3

$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.6.1
  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-10
  - GEM PATHS:
     - /Library/Ruby/Gems/1.8
     - /Users/iantinsley/.gem/ruby/1.8
     - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/iantinsley/bin:/usr/local/bin:/usr/bin

$ heroku
-bash: heroku: command not found

any help appreciated

+3
source share
4 answers

By default, rubygems on mac installs executables in /usr/bin, rather than under gem dir in /Library/Ruby/Gems. However, these directories have different permissions:

~ $ ls -ld /usr/bin/ /Library/Ruby/Gems/
drwxrwxr-x     4 root  admin    136 15 Nov 22:19 /Library/Ruby/Gems/
drwxr-xr-x  1085 root  wheel  36890 11 Feb 22:57 /usr/bin/

root, gems admin, /usr/bin - .

, , , , - , bundler heroku /usr/bin, , , - . , bundler OSX.

, rubygems, heroku script bin gem (.. /Library/Ruby/Gems/1.8/gems/heroku-1.18.3/bin). script, rubygems, rubygems, , script , require .

, script , rubygems , , , , . ,

$ ruby -rubygems /Library/Ruby/Gems/1.8/gems/heroku-1.18.3/bin/heroku

script, rubygems. (, ) .

bundle exec heroku. Bundler . , , , Gemfile.lock - , .

- $PATH. , , , .

$RUBYLIB. , heroku , rubygems bundler , , .

rvm. , , .

, , , heroku . :

$ sudo gem uninstall heroku

, ​​ bundler:

$ sudo gem update bundler

,

$ bundle install

. sudo - . .

+3

PATH:

/Library/Ruby/Gems/1.8/gems/heroku-1.18.3/bin

, Spotlight "heroku" PATH. unix:

$ cd /
$ ls -l $(find [A-Z]* -name heroku -not -type d -print)

Cinderella, Ruby/PostgreSQL/MySQL/MongoDB/.... . , , , ~/Developer/, .

+1

, Heroku Toolbelt http://toolbelt.heroku.com

0

Uninstall and then reinstall it using the command below in sudoworks. I am using macOS 10.14.

curl https://cli-assets.heroku.com/install.sh | sh

0
source

All Articles