1. Computing

Installing Padrino

By

At its core, installing Padrino is a simple gem install padrino command. However, there are a few problems you may run into.

If you have a version of the gem bundler less than or equal to version 0.8, this gem needs to be uninstalled or upgraded. To see if you have this gem installed, run the command gem list bundler. If bundler is listed, refer to bundler's github page.

Next, take a look at the dependencies for the Padrino gem itself. You can do this by running the command gem dep --remote padrino. While this list might look huge, it's not really that big. Padrino itself is split into several gems, as shown below.

  • padrino-admin - This is the admin interface, a mountable Padrino app you can use with your projects.
  • padrino-core - This is Padrino itself, all the important stuff is here.
  • padrino-gen - These are the application generators.
  • padrino-helpers - These are various helper methods used throughout Padrino.
  • padrino-mailer - This sends out mail.

In addition, Padrino also has several deps that installs some sane defaults for HTML generation, testing, etc. What these are aren't important. You don't have to use these if you don't want to.

When you're ready, install Padrino with the command gem install padrino and wait patiently. A number of gems have to be installed, each with rdoc documentation that must be compiled. This can take some time, so be patient.

  1. About.com
  2. Computing
  3. Ruby
  4. Tutorials
  5. Padrino
  6. Installing Padrino

©2014 About.com. All rights reserved.