address@hidden:/usr/local/share$ pwd
/usr/local/share
address@hidden:/usr/local/share$ ll
total 88
drwxrwxr-x 18 24561 admin 612 2 19 14:28 .
drwxrwxr-x 17 root admin 578 2 19 14:22 ..
drwxr-xr-x 14 david admin 476 2 19 14:28 aclocal
lrwxr-xr-x 1 david admin 44 2 19 14:28 aclocal-1.14 -> ../Cellar/automake/1.14.1/share/aclocal-1.14
lrwxr-xr-x 1 david admin 38 12 10 12:42 autoconf -> ../Cellar/autoconf/2.69/share/autoconf
lrwxr-xr-x 1 david admin 45 2 19 14:28 automake-1.14 -> ../Cellar/automake/1.14.1/share/automake-1.14
lrwxr-xr-x 1 david admin 45 12 10 12:44 common-lisp -> ../Cellar/libgpg-error/1.12/share/common-lisp
drwxr-xr-x 5 david admin 170 2 19 14:28 doc
lrwxr-xr-x 1 david admin 35 12 10 12:42 emacs -> ../Cellar/autoconf/2.69/share/emacs
lrwxr-xr-x 1 david admin 37 12 10 16:25 gcc-4.6.4 -> ../Cellar/gcc46/4.6.4/share/gcc-4.6.4
lrwxr-xr-x 1 david admin 36 12 10 12:33 git-core -> ../Cellar/git/1.8.5.1/share/git-core
lrwxr-xr-x 1 david admin 35 12 10 12:33 git-gui -> ../Cellar/git/1.8.5.1/share/git-gui
lrwxr-xr-x 1 david admin 32 12 10 12:33 gitk -> ../Cellar/git/1.8.5.1/share/gitk
lrwxr-xr-x 1 david admin 34 12 10 12:33 gitweb -> ../Cellar/git/1.8.5.1/share/gitweb
drwxr-xr-x 4 root admin 136 12 30 12:32 info
lrwxr-xr-x 1 david admin 37 12 10 12:42 libtool -> ../Cellar/libtool/2.4.2/share/libtool
drwxrwxr-x 7 24561 admin 238 4 3 12:04 man
drwxr-xr-x 3 david admin 102 12 10 12:33 zsh
If I recall correctly, the location where pip installs executables on OSX changed in 10.9 or it was a brew update.
Can you find the fab executable in /usr/local/share/python ?
--
Vennlig hilsen,
Robin Kåveland Hansen,
Knowit
On Thursday 3 April 2014 at 05:49, David wrote:
hi, rahul:
~$ which python
/usr/local/bin/python
address@hidden:~$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/Users/david/.rvm/gems/ruby-2.0.0-p247/bin:/Users/david/.rvm/gems/address@hidden/bin:/Users/david/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/david/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/david/Applications/adt-bundle-mac-x86_64-20131030/sdk/platform-tools:/Users/david/Applications/adt-bundle-mac-x86_64-20131030/sdk/tools:~/Library/Python/2.7/bin/
It seems that /usr/local/bin is in my path
Hi Carlton,
Thanks for your response quickly. :)
~$ which python
/usr/local/bin/python
It seems that the fabric does not successfully to installed on my mac.
And I try to perform the step:
~$ sudo easy_install pip
Password:
Searching for pip
Best match: pip 1.4.1
Processing pip-1.4.1-py2.7.egg
Removing pip 1.0.2 from easy-install.pth file
Adding pip 1.4.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
~$ sudo pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Cleaning up...
~$ fab
-bash: fab: command not found
~$ which fab
~$
3. address@hidden:~# fab
bash: fab: command not found
What’s your PATH? — Where’s fabric installed to?
I was going to say have a look in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages but on my system (10.9 as well) it’s /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages — perhaps there’s something there.
For a couple of major versions now I’ve been using “sudo easy_install pip” then “sudo pip install fabric” to bootstrap this[*].
This leads to this:
~ $ which fab
/usr/local/bin/fab
~ $ which pip
/usr/local/bin/pip
Hopefully that helps somehow…
Regards,
Carlton
[*] The other two I go for globally is virtualenv and virtualenvwrapper. The other time I need easy_install is for readline (when wanting to use IPython) — but I do this from within the virtualenv[**].
[**] Should be able to forget a lot of this soon.
_______________________________________________
Fab-user mailing list