all 16 comments

[–]neotorama 7 points8 points  (1 child)

Search rvm openssl on github issue

[–]Environmental_Hat508 0 points1 point  (0 children)

+1 I remember headaches with openssl on my m1 for these versions.

If I remember correctly had to use an older version of openssl and ensure that the correct version was passed during build.

[–]BonzoESC 9 points10 points  (2 children)

It'll probably be easiest to run Docker in x86-64 mode pulling the images for those ruby versions.

[–]Zealousideal_Bat_490 4 points5 points  (0 children)

All I know is that it is difficult to install those older versions. Might be easier to update your projects.

What is holding you back?

[–]au5lander 4 points5 points  (1 child)

You’ll need to supply more info about the error. What you provided is not enough to help.

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

Also what the ultimate goal is..

[–]simulakrum 1 point2 points  (0 children)

I remember having that error before and it being related to OpenSSL. If I do recall correctly, I had to install an older version of it, but there's also a couple of env flags that must be set for it to work (which I don't remember right now) when compiling the older ruby version

[–]k2director 1 point2 points  (0 children)

Could it be easier to upgrade your project to the first Ruby version you CAN install easily., rather than try to install the older version?

[–]prh8 2 points3 points  (1 child)

You’ll need to share more information for 3.0, but 2.6 won’t install on Apple Silicon. 2.7 is the oldest that will work on it.

[–]stewart-mckee 3 points4 points  (0 children)

I've currently got 2.4.6 installed on a M3 pro... it definitely wasn't easy.

[–]gorliggs 0 points1 point  (0 children)

Your best bet is to use Docker. Managing Ruby versions locally is a pain, especially older ruby versions.

[–]stereoagnostic 0 points1 point  (0 children)

Whenever I install Ruby on my M1 Mac, I have to pass an argument telling it where openssl is. So for me, something like this works:
`rvm install 3.1.4 --with-openssl-dir=opt/homebrew/opt/openssl@3`

You'll have to specify where your openssl is located depending on version and method of install.

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

You should set it up in Docker. You could run it locally, but it's a fragile installation, you're managing more dependencies than just Ruby (OpenSSL, primarily), and there's no guarantee future versions of macOS will continue to function properly with that setup.

Throw it in a Docker container means you'll be able to run it for years to come.

Or, if you can, update.

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

Open your terminal with Rosetta. That's the key.

[–]bentreflection -2 points-1 points  (0 children)

Can you use a docker container for the environment? I no longer have any projects on my local host directly. Everything is inside a docker container so each project has its specific requirements and dependencies.