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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:32:00+00:00 2026-05-25T15:32:00+00:00

I am using ubunutu natty narwhal.I had installed ruby,rails,rvm etc.. sometime back and everything

  • 0

I am using ubunutu natty narwhal.I had installed ruby,rails,rvm etc.. sometime back and everything was running peacefully.Recently i tried to execute “rails -v” on the command line i get this frustrating error.

    roger@roger-Inspiron-1545:~$ rails -v
    bash: /home/roger/.rvm/gems/ruby-1.9.2-p180/bin/rails: /home/roger/.rvm/rubies/ruby-  1.9.2-p180/bin/ruby:
    bad interpreter: Permission denied

I also get this error for other rails commands i execute
Can someone let me know what the problem is and how i can fix this.

Update:Whereis ruby gives me the this

roger@roger-Inspiron-1545:~$ whereis ruby 
ruby: /usr/bin/ruby /usr/bin/ruby1.8 /usr/lib/ruby /usr/share/man/man1/ruby.1.gz

Thanks

  • 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-25T15:32:01+00:00Added an answer on May 25, 2026 at 3:32 pm

    run:

    ls -l /home/roger/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
    

    The first few characters of the entry should be “-rwx” and you should see your own username as the owner. If you don’t see at least the “r” and the “x”, run

    chmod 755 /home/roger/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
    

    to give the owner read/write/exec and everyone else read/execute.

    If you aren’t the owner, you’ll need to do “sudo chown” to fix that.

    I suspect that there’s a bigger underlying problem though. If you have other ruby versions installed, switch to them in rvm, type “which ruby” and run “ls -l” on them as well.

    Did you do a restore from backup recently? Maybe the permissions weren’t correctly restored. Or did you run some kind of script that might’ve been too aggressive in changing owner or permissions? Or maybe you accidentally did a chmod or chown?

    • 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
I am using Ubuntu 9.04 I just installed ruby and rails in my system
I was trying to install rails on Ubuntu Natty Narwhal 11.04, using ruby1.9.1. I
I'm using Ubuntu 8.10 and I installed Ruby and Ruby on Rails following the
I am currently using ubuntu 11.10. I just now installed rvm and ruby 1.9.2.
Currently one of the machines on which I'm running has Ruby 1.8.7 installed as
I installed psycopg2 on my Ubuntu Natty machine using apt-get. Now, I would like
Using Android SDK Manager Revision 15 on Ubuntu 11.04 (Natty) with sun-jav6-jdk (6.26) installed.
I am using Ubuntu 9.04 I have installed the following package versions: unixodbc and
I have installed the vim-latex package using Ubuntu Synaptic package manager and updated my

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.