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

  • Home
  • SEARCH
  • 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 9194271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:22:18+00:00 2026-06-17T21:22:18+00:00

Possible Duplicate: Cannot use RVM-installed Ruby with sudo I’m running into the same RVM

  • 0

Possible Duplicate:
Cannot use RVM-installed Ruby with sudo

I’m running into the same “RVM is not a function…” error when executing the command sudo rvm use 1.9.3 as everyone else, but try as I might, I cannot seem to resolve it. I’ve read and followed through with all of the common troubleshooting tips, but nothing seems to work…

My System — OS: Ubuntu 12.10 — Ruby Version: 1.9.3 — RVM Version: 1.18.3

I have done the following to try to repair the issue:

  1. Checked the ‘Run command as login shell’ option in the “Title and Command” tab for Terminal preferences
  2. Added the following code block to ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.zprofile
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

    if test -f ~/.rvm/scripts/rvm; then
    [ "$(type -t rvm)" = "function" ] || source ~/.rvm/scripts/rvm
    fi`

  3. Running user$ source ~/.rvm/scripts/rvm and then user$ type rvm | head -n 1 DOES return rvm is a function. But then running sudo rvm use 1.9.3 returns “RVM is not a function”

What else can I do to resolve this issue?

  • 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-17T21:22:20+00:00Added an answer on June 17, 2026 at 9:22 pm

    You can not run rvm with sudo, sudo is running a new process which defeats the function approach which can change current running shell environment.

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

Sidebar

Related Questions

Possible Duplicate: Highstock/Highchart cannot set Individual Point color Currently use the addPoint function to
Possible Duplicate: Fatal error: Cannot use object of type stdClass as array in Please
Possible Duplicate: LINQPad error: ‘UserQuery’: cannot derive from sealed type ‘My.Entity.Framework.CustomDataContext’ i am running
Possible Duplicate: “Cannot use string offset as an array” error <?php $marks = 0;
Possible Duplicate: Cannot use ‘this’ in member initializer? Any ideas why I get an
Possible Duplicate: g++ “is not a type” error The following does not compile: 1
Possible Duplicate: UnauthorizedAccessException cannot resolve Directory.GetFiles failure This is the function im using to
Possible Duplicate: “invalid use of incomplete type” error with partial template specialization Why is
Possible Duplicate: Cannot use concatenation when declaring default class properties in PHP? The following
Possible Duplicate: Anyone know of a good PHP ORM that DOES NOT use PDO?

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.