bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 165 forks source link

genghisapp : command not found #168

Closed pierreburgy closed 10 years ago

pierreburgy commented 10 years ago

Hi !

I recently installed genghis with gem but when I try to launch the app I obtain a "command not found"

Here is my configuration : OS X 10.9.2 MongoDB shell version: 2.4.9 (installed with homebrew) ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0](installed with homebrew) gem version : 2.0.3

Do you know what could be the solution?

Thanks for your help,

Pierre

bobthecow commented 10 years ago

Hmm. Your rubygem bin path probably isn't in your shell's $PATH? Run this:

gem environment

… and check the EXECUTABLE DIRECTORY setting. Make sure it's in your $PATH:

echo $PATH
pierreburgy commented 10 years ago

Thanks for your answer, here is the path I obtained : /Users/pierreburgy/pear/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

pierreburgy commented 10 years ago

RubyGems Environment:

bobthecow commented 10 years ago

Yep. Your path doesn't include the RubyGems bin directory. And it looks like you're using Homebrew's Ruby. According to brew info ruby, gem executables are added to /usr/local/opt/ruby/bin.

Add something like this to .profile or .bashrc or whatever you use:

export PATH=/usr/local/opt/ruby/bin:$PATH
pierreburgy commented 10 years ago

Thanks a lot, I finally solved the problem using this line which was advised by brew when I used "brew info ruby" :

sudo gem pristine --all --only-executables

Let's use Genghis !

bobthecow commented 10 years ago

:+1: