You can install Sinatra as a global gem:
gem install sinatra
or add it to a project's Gemfile
# in Gemfile: gem 'sinatra'
and run bundle install.
bundle install