I am trying to install ruby1.8 on Ubuntu 14.04 so that I can work with a working application. When I ran this command:
sudo apt-get install build-essential ruby1.8-dev ruby-dev mysql-client mysql-server git-core libmysql-ruby libmysqlclient-dev unzip rubygems
I get the following errors:
Creating a dependency tree
Reading status information ... Done - build-essential is the latest version.
git -core is already the newest version.
ruby-dev is already the newest version.
unzip is already the newest version.
libmysqlclient-dev is the latest version.
mysql-client is already the newest version.
mysql-server is already the newest version. ruby1.8-dev is the latest version.
rubygems is already the newest version.
libmysql-ruby1.8 is already a new version.
0 updated, 0 re-installed, 0 to remove and 161 not updated.
1 not fully installed or removed.
After that, 0 B of additional disk space will be used.
Do you want to continue? [Y / n] y
Configuring rubygems (1.8.25-1bbox3 ~ trusty1) ...
update-alternatives: error: alternative path / usr / bin / gem 1.8 does not exist
dpkg: error processing rubygems package (--configure):
subprocess set after installation script return error exit status 2
Errors were detected during processing:
rubygems
E: Subprocess / usr / bin / dpkg returned error code (1)
lusekero_mwathengere @lusekero: ~ $
Please help .... I know that ruby1.8 is an old version, but this is what we use at work, so I need to succeed in this installation.
Thank you in advance for your help.
source
share