Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer
1  
hum.. so it seems the meaning of this is that I did install rails before, but then i deleted some of its libraries.. so now i got just a shell of it's former self (sorry for the dramatic wording).. and so i gotta reinstall eh –  abbood Dec 6 '13 at 8:28
    
@abbood Yes, it seems to be the case. Install missing libraries or the whole thing at once. –  Grzegorz Żur Dec 6 '13 at 8:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.