Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8669959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:36:08+00:00 2026-06-12T18:36:08+00:00

In Terminal, ruby -v gives me: ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0] But if

  • 0

In Terminal, ruby -v gives me:

ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]

But if I type /bin/bash then ruby -v I get:

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]

I suspect this is something to do with my PATH config(s). My $PATH variable is different in both the above environments. There are other issues e.g. rvm won’t run unless I go into bash mode.

For info, my ~/.bashrc contains:

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:36:09+00:00Added an answer on June 12, 2026 at 6:36 pm

    This was not due to a $PATH problem. What I’ve learned is that RVM cannot be run unless you change your default login shell to either Bash or ZSH. Just firing up Terminal in Mac won’t work. You make the global change to using Bash like this:

    chsh -s /bin/bash
    

    (swap /bin/bash for whatever your bash path is, find out using which bash).

    The RVM website does say that bash>=3.2.25 is a prerequisite, but doesn’t say what that is or how to check whether you have it. It also advises you to run rvm requirements to check what you need – and you can’t run this unless you change your shell (all quite confusing for somebody new to this).

    Thanks to the replies above for getting me there in the end.

    See also: Bad: modifier error when installing RVM

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I open a new terminal window I now get: -bash: /usr/local/bin/heroku: /usr/local/bin/ruby: bad
I installed rvm and then ruby 1.9.2 but every time I close my terminal
I have terminal.app set to accept utf-8 and in bash I can type unicode
Ruby Settings From terminal % ruby -v ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux] =>
Is it possible to get Haskell Documentation from Terminal or from ghci? In Ruby
How can I get a single keyboard character from the terminal with Ruby without
Here is my terminal output. Anand@luckydev:~ $ which ruby /usr/local/bin/ruby Anand@luckydev:~ $ rvm list
Heroku Terminal: Ruby console for vinderhimlen.heroku.com >> I18n.l Time.now => Tue, 22 Mar 2011
I updated my ruby version to 1.9.2 but when I start up the terminal
With OS X Xcode installed one can run ruby code in terminal with >ruby

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.