Created
December 8, 2011 20:02
-
-
Save larsschenk/1448315 to your computer and use it in GitHub Desktop.
install ec2-api-tools with brew on fresh lion (note to myself)
This file contains hidden or 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
brew install ec2-api-tools | |
does not do the job to make it run on my fresh Lion. | |
Because Apple does not have the full Java on Lion we need to upgrade from: | |
http://support.apple.com/kb/DL1421 | |
Download an install. | |
Reason: | |
Java on Lion was broken. /System/Library/Java/JavaVirtualMachines/ was missing! Upgrade Java SE 6 to 1.6.0_29 fixed it. | |
After that it should work. But the firewall asks for permission when using the ec2-tools (i.e. ec2-describe-instances). | |
To fix that do: | |
-- | |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/bin/java | |
2011-12-08 20:47:00.984 socketfilterfw[32231:707] CFURLCreateWithBytes was passed these invalid URLBytes: '/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/bin/java | |
ALF: Error, IsExpectedCFType(variableInQuestion) variable == NULL! | |
Application at path ( /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/bin/java ) added to firewall | |
# and I guess more important: | |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java | |
2011-12-08 20:55:43.074 socketfilterfw[33018:d07] CFURLCreateWithBytes was passed these invalid URLBytes: '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java | |
ALF: Error, IsExpectedCFType(variableInQuestion) variable == NULL! | |
Application at path ( /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java ) added to firewall | |
--- | |
Read here for more infos why I used the socketfilterfw tool: | |
https://discussions.apple.com/thread/3329496?start=0&tstart=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment