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 7015197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:37:14+00:00 2026-05-27T22:37:14+00:00

I have installed ruby 1.9.3 using hombrew brew install ruby But default 1.8.7 is

  • 0

I have installed ruby 1.9.3 using hombrew

brew install ruby

But default 1.8.7 is still used. How can I switch osx to use 1.9.3 as default ruby?

  • 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-05-27T22:37:14+00:00Added an answer on May 27, 2026 at 10:37 pm

    I suggest you take a look at rvm.
    You can then set it as default with rvm use 1.9.3 --default

    But if you are happy with your homebrew install.

    Then just change the precedence of directories in the PATH

    Here is my /etc/paths

    # homebrews should always take precedence
    /usr/local/bin
    
    # the default stack
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    

    This is important generally for homebrew, else the system version of git, ruby, pg_admin,… will all be used instead of the brew version.

    if you say which -a ruby you’ll see all the installed rubies, and the precedence in the PATH

    eg.

    $ which -a ruby
    /Users/matthew/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
    /Users/matthew/.rvm/bin/ruby
    /usr/bin/ruby
    

    UPDATE: I now don’t think you should change /etc/paths

    Instead you need to check which of .profile, .bashrc, or .bash_login is being loaded in your shell, and just add /usr/local/bin to your path.

    For me, I only have a .profile. You can create that file if none of those files already exist in your home directory.

    # homebrews should always take precedence
    export PATH=/usr/local/bin:$PATH
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed rvm (mutiuser option) and ruby using rvm install on my test
I am attempting to install Ruby with RVM. I already have Ruby installed, but
I have installed Ruby 1.9.3 using the rubyinstaller. I execute: gem install scrapi I
I have the ruby version manager installed and use the ruby implementation installed by
I have installed Ruby On Rails Application on my harddrive, and i am using
I have tried to install ruby-opencv and I can't get it to work. I
I am using mvim on Mac for programming in Ruby and have installed the
I'm running Windows Vista and Emacs 23.1.1 and I have installed Ruby using the
I have recently installed RVM on a fresh install of Ubuntu 11.10 and can
I have installed a GEM called Ziya using the terminal in Mac OSx. However,

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.