O'Reilly logo
  • Arif Qureshi thinks this is interesting:

Installing external packages

Depending on the specific gem, you may need to install extra packages for your operating system.

A well-written gem will have a README file that will indicate the external dependencies it has.

In the application that we will be developing during the course of this book, we'll create SQLite databases. To do so, we will be using the sqlite3 gem, which depends on SQLite's binary libraries. This means that we don't just need standard SQLite but also its development libraries and headers.

On Ubuntu, run the following command:



Cover of Instant Sinatra Starter


Sinatra install 2