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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:13:29+00:00 2026-05-31T22:13:29+00:00

After going through the effort of finally purging distro ruby packages from my Ubuntu

  • 0

After going through the effort of finally purging distro ruby packages from my Ubuntu development sandbox to replace with the highly recommended rvm, I must be misunderstanding something fundamental:

I don’t want to have to change all the shebang lines in all my .rb source files from

#!/usr/bin/ruby

into /usr/local/rvm/bin/ruby nor anything version-specific.

My source files need to remain constant with their counterparts on the production servers using the system default ruby binaries (not rvm).

Any suggestions to keep universal code consistency? Should I be switching the shebangs, once and for evermore, to something like

#!/usr/bin/env ruby

or (despite what that link’s site says) is there some clean way for rvm to hook into /usr/bin/ruby assuming all conflicting .deb packages had been removed? Not to mention, how to get other .deb packages dependent on the presence of ruby+libs to recognize the non-distro ruby…but that might be a separate issue.

  • 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-31T22:13:31+00:00Added an answer on May 31, 2026 at 10:13 pm

    the only sane way to go is:

    #!/usr/bin/env ruby
    

    it will always use current selected ruby in the environment, not depending on any tool

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

Sidebar

Related Questions

I have planed to start using a framework in php development. After going through
After going through tutorials on getting started with Tortoise I am finally starting to
I am new to backbone and trying out my first app after going through
Something is puzzling me, after going through my app with instruments, it is a
After searching online and going through past stackoverflow posts for a suitable implementation for
After going through Marshall code snippet Got the Idea that marshalling is used to
After going through MSDN Shell Extensions I am not quite sure if I can
I am new to android and after going through many tutorials I still can't
After going through couple of linksI came to know that Perl does the compilation
After going through a lot of articles on IDisposable , I got confused about

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.