Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make listen gem work with Ruby 3.0.0p0

I installed Ruby 3.0.0p0 on my Macbook pro (2020 M1) and rails 6.1.3. However, whenever attempting to start up the rails server on my machine, I get the following error:

listen-3.2.1 requires ruby version >= 2.2.7, ~> 2.2, which is incompatible with the current version, ruby 3.0.0p0

Really need to get this up and running. Please help!

like image 914
Genetic1989 Avatar asked Dec 30 '22 15:12

Genetic1989


1 Answers

Thanks to this blog post: https://www.chadduffey.com/2021/03/Jekyll-Poop.html

I was able to solve this issue by running:

bundle update

and then to solve the subsequent error (when running the Jekyll server):

bundle add webrick
like image 89
muya_ Avatar answered Jan 29 '23 06:01

muya_