Skip to content

Welcome to Tech by Example

Menu
  • Home
  • Posts
  • System Design Questions
Menu

Fix LoadError cannot load such file — scanf in Ruby 2.7.0

Posted on October 11, 2022October 11, 2022 by admin

Overview

The scanf gem is no longer a bundled gem that comes with Ruby Installation. It has to be specifically installed. Simply add the below line to your Gemfile and then do ‘bundle’

gem 'scanf'

or run

gem install scanf

Note: Check out our system design tutorial series System Design Questions

©2025 Welcome to Tech by Example | Design: Newspaperly WordPress Theme