<div class="gmail_extra">my $USER is there.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I did what you suggest (chown & edit of formula) but still get an error.</div><div class="gmail_extra"><div class="gmail_extra">
It looks like my user can not change my system python.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
bash-3.2$ echo $USER</div><div class="gmail_extra">tog</div><div class="gmail_extra">bash-3.2$ echo $PATH</div><div class="gmail_extra">/Applications/groovy-1.8.6/bin:/Applications/grails-2.0.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Applications/ec2-api-tools-1.5.3.0/bin:/usr/local/Library/Contributions/cmds</div>
<div class="gmail_extra">bash-3.2$ export PATH=/usr/local/bin:/usr/local/sbin:$PATH</div><div class="gmail_extra">bash-3.2$ brew install juju</div><div class="gmail_extra">==> Cloning lp:juju</div><div class="gmail_extra">
Updating /Library/Caches/Homebrew/juju--bzr</div><div class="gmail_extra">Tree is up to date at revision 532 of branch <a href="http://bazaar.launchpad.net/~juju/juju/trunk">http://bazaar.launchpad.net/~juju/juju/trunk</a>                                                                                    </div>
<div class="gmail_extra">==> easy_install PyYAML txaws pydot oauth txzookeeper</div><div class="gmail_extra">error: can't create or remove files in install directory</div><div class="gmail_extra"><br></div><div class="gmail_extra">
The following error occurred while trying to add or remove files in the</div><div class="gmail_extra">installation directory:</div><div class="gmail_extra"><br></div><div class="gmail_extra">    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-69034.write-test'</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">The installation directory you specified (via --install-dir, --prefix, or</div><div class="gmail_extra">the distutils default setting) was:</div><div class="gmail_extra">
<br></div><div class="gmail_extra">    /Library/Python/2.7/site-packages/</div><div class="gmail_extra"><br></div><div class="gmail_extra">Perhaps your account does not have write access to this directory?  If the</div><div class="gmail_extra">
installation directory is a system-owned directory, you may need to sign in</div><div class="gmail_extra">as the administrator or "root" account.  If you do not have administrative</div><div class="gmail_extra">
access to this machine, you may wish to choose a different installation</div><div class="gmail_extra">directory, preferably one that is listed in your PYTHONPATH environment</div><div class="gmail_extra">variable.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">For information on other options, you may wish to consult the</div><div class="gmail_extra">documentation at:</div><div class="gmail_extra"><br></div><div class="gmail_extra">  <a href="http://packages.python.org/distribute/easy_install.html">http://packages.python.org/distribute/easy_install.html</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Please make the appropriate changes for your system and try again.</div><div class="gmail_extra"><br></div><div class="gmail_extra">==> Build Environment</div>
<div class="gmail_extra">CPU: 8-core 64-bit sandybridge</div><div class="gmail_extra">MacOS: 10.7.3-x86_64</div><div class="gmail_extra">Xcode: 4.3</div><div class="gmail_extra">CC: /usr/bin/clang</div><div class="gmail_extra">
CXX: /usr/bin/clang++ => /usr/bin/clang</div><div class="gmail_extra">LD: /usr/bin/clang</div><div class="gmail_extra">CFLAGS: -w -pipe</div><div class="gmail_extra">CXXFLAGS: -w -pipe</div><div class="gmail_extra">Error: Failed executing: easy_install PyYAML txaws pydot oauth txzookeeper (juju.rb:27)</div>
<div class="gmail_extra">If `brew doctor' does not help diagnose the issue, please report the bug:</div><div class="gmail_extra">    <a href="https://github.com/jujutools/homebrew-juju/issues/new">https://github.com/jujutools/homebrew-juju/issues/new</a></div>
<div class="gmail_extra">bash-3.2$ </div><div><br></div><br><div class="gmail_quote">On Sun, Apr 29, 2012 at 5:55 PM, Brandon Holtsclaw <span dir="ltr"><<a href="mailto:me@brandonholtsclaw.com" target="_blank">me@brandonholtsclaw.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">also if you can run <div class="im"><div><br></div><div><span>sudo chown -R $USER:staff /usr/local </span></div><div><span><br>
</span></div></div><div><span>manually, then you should be able to "brew edit juju" and edit the forumula to remove the line that you just manually did and save the file, then  you are able to again run "brew juju install" and it works from your edited forumla </span></div>

<div><span>Upto you, but just putting all the options out there, I'm working right now to get a basic FAQ up with some of this info, hope that will help some too.</span></div><div><br></div><div><div class="im">-- <br>
Brandon Holtsclaw<br>
Web <a href="http://brandonholtsclaw.com" target="_blank">http://brandonholtsclaw.com</a><br>Voice/SMS Tel:816-974-6106<br><br>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Sun, Apr 29, 2012 at 7:20 AM, Brandon Holtsclaw <span dir="ltr"><<a href="mailto:me@brandonholtsclaw.com" target="_blank">me@brandonholtsclaw.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ok , it looks like $USER is not set in your shell, but that is a given on the OSX login. also looking at your prompt thats a bash shell that has not had its PS1 set properly via /etc/profile &/or /etc/bashrc getting sources when your terminal session opens<div>


its should look similar to just, when set with the default export PS1 in profile , and like yours when just plain old bash with basically nothing , eg even the $USER set:</div><div>user@path $</div><div><div><br clear="all">


Anyhow short story is do a "export USER=yourlogin_shortname" and the prompt, then likely a "source /etc/profile && source ~/.profile" and finally try again, but I fear you may have more issues at this point that just those. I'll help any way I can though, might even be able to work out a way I can remote in and look around if we can get our schedules aligned. </div>


<div><br></div><div>Good news is .... looks like the Brew worked ( until it got a little invalid input ) though :) heh </div><div><br></div><div>Also as the brew doctor sugests you might want to add "export PATH=/usr/local/bin:/usr/local/sbin:$PATH" at the bottom of your ~/.profile before you source it so your path is also in the correct order of execution that most things expect.</div>


<div><br></div><div><div>-- <br>Brandon Holtsclaw<br>Web <a href="http://brandonholtsclaw.com" target="_blank">http://brandonholtsclaw.com</a><br>Voice/SMS Tel:<a href="tel:816-974-6106" value="+18169746106" target="_blank">816-974-6106</a><br>

<br>
<br><br></div><div><div><div class="gmail_quote">On Sun, Apr 29, 2012 at 3:46 AM, tog <span dir="ltr"><<a href="mailto:guillaume.alleon@gmail.com" target="_blank">guillaume.alleon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra">No pb ...</div><div class="gmail_extra">This morning I went back to the problem and still have a problem (see below)</div><div class="gmail_extra">First it seems there is a chown problem ... which might lead later to more problems.</div>



<div class="gmail_extra">Is that an homebrew problem.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I want to point out that I use Xcode CLI and not the full version (see <a href="http://kennethreitz.com/xcode-gcc-and-homebrew.html" target="_blank">http://kennethreitz.com/xcode-gcc-and-homebrew.html</a>)</div>



<div class="gmail_extra"><br></div><div class="gmail_extra">Best Regards</div><div class="gmail_extra">Guillaume</div><div class="gmail_extra">...</div><div class="gmail_extra"><div class="gmail_extra">==> Installing juju dependency: zookeeper</div>



<div class="gmail_extra">==> Downloading <a href="http://www.apache.org/dyn/closer.cgi?path=zookeeper/zookeeper-3.4.3/zookeeper-3.4.3.tar.gz" target="_blank">http://www.apache.org/dyn/closer.cgi?path=zookeeper/zookeeper-3.4.3/zookeeper-3.4.3.tar.gz</a></div>



<div class="gmail_extra">Already downloaded: /Library/Caches/Homebrew/zookeeper-3.4.3.tar.gz</div><div class="gmail_extra">/usr/local/Cellar/zookeeper/3.4.3: 191 files, 11M, built in 2 seconds</div><div class="gmail_extra">



==> Installing juju</div><div class="gmail_extra">==> Cloning lp:juju</div><div class="gmail_extra">Updating /Library/Caches/Homebrew/juju--bzr</div><div class="gmail_extra">Tree is up to date at revision 532 of branch <a href="http://bazaar.launchpad.net/~juju/juju/trunk" target="_blank">http://bazaar.launchpad.net/~juju/juju/trunk</a>                                                                                    </div>



<div class="gmail_extra">==> sudo chown -R $USER:staff /usr/local</div><div class="gmail_extra">Password:</div><div class="gmail_extra">chown: $USER: Invalid argument</div><div class="gmail_extra">==> Build Environment</div>



<div class="gmail_extra">CPU: 8-core 64-bit sandybridge</div><div class="gmail_extra">MacOS: 10.7.3-x86_64</div><div class="gmail_extra">Xcode: 4.3</div><div class="gmail_extra">CC: /usr/bin/clang</div><div class="gmail_extra">



CXX: /usr/bin/clang++ => /usr/bin/clang</div><div class="gmail_extra">LD: /usr/bin/clang</div><div class="gmail_extra">CFLAGS: -w -pipe</div><div class="gmail_extra">CXXFLAGS: -w -pipe</div><div class="gmail_extra">Error: Failed executing: sudo chown -R $USER:staff /usr/local (juju.rb:26)</div>



<div class="gmail_extra">If `brew doctor' does not help diagnose the issue, please report the bug:</div><div class="gmail_extra">    <a href="https://github.com/jujutools/homebrew-juju/issues/new" target="_blank">https://github.com/jujutools/homebrew-juju/issues/new</a></div>



<div class="gmail_extra">bash-3.2$ brew doctor</div><div class="gmail_extra"><br></div><div class="gmail_extra">Warning: "config" scripts exist outside your system or Homebrew directories.</div><div class="gmail_extra">



`./configure` scripts often look for *-config scripts to determine if</div><div class="gmail_extra">software packages are installed, and what additional flags to use when</div><div class="gmail_extra">compiling and linking.</div>



<div class="gmail_extra"><br></div><div class="gmail_extra">Having additional scripts in your path can confuse software installed via</div><div class="gmail_extra">Homebrew if the config script overrides a system or Homebrew provided</div>



<div class="gmail_extra">script of the same name. We found the following "config" scripts:</div><div class="gmail_extra"><br></div><div class="gmail_extra">    /Applications/ec2-api-tools-1.5.3.0/bin/as-create-launch-config</div>



<div class="gmail_extra">    /Applications/ec2-api-tools-1.5.3.0/bin/as-delete-launch-config</div><div class="gmail_extra">Warning: /usr/bin occurs before /usr/local/bin</div><div class="gmail_extra">This means that system-provided programs will be used instead of those</div>



<div class="gmail_extra">provided by Homebrew. The following tools exist at both paths:</div><div class="gmail_extra"><br></div><div class="gmail_extra">    easy_install</div><div class="gmail_extra">    easy_install-2.7</div>



<div class="gmail_extra"><br></div><div class="gmail_extra">Consider amending your PATH so that /usr/local/bin</div><div class="gmail_extra">is ahead of /usr/bin in your PATH.</div><div class="gmail_extra">Warning: Homebrew's sbin was not found in your path.</div>



<div class="gmail_extra">Consider amending your PATH variable so it contains:</div><div class="gmail_extra">  /usr/local/sbin</div><div class="gmail_extra">Warning: Your Xcode is configured with an invalid path.</div><div class="gmail_extra">



You should change it to the correct path. Please note that there is no correct</div><div class="gmail_extra">path at this time if you have *only* installed the Command Line Tools for Xcode.</div><div class="gmail_extra">


If your Xcode is pre-4.3 or you installed the whole of Xcode 4.3 then one of</div>
<div class="gmail_extra">these is (probably) what you want:</div><div class="gmail_extra"><br></div><div class="gmail_extra">    sudo xcode-select -switch /Developer</div><div class="gmail_extra">    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer</div>



<div class="gmail_extra"><br></div><div class="gmail_extra">DO NOT SET / OR EVERYTHING BREAKS!</div><div class="gmail_extra">bash-3.2$ </div><div><div><div><br></div><br><div class="gmail_quote">On Sun, Apr 29, 2012 at 5:22 AM, Brandon Holtsclaw <span dir="ltr"><<a href="mailto:me@brandonholtsclaw.com" target="_blank">me@brandonholtsclaw.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Apologies for not getting back to you and the list earlier, but juju should now be installable once again. I'll be making a blog post about it later as well so the wider community will be aware if they had tried to update or install the past day or so it likely had failed. Also if you have more problems feel free to catch me on IRC as well in #juju on <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> or file a bug on Launchpad and if your using OS X, please include that in the description or add a bug tag of osx . :)<div>




<br></div><div><div>To pickup where you left off just "brew update && brew install juju" (no quotes)</div><div> </div><div>Please do NOT use sudo with those commands as you may be used to with apt-get et al., brew installed things into the user writeable /usr/local file hierarchy and if you use sudo not only will it possibly create permissions problems in /usr/local/* in the future but brew will fail, and very loudly at that to do anything as root.</div>




<div><br></div><div>Cheers!<div><br clear="all">-- <br>Brandon Holtsclaw<br>Web <a href="http://brandonholtsclaw.com" target="_blank">http://brandonholtsclaw.com</a><br>Voice/SMS Tel:<a href="tel:816-974-6106" value="+18169746106" target="_blank">816-974-6106</a><br>


<br>
<br><br></div><div><div><div class="gmail_quote">On Sat, Apr 28, 2012 at 9:26 AM, tog <span dir="ltr"><<a href="mailto:guillaume.alleon@gmail.com" target="_blank">guillaume.alleon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra">Thanks for this quick answer. Will wait for the brew update.</div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 28, 2012 at 7:52 PM, Brandon Holtsclaw <span dir="ltr"><<a href="mailto:me@brandonholtsclaw.com" target="_blank">me@brandonholtsclaw.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yup, there was an issue reported in the bug tracker about this a few hours ago, got a fix in the works and should be uploaded soon<div>





<br></div><div>If you like you can download the tarbal of juju and once unzipped you can run "sudo python setup.py install" and it will clear up and install from that point, the hard part of installing the other requirements has been completed by that point.</div>






<div><br></div><div>Brew should be updated by the end of the day though with a fix if you'd like to wait and for that.</div><div><br clear="all">-- <br>Brandon Holtsclaw<br>Web <a href="http://brandonholtsclaw.com" target="_blank">http://brandonholtsclaw.com</a><br>






Voice/SMS Tel:<a href="tel:816-974-6106" value="+18169746106" target="_blank">816-974-6106</a><br><br>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sat, Apr 28, 2012 at 8:53 AM, tog <span dir="ltr"><<a href="mailto:guillaume.alleon@gmail.com" target="_blank">guillaume.alleon@gmail.com</a>></span> wrote:<br>






</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,<div><br></div><div>I tried to install juju using brew. </div><div><br></div><div>
<div>togs-MacBook-Pro:~ tog$ brew install juju</div>
<div>==> Downloading <a href="https://launchpad.net/ubuntu/precise/+source/juju/0.5+bzr531-0ubuntu1/+files/juju_0.5+bzr531.orig.tar.gz" target="_blank">https://launchpad.net/ubuntu/precise/+source/juju/0.5+bzr531-0ubuntu1/+files/juju_0.5+bzr531.orig.tar.gz</a></div>







<div>Already downloaded: /Library/Caches/Homebrew/juju-0.5.531.tar.gz</div><div>==> sudo /usr/bin/easy_install txzookeeper PyYAML txaws pydot oauth</div><div>==> sudo /usr/bin/python ./setup.py install</div><div>Error: Permission denied - /tmp/homebrew-juju-0.5.531-qXpu/juju_0.5+bzr531.orig/build/bdist.macosx-10.7-intel</div>







<div>togs-MacBook-Pro:~ tog$ brew install juju</div><div>==> Downloading <a href="https://launchpad.net/ubuntu/precise/+source/juju/0.5+bzr531-0ubuntu1/+files/juju_0.5+bzr531.orig.tar.gz" target="_blank">https://launchpad.net/ubuntu/precise/+source/juju/0.5+bzr531-0ubuntu1/+files/juju_0.5+bzr531.orig.tar.gz</a></div>







<div>Already downloaded: /Library/Caches/Homebrew/juju-0.5.531.tar.gz</div><div>==> sudo /usr/bin/easy_install txzookeeper PyYAML txaws pydot oauth</div><div>Password:</div><div>==> sudo /usr/bin/python ./setup.py install</div>







<div>Error: Permission denied - /tmp/homebrew-juju-0.5.531-dSAC/juju_0.5+bzr531.orig/build/bdist.macosx-10.7-intel</div><div><br></div><div><br></div><div>Anyone having the same issue ?</div><div><br></div><div>Best Regards</div>







<div>Guillaume</div><span><font color="#888888"><div><br></div><div><br></div><div><br></div>-- <br>PGP KeyID: 2048R/EA31CFC9  <a href="http://subkeys.pgp.net" target="_blank">subkeys.pgp.net</a><br>
</font></span></div>
<br></div></div><span><font color="#888888">--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></font></span></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>PGP KeyID: 2048R/EA31CFC9  <a href="http://subkeys.pgp.net" target="_blank">subkeys.pgp.net</a><br>
</div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>PGP KeyID: 2048R/EA31CFC9  <a href="http://subkeys.pgp.net" target="_blank">subkeys.pgp.net</a><br>
</div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>PGP KeyID: 2048R/EA31CFC9  <a href="http://subkeys.pgp.net" target="_blank">subkeys.pgp.net</a><br>
</div>