Jan. 14, 2024, 6:14 p.m. | olistik

DEV Community dev.to

Resuming the work done for


https://dev.to/olistik/a-naive-installation-of-ruby-and-rails-on-openbsd-4d50


I wanted to test the latest Ruby 3.3.0 on the latest OpenBSD 7.4 and here are the results.


First of all, let's download the sources:



$ curl -LO https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.0.tar.gz
$ tar xvfz ruby-3.3.0.tar.gz
$ cd ruby-3.3.0


Add libyaml dependency if you don't have it already:



$ doas pkg_add libyaml


Configure the compilation so that it picks libyaml and it outputs the binaries in our rubies directory:



$ CONFIGURE_ARGS="--with-libyaml-dir=/usr/local/lib" ./configure  --prefix ~/.rubies/3.3.0
$ …

compilation download ruby test work

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote