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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:03:48+00:00 2026-05-26T20:03:48+00:00

Runnin 10.04 64bit Ubuntu. I have a deploy user, and have no problems with

  • 0

Runnin 10.04 64bit Ubuntu. I have a deploy user, and have no problems with “bundle install” but had to update gems and tried this:

deploy@pluto:/opt/ruby/bin$ gem update --system

error:

Updating rubygems-update
Fetching: rubygems-update-1.8.10.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /opt/ruby/lib/ruby/gems/1.8 directory.

Tried with sudo:

deploy@pluto:/opt/ruby/bin$ sudo gem update --system
[sudo] password for deploy: 
sudo: gem: command not found

Then logged in as root, and no problem!?

root@pluto:/opt/ruby/bin# gem update --system
Updating rubygems-update
Fetching: rubygems-update-1.8.10.gem (100%)
Successfully installed rubygems-update-1.8.10
Installing RubyGems 1.8.10
RubyGems 1.8.10 installed

This is my $PATH variable with and without sudo, any ideas what’s wrong?

deploy@pluto:~$ echo 'echo $PATH' | sudo sh
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

deploy@pluto:~$ echo $PATH
/opt/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
  • 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-26T20:03:48+00:00Added an answer on May 26, 2026 at 8:03 pm

    You should not need sudo to install gems. Looks like when you first installed Ruby/Rails, you used sudo. This installs ruby/rails in folders that are siblings to the home folder. There are multiple resources that tell you how to set up Ruby/Rails on a Ubuntu box only resource that worked for me (i followed these instructions to install Rails on 4 Ubuntu boxes) was Toran Billups article here. Read it carefully and you should have a good environment set up.

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

Sidebar

Related Questions

I have a very minimal install of Ubuntu 8.04 64-bit. When I try to
I have been running Apache HTTPD in 64bit mode by stripping out the 32bit
I get this exception on my Windows 7 64bit in application running in VS
I have Ubuntu 8.04 running on a Xen based VPS server that runs on
I'm running Ruby 1.9.2p180 on Ubuntu 11.04 64-bit. I have the simplest possible CoffeeScript
I have set up a private cloud under ubuntu 10.04 server through eucalyptus packages
I see this question asked all over the internet, and I've tried following them
System information: I am running 64bit Ubuntu 10.10 on a 2 month old laptop.
Ubuntu 10.04 64-bit looks promising as a development environment for Android. I now have
MySQL 5.1, Ubuntu 10.10 64bit, Linode virtual machine. All tables are InnoDB . One

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.