Mint12 : Heroku Toolbelt – `require’: cannot load such file

If you are running Linux Mint 12 as your Ruby / Rails development environment and you are planning on deploying to Heroku you will need to install Heroku’s Toolbelt in order to execute the commands necessary to create an application in their cloud as well as various other administrative commands.

Heroku provides detailed tutorials to assist you in setting up your environment but as expected they are pretty agnostic when it comes to specific Linux distributions.

For Linux Mint 12 doing the GEM install of the Toolbelt you run the following command and it executes without issue:

gem install heroku foreman

But when you attempt the login command you may get the following error:

heroku login
/rubygems/custom_require.rb:55:in `require': cannot load such file -- readline (LoadError)

I found this was due to a missing gem which is required by either the Heroku Toolbelt or Foreman gems. To correct this issue I installed the ruby readline gem with the following command:

gem install rb-readline

Once the install completed I attempted the Heroku login command again and it was successful.

Published by

Unknown's avatar

Tim Clark

Experienced Business Owner, Chief Information Officer, Vice President, Chief Software Architect, Application Architect, Project Manager, Software Developer, Senior Web Developer, Graphic Designer & 3D Modeler, University Instructor, University Program Chair, Academic Director. Specialties: Ruby, Ruby on Rails, JavaScript, JQuery, AJAX, Node.js, React.js, Angular.js, MySQL, PostgreSQL, MongoDB, SQL Server, Responsive Design, HTML5, XHTML, CSS3, C#, ASP.net, Project Management, System Design/Architecture, Web Design, Web Development, Adobe CS6 (Photoshop, Illustrator)

Leave a comment