2

I have newly created an Amazon EC2 instance. It came with Ruby 1.8.7 which I uninstalled (with YUM) in favor of RVM and Ruby 1.9.3.

However, every time I connect to the instance via SSH I get the following error:

find: '/opt/aws/amitools': No such file or directory

Is there any way I can restore amitools (preferably without removing RVM and Ruby 1.9.3) ?

whirlwin
  • 183
  • 1
  • 1
  • 5
  • I've never had that on any of my instances, so you've presumably done something wrong. Identify what went wrong, and it's problem solved. – womble Jul 09 '12 at 07:21
  • 1
    @womble - no he presumably uninstalled 1.8.7 and installed 1.9.3 (like he says in the question) – pguardiario Jul 19 '12 at 06:14
  • 1
    Well, that would count as "something wrong" if it broke other software. – womble Jul 19 '12 at 11:39

2 Answers2

4

If you uninstalled 1.8.7 and just want that message to go away and don't care about amitools:

sudo mkdir /opt/aws/amitools
pguardiario
  • 53
  • 1
  • 1
  • 10
2

The /opt/aws/amitools directory contains the Amazon AWS EC2 command line utitlies for working with Amazon Machine Images (AMIs). This package is installed by default on the Amazon AMIs, but is dependent on Ruby. By uninstalling Ruby, you uninstalled anything that depended on it as well, including this package (aws-amitools-ec2.noarch). You can't install this package back using YUM as it will re-install the original Ruby package.

You can download the AMI Tools package from here and manually extract them into the /opt/aws/amitools directory. In my installation the tools are stored in that directory with the name ec2-VERSION, and there is a symlink called ec2 that points to this folder. enter image description here

You may also want the API Tools from here as well, which would go into the /opt/aws/apitools directory and would have been removed by uninstalling Ruby as well.

Brady
  • 330
  • 1
  • 5