Defect #20859
closed
bundle install fails on redmine 3.1.1 on Amazon EC2 linux
Added by ikuru k about 9 years ago.
Updated about 9 years ago.
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
- 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)
Go MAEDA wrote:
Could you provide the following information?
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)
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.
- 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.
- 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.
Also available in: Atom
PDF