3

This may be related to what i did here.. but when I type the command

which rails

I get

/usr/bin/rails

but when i type

rails --version

I get:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /Development/android-sdk-macosx in PATH, mode 040777
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

how does that make sense?

abbood
  • 1,354

1 Answers1

3

Command which rails runs program which that just searches for a executable file called rails on PATH variable entries (see echo $PATH or env | grep PATH). Executable rails is not run at all in this case.

Command rails --version executes the executable file /usr/bin/rails and it fails because of missing libraries.

Grzegorz Żur
  • 161
  • 2
  • 8