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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:04:02+00:00 2026-05-23T18:04:02+00:00

I installed Ruby 1.9.2 from source and was using it for a while but

  • 0

I installed Ruby 1.9.2 from source and was using it for a while but now I wanted to start using RVM, so I uninstalled my source Ruby 1.9.2 installation and installed ruby using sudo apt-get install ruby. However, now when I run ruby --version I get:

The program 'ruby' is currently not installed.  You can install it by typing:
sudo apt-get install ruby

When I call which ruby I get nothing. My /etc/environment (which I’ve sourced) contains:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games:/usr/bin"

When I run sudo apt-get install ruby it says that it’s already installed. When I ls /usr/bin, ruby appears but it’s in red (not sure what that means). If I cd /usr/bin/ruby or less /usr/bin/ruby it gives me a “No such file or directory”

When I run dpkg -L ruby it gives me:

/.
/usr
/usr/bin
/usr/share
/usr/share/doc
/usr/share/doc/ruby
/usr/share/doc/ruby/changelog.gz
/usr/share/doc/ruby/ruby-policy.html
/usr/share/doc/ruby/ruby-policy.html/index.html
/usr/share/doc/ruby/ruby-policy.html/ch-ruby.html
/usr/share/doc/ruby/ruby-policy.html/ch-module_packages.html
/usr/share/doc/ruby/ruby-policy.html/ch-programs.html
/usr/share/doc/ruby/ruby-policy.html/ap-build_dependencies.html
/usr/share/doc/ruby/ruby-policy.html/ap-ruby1.8_bundled_modules.html
/usr/share/doc/ruby/ruby-policy.html/ap-transition_1.6_to_1.8.html
/usr/share/doc/ruby/README.Debian
/usr/share/doc/ruby/copyright
/usr/share/doc/ruby/ruby-policy.txt.gz
/usr/share/doc/ruby/ruby-policy.sgml.gz
/usr/share/man
/usr/share/man/man1
/usr/bin/testrb
/usr/bin/erb
/usr/bin/ruby
/usr/share/man/man1/testrb.1.gz
/usr/share/man/man1/erb.1.gz
/usr/share/man/man1/ruby.1.gz

…so it’s definitely installing to /usr/bin/ruby

It seems like Ruby is installed, but bash can’t find it because something is wrong with /usr/bin/ruby. Any ideas how to fix this?

  • 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-23T18:04:03+00:00Added an answer on May 23, 2026 at 6:04 pm

    It sounds like /usr/bin/ruby is a symbolic link, whose target has been deleted.

    If you type the command ls -l /usr/bin/ruby, that will display info about the file in long format. If it is a symbolic link, then the target of the link will be shown. This what what that command shows for me (I’m on OS X):

    [10:14 PM]bin $ls -l ruby lrwxr-xr-x 1 root wheel 76 Jul 28 2010
    ruby ->
    ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby

    Assuming it is a symbolic link, go to the target of the link and see if that file exists. I’m guessing that it doesn’t, and the ruby installation script only checks for the existence of /usr/bin/ruby to determine if ruby is installed or not. If you delete /usr/bin/ruby this will hopefully fix the issue.

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

Sidebar

Related Questions

So I installed Ruby On Rails using the Windows Installer. Now the startup guides
I installed Ruby 1.8.7 through apt-get. I then installed 1.9.1 through RVM. The RVM
I am trying to install ruby 1.9.2 from a ruby script using rvm which
I'm running CentOS6 and installed Ruby from source, along with Rails and some other
I have been trying to install ruby 1.9.2 using rvm but I'm unable to
I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions
I am using Ubuntu 9.04 I just installed ruby and rails in my system
I'm having significant trouble installing Ruby on Rails. I installed Ruby with apt-get When
I've cloned the ruby 1.8.7 source tree. I can build ruby. But I can't
I have installed ruby by downloading and compiling the source... when i run script/server

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.