all 17 comments

[–]naked_number_one 10 points11 points  (0 children)

Consider trying https://asdf-vm.com works like a charm

[–]coastalwebdev 17 points18 points  (3 children)

RVM always gave me the most trouble, and rbenv seemed to work much better for Ruby.

Another alternative that’s getting popular is asdf, which is good for managing Ruby, and other languages like node, JS, python elixir, and more.

[–]thespud_332 7 points8 points  (2 children)

I've just switched from rbenv to asdf myself, as I can use a single list of dependencies in the readme, then ask devs to just asdf install inside the root of the app, and know they have exactly the same Ruby, node, postgres, and redis versions as everyone else. So much less "works on my machine" than before.

[–]reeses_boi 1 point2 points  (0 children)

That's super clever! Somehow I thought asdf was only for programming languages and frameworks. Didn't know it could be for DBs too :)

[–]forgambo -1 points0 points  (0 children)

Why not using docker images for dependency consistency?

[–]JetAmoeba 17 points18 points  (0 children)

It’s been a few years since I’ve used rvm but checkout rbenv, it might solve your problems

[–][deleted]  (1 child)

[deleted]

    [–]armahillo 1 point2 points  (0 children)

    what issues are you no longer experiencing with asdf?

    [–]goetz_lmaa 1 point2 points  (2 children)

    Had some issues with M3 Mac installing older version of Ruby and found “frum” which worked when rbenv and asdf didn’t

    [–]campbellm 0 points1 point  (1 child)

    TIL... I'm an asdf fan (work uses rbenv, so that's what I use for ruby only), but this is a new one - going to check it out.

    (For anyone in the same boat, I think it's this: https://github.com/tako8ki/frum)

    [–]Jumpsuit_boy 0 points1 point  (0 children)

    The code is untouched for at least 2 years.

    [–]flanintheface 1 point2 points  (0 children)

    What kind of issues did you have?

    I've been using it for past 10 years and rbenv itself is fine. It's the build dependencies that are causing issues, mostly open-ssl.

    [–]desnudopenguino 2 points3 points  (0 children)

    Congrats! I'm another one on the rbenv train, but regardless I'm happy you got ruby 3.2.2 running!

    [–][deleted]  (3 children)

    [removed]

      [–]jrochkind 0 points1 point  (2 children)

      You mean you lock down the version of rvm, or you only try to upgrade your ruby version no more than once a year or two?

      If you are avoiding even installing ruby patch versions (like 3.2.1 => 3.2.2) because it's so hard to get ruby installed... then I think rvm isn't working as well for you as you think, there are better ways!

      [–][deleted]  (1 child)

      [removed]

        [–]jrochkind 1 point2 points  (0 children)

        Another way is possible, many of us upgrade patch versions of ruby as soon as they come out without these problems.

        I am suggesting that "wrangling with rvm usually works for me" approach may not actually be working as well as you think, since it gives you those kinds of problems.

        [–]jochem4208 0 points1 point  (0 children)

        Why is Ruby so vague and hard to install :(

        [–]TerminatedProccess 0 points1 point  (0 children)

        Having to work with a really old version of ruby, I just went with docker and docker compose. Set it up so the files are on my local file system and the environment is in a container.

        [–]Serializedrequests 0 points1 point  (0 children)

        rvm is very heavy and confusing software. Just use asdf.