4

I am usually recommend to people who want to install Ruby to use something like RVM or rbenv (my preference). However, I'm in the process of installing Ruby from source (using rbenv) and it has taken over an hour and still isn't finished. I'm just wondering if there is a faster way to get Ruby 2.0 installed. Maybe there is some apt package that provides this?

1
  • Did you find an answer for your question yet?
    – myhd
    Feb 16, 2014 at 8:31

1 Answer 1

1

rbenv install may take a long time (mine is about 2 to 3 hours), you can just let it run in background and returns to check the installation log in /tmp/ folder later.

I followed the instructions on rbenv website. For step 2 and 3, I use:

$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
$ echo 'eval "$(rbenv init -)"' >> ~/.profile
2
  • I know this will probably work for installing from source, but I'm wondering how/if this can be pre-compiled for future installations.
    – Andrew
    Jul 16, 2013 at 23:08
  • This answer explains one aspect of how to set up rbenv on the RPi, not how to get a precompiled version of ruby for/within rbenv.
    – myhd
    Feb 16, 2014 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.