Skip to content

Instantly share code, notes, and snippets.

@fairchild
Created August 9, 2011 04:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fairchild/1133404 to your computer and use it in GitHub Desktop.
Save fairchild/1133404 to your computer and use it in GitHub Desktop.
script to install euca-tools 1.3.1 from source, tested on a mac
export VERSION="1.3.1"
export WORKING_DIR=~/Downloads/euca2install
mkdir -p ${WORKING_DIR}
cd ${WORKING_DIR}
wget http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/euca2ools-${VERSION}-src-deps.tar.gz
tar -zxvf euca2ools-${VERSION}-src-deps.tar.gz
cd euca2ools-${VERSION}-src-deps
tar -zxvf boto-1.9b.tar.gz
cd boto-1.9b
sudo python setup.py install
cd ..
tar -zxvf M2Crypto-0.20.2.tar.gz
cd M2Crypto-0.20.2
sudo python setup.py install
cd ${WORKING_DIR}
wget http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/euca2ools-${VERSION}.tar.gz&nid=1346
tar -zxvf euca2ools-${VERSION}.tar.gz
cd euca2ools-${VERSION}
sudo make
euca-version
@if6was9
Copy link

if6was9 commented Sep 13, 2011

Did a google search for "eucatools mac" and look whose gist showed up.

One thing to note is that you need swig on your machine. With MacPorts installed, easy to add with:

$ sudo port install swig-python

@fairchild
Copy link
Author

yeah, or you can use brew. I use homebrew pretty much exclusively now, and don't even have ports installed on my Lion laptop anymore.

@craigmwarren
Copy link

I used brew and the command is : brew install swig
also the above script didn't work for me because wget would create a big file name for the file it downloaded:
example:
Craigs-MacBook-Pro:~ Apigee$ wget http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/euca2ools-1.3.1-src-deps.tar.gz

would download a file called
pubdlcnt.php?file=http:%2F%2Feucalyptussoftware.com%2Fdownloads%2Freleases%2Feuca2ools-1.3.1-src-deps.tar.gz

so I just ran all the steps manually, changing the file names as I went.
Another option is to modify the script and use the -O option of wget
something like this
wget -O euca2ools-${VERSION}-src-deps.tar.gz http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/euca2ools-${VERSION}-src-deps.tar.gz

@phs
Copy link

phs commented May 10, 2012

Thank you! This script helped a lot, but ended up changing two things:

  • To dodge problems with the PPC assembler being gone when making M2Crypto, I installed the iOS SDK and put the assembler back a la this SA hint
  • Instead of getting (the now aging) version 1.3.1, I got 2.0.2 from github

@randysecrist
Copy link

i've also had some success getting euca to work with virtualenv; but the bash #! headers need to be changed to use #!/usr/bin/env python over #!/usr/bin/python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment