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 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

I'm using Ubuntu and tried using synaptic to install everything that had the word
I'm developing on a Ubuntu 8.04 machine using Eclipse Ganymede. I installed Tomcat 5.5
I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem ) If
I am running an Ubuntu 8.10, using Python 2.5 out of the box. This
I'm attempting to build/install/use the Poco C++ Libraries. I'm running Ubututu (Natty). I've compiled
I am using Ubuntu 10.10 and I installed phpmyadmin from synaptic package manager. But
I am using ubuntu, fluxbox, pcmanfm as filemanager, xmms2 as music player. My goal:
I am trying to get PhysX working using Ubuntu. First, I downloaded the SDK
I'm using an Ubuntu 8.04 (x86_64) machine to connect to my employer's Cisco VPN.
I'm accessing an Ubuntu machine using PuTTY, and using gcc. The default LANG environment

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.