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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:25:58+00:00 2026-05-14T00:25:58+00:00

I recently installed jruby on a machine that also has ruby installed on it.

  • 0

I recently installed jruby on a machine that also has ruby installed on it. When I do

rake something it now appears to be using the jruby interpreter. I’d like rake to use the ruby interpreter. I’d appreciate any help.

  • 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-14T00:25:58+00:00Added an answer on May 14, 2026 at 12:25 am

    What platform are you on? What’s the output of which rake, which ruby, which jruby? How did you install jruby?

    I’m going to go out on a limb and guess that however you installed jruby, it overrode your “pure” ruby binary. Depending on the platform and how jruby was installed, there are a number of ways this could have happened, e.g. PATH modification, update-alternatives, etc.

    My /usr/bin/rake starts with:

    #!/usr/bin/env ruby
    

    So if I modified my PATH so that the jruby install directory came first and the jruby executable was aliased to ruby, then rake invokes /usr/bin/env ruby which invokes jruby.

    The easiest solution (in a bash shell) is to do:

    alias rake='/usr/bin/ruby /usr/bin/rake'
    

    The downside is this solution will only help you and may or may not be available if you’re trying to invoke rake from somewhere other than a shell prompt.

    I hope that’s enough to point you in the right direction.

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

Sidebar

Related Questions

I recently installed a ruby based tooling using gem, and when I try to
I recently installed PDT Helios and now when using the debugger, it will break
I recently installed jgem and jruby on Mac OS X 10.6.4 with macports. Now
I recently installed Windows6.1-KB2506143-x64 on my Windows 7 machine so that I can use
I recently installed Checkstyle plugin for Eclipse and personally think that it is awesome.
I recently installed the RTM version of 4.0. I now receive an error when
I recently installed silverlight 3 tools to my VS 2008 SP1 environment, now when
I recently installed MAMP version 1.6 on my MAC OS 10.5.7. Now I am
I recently installed Visual Studio Professional 2010 Beta 1 and noticed that most of
I recently installed Resharper 6.1 in VS-2010 . I'm using it with a rich

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.