fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] How to install fabric on mac 10.9


From: Robin Kåveland Hansen
Subject: Re: [Fab-user] How to install fabric on mac 10.9
Date: Thu, 3 Apr 2014 09:17:55 +0200

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


On 2014年4月3日, at 11:43, David <address@hidden> wrote:

Hi Carlton, 

Thanks for your response quickly. :)

~$ which python
/usr/local/bin/python
~$ which fab
~$

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
~$



On 2014年4月2日, at 22:18, Carlton Gibson <address@hidden> wrote:


On 02 Apr 2014, at 09:55, David <address@hidden> wrote:

      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
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user


reply via email to

[Prev in Thread] Current Thread [Next in Thread]