Error when Install Bundle to add Devise Auth to Ruby Project

61 views Asked by At

So i'm new to Ruby On Rails and i found this problem when i try to add Devise to my Project.

Here is the Error : enter image description here

And Here is my GemFile : enter image description here

My Version :

Ruby : ruby 3.1.1p18

Rails : Rails 7.0.2.2

Gem : 3.3.8

Any Idea what should i do to fix this problem?

Note : Already change ruby version on my Gem File same as my Ruby Version, but meet this problem. (Cannot Bundle Install if i not change my Ruby Version on Gem File)

Thank You

1

There are 1 answers

1
Maciej Pankanin On

Looks like you've installed Ruby without DevKit. Here you can find proper one.

PS. Personally I strongly recommend doing any Ruby development under WSL2 and with usage of rvm or rbenv.