Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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) ?

share|improve this question
    
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 9 '12 at 7: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 6:14
1  
Well, that would count as "something wrong" if it broke other software. –  womble Jul 19 '12 at 11:39

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
1  
Thanks! However apitools seemed to remain after I uninstalled Ruby. –  whirlwin Jul 10 '12 at 21:17

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.