Skip to content

Support for ruby 2.5 (Ubuntu 18.04) #158

Closed
@carlnordenfelt

Description

@carlnordenfelt

I'm trying to install the aws-codedeploy-agent on Ubuntu 18.04.
Ubuntu 18.04 comes with ruby 2.5.1

./install auto
I, [2018-05-02T15:39:46.472855 #4588]  INFO -- : Starting Ruby version check.
E, [2018-05-02T15:39:46.472978 #4588] ERROR -- : Current running Ruby version for root is 2.5.1, but Ruby version 2.x needs to be installed.
E, [2018-05-02T15:39:46.473012 #4588] ERROR -- : If you already have the proper Ruby version installed, please either create a symlink to /usr/bin/ruby2.x,
E, [2018-05-02T15:39:46.473034 #4588] ERROR -- : or run this install script with right interpreter. Otherwise please install Ruby 2.x for root user.
E, [2018-05-02T15:39:46.473055 #4588] ERROR -- : You can get more information by running the script with --help option.

ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]

I followed the advice and create a symlink from ruby2.4 => ruby2.5 and re-ran installation:

ln -sf /usr/bin/ruby2.5 /usr/bin/ruby2.4

./install auto
I, [2018-05-02T15:42:59.087490 #4603]  INFO -- : Starting Ruby version check.
W, [2018-05-02T15:42:59.087611 #4603]  WARN -- : The Ruby version in /usr/bin/ruby2.4 is 2.5.1, . Attempting to install anyway.
I, [2018-05-02T15:42:59.087647 #4603]  INFO -- : Starting update check.
I, [2018-05-02T15:42:59.087670 #4603]  INFO -- : Attempting to automatically detect supported package manager type for system...
I, [2018-05-02T15:42:59.094237 #4603]  INFO -- : Checking AWS_REGION environment variable for region information...
dpkg-query: package 'codedeploy-agent' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
I, [2018-05-02T15:42:59.105933 #4603]  INFO -- : Running version No running version
I, [2018-05-02T15:42:59.106015 #4603]  INFO -- : Downloading version file from bucket aws-codedeploy-eu-west-1 and key latest/VERSION...
I, [2018-05-02T15:42:59.153223 #4603]  INFO -- : Downloading version file from bucket aws-codedeploy-eu-west-1 and key latest/VERSION...
I, [2018-05-02T15:42:59.175399 #4603]  INFO -- : Downloading package from bucket aws-codedeploy-eu-west-1 and key releases/codedeploy-agent_1.0-1.1458_all.deb...
I, [2018-05-02T15:42:59.303860 #4603]  INFO -- : Executing `/usr/bin/gdebi -n -o Dpkg::Options::=--force-confdef -o Dkpg::Options::=--force-confold /tmp/codedeploy-agent_1.0-1.1458_all.tmp-20180502-4603-2fpoe0.deb`...
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: ruby2.0|ruby2.1|ruby2.2|ruby2.3

E, [2018-05-02T15:44:46.732781 #4672] ERROR -- : Error installing /tmp/codedeploy-agent_1.0-1.1458_all.tmp-20180502-4672-hj5g9h.deb.

At this point I rather desperately created a symlink between ruby2.5 and ruby2.3 without actually expecting it to work and as I suspected, no luck, same error.

ln -sf /usr/bin/ruby2.5 /usr/bin/ruby2.3

Any suggestions other than trying to install ruby2.4 via rvm which I have also tried and failed (don't have the logs from that attempt)?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions