Created
August 9, 2011 04:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
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
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