Project

General

Profile

Actions

Defect #20859

closed

bundle install fails on redmine 3.1.1 on Amazon EC2 linux

Added by ikuru k over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Ruby support
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

So I was trying to install redmine on a AMazon EC2 instance, and noticed that bundle install threw an error.

Had to
$ sudo gem install io-console
to resolve the issue. ANd everything was fine afterwards.

First time even touching ruby and rails,
but this should be listed on the Gemfile if it is a pre-requisite, right?


Files

Selection_048.png (25.9 KB) Selection_048.png environment info ikuru k, 2015-09-29 17:25
Actions #1

Updated by Go MAEDA over 8 years ago

  • Status changed from New to Needs feedback

Could you provide the following information?

  • Linux distribution
  • Error messages while 'bundle install'
  • Environment information (Go 'Admin' -> 'Info' on your Redmine and copy & paste the content in the grey box)
Actions #2

Updated by ikuru k over 8 years ago

Go MAEDA wrote:

Could you provide the following information?

  • Linux distribution

Amazon Linux AMI, which I heard it is derived from centos.
Could also suspect their default ruby intallation I guess.

  • Error messages while 'bundle install'

Top line of error was:
/usr/local/share/ruby/site_ruby/2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- io/console (LoadError)

There was more, but prefer not to go through re-installing redmine all over again just to get the whole message.
Anyways, I isntalled the gem under discussion and everything was fine.

  • Environment information (Go 'Admin' -> 'Info' on your Redmine and copy & paste the content in the grey box)

environment info

Actions #3

Updated by Holger Just over 8 years ago

io/console is part of core Ruby since 1.9.3. If you get this error, it means that your Ruby installation is broken or at least incomplete. Instead of using the (heavily outdated and unnecessary) gem, you should work on fixing your ruby installation.

If you installed Ruby yourself, you should try to use a ruby version manager instead, like RVM or ruby-install. If you used the OS packages for ruby, you might want to file a bug there.

Actions #4

Updated by Go MAEDA over 8 years ago

  • Status changed from Needs feedback to Confirmed

Confirmed in Amazon Linux 2015.09. I had to run "yum install rubygem-io-console" before running "bundle install".

io-console is one of default gem, so I thought it is supposed to be available in every installation of Ruby. But optional in Amazon Linux.

Actions #5

Updated by Jean-Philippe Lang over 8 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Invalid

Holger Just wrote:

io/console is part of core Ruby since 1.9.3. If you get this error, it means that your Ruby installation is broken or at least incomplete. Instead of using the (heavily outdated and unnecessary) gem, you should work on fixing your ruby installation.

Agreed.

Actions

Also available in: Atom PDF