Install Dradis on MAC OSX 11.4

I am installing dradis on my Mac OS X 11.4 using the following method,
$ git clone https://github.com/dradis/dradis-ce.git
$ cd dradis-ce/
$ ./bin/setup

I am getting the following message,
Your Ruby version is 3.0.1, but your Gemfile specified 2.7.2

Below are the versions and other details,

ruby -v
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-darwin20]

which ruby
/usr/local/opt/ruby/bin//ruby

which bundler
/usr/local/opt/ruby/bin//bundler

bundler -v
Bundler version 2.2.19

Two options:

  1. (try this first) Update the .ruby-version file in the folder to match your installed version (3.0.1). Then follow the original instructions

  2. If that fails, then you need to get the 2.7.2 version running in your box, alongside the already installed 3.0.1. To do so we recommend rbenv

Using the Basic GitHub Checkout instructions.

After installing rbenv and Ruby 2.7.2, you should see this, if run from within the cloned directory:

$ rbenv versions
  system
  2.0.0-p353
  2.2.10
  # ...
* 2.7.2 (set by /Users/etd/Code/dradis/dradis-ce/.ruby-version)

Then follow the original instructions.

HTH,
Daniel