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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:12:06+00:00 2026-05-23T00:12:06+00:00

My RVM is installed as root. When I’m trying to start unicorn socket, it

  • 0

My RVM is installed as root.
When I’m trying to start unicorn socket, it prints

user@9001-3:~$ /etc/init.d/unicorn start
Starting myapp app: /usr/bin/env: ruby: No such file or directory
unicorn.

But if I type

user@9001-3:~$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]

/usr/local/rvm/gems/ruby-1.9.2-p180/bin/unicorn path exists.

My unicorn config: https://gist.github.com/1010519

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

    /etc/init.d/unicorn doesn’t know where to find Ruby because it’s managed via RVM. Normally, your .bashrc or similar file is executed and sets up the environment; this doesn’t happen in init scripts (or likely anything else executed by root).

    The solution is to use wrappers. For example, to create a binary called system_ruby that loads up RVM’s 1.9.2p180 environment and then executes ruby, execute the following:

    rvm wrapper ruby-1.9.2-p180 system ruby
    

    For more information and more details, check out this answer of mine, which addresses a similar problem.

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

Sidebar

Related Questions

Okay, so I installed rvm and everything as root. Then I installed Ruby Enterprise
I installed rvm as root to setup an Ubuntu LTS 8.04 as a web
Installed rvm gem installed passenger when I try to install passenger-install-apache2-module it gives? root@c2h2crawler:~#
I have installed RVM in my ubunut linux box and configured the Rails 3
I installed Ruby 1.8.7 through apt-get. I then installed 1.9.1 through RVM. The RVM
So I'm trying to get thin to run as a service with RVM. After
I have rvm installed on a Mac OS X 10.6 system with the system
I just installed RVM and it seems the cd command is taking an extra
I rather cleverly (or not in hindsight) installed RVM, which kept hanging whilst compiling
I installed RVM following the official guide on rvm . I installed Ruby 1.8.7

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.