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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:37:20+00:00 2026-06-18T06:37:20+00:00

First I installed rvm for multi-user using script \curl -L https://get.rvm.io | sudo bash

  • 0

First I installed rvm for multi-user using script

 \curl -L https://get.rvm.io | sudo bash -s stable

and I added users to rvm group.

and rvm seems worked fine. so I installed ruby 1.9.3 and set 1.9.3 as default

and now I tried to install rails with command

 gem install rails 

It seems worked fine, but when fetching json-1.7.6.gem and an error occurs.

 ERROR:  Error installing rails:
 ERROR: Failed to build gem native extension.

 /usr/local/rvm/rubies/ruby-1.9.3-p374/bin/ruby extconf.rb
 creating Makefile

 make
 sh: make: Permission denied


 Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p374/gems/json-1.7.6 for inspection.
 Results logged to /usr/local/rvm/gems/ruby-1.9.3-p374/gems/json-1.7.6/ext/json/ext/generator/gem_make.out

So I thought it would be related with permission, so I tried

 sudo gem install rails

but then this error occurs.

 sudo: gem: command not found

What should I do?

  • 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-18T06:37:21+00:00Added an answer on June 18, 2026 at 6:37 am

    use sudo as follows..

    sudo gem install rails 
    

    Updated Answer:

    our $PATH variable needs to include the exact path to your Ruby’s bin directory. Adding a directory to the PATH does not include it’s subfolders. Try adding the bin directory via:

    export PATH=$PATH:/home/adam/.gem/ruby/1.8/bin
    

    or if you installed the gem using sudo:

    export PATH=$PATH:/usr/lib/ruby/gems/1.8/bin
    

    You might want to add this to your .bashrc file, so that you don’t have to set this manually every time your open up a new bash.

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

Sidebar

Related Questions

Using ubuntu 10.04, rvm. At first, I've installed ruby 1.9.2 with rvm, gem rails
From the website for RVM : bash < <( curl https://rvm.io/releases/rvm-install-head ) What does
First, I installed lxml without using pip (Python 2.7.2 on Mac OS 10.6.8). Then,
I'm trying to install Ruby on rails, so first I installed RVM rvm install
I've just installed the latest RVM on my new server using Mixed Mode, and
first of all, I'm using RVM... and I don't know much about managing gem
disclaimer: I am just starting on rails. I've installed Ruby 1.9.3 using rvm without
I have been using RVM to manage my Rubies and gems. When I first
My problem is summarized in the following lines: Joses-MacBook-Pro:~ jose$ cd Estate/ Using /Users/jose/.rvm/gems/ruby-1.9.2-p290
Just installed rvm. When I use: rvm use 1.9.3 , I get: Gemset ''

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.