srsudar / eg

Useful examples at the command line.
MIT License
1.82k stars 99 forks source link

Error installing on mac os #10

Closed mastermind1981 closed 9 years ago

mastermind1981 commented 9 years ago

Hi,

First of all, i want to thank you for your great job.

I have a problem installing eg on mac os yosemite. I use python-2.7.9. When installing eg i got this error :

You are using pip version 6.1.0, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting eg
  Downloading eg-0.0.3.tar.gz
Installing collected packages: eg
  Running setup.py install for eg
    Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-build-SquNOd/eg/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-0SWL60-record/install-record.txt --single-version-externally-managed --compile:
    /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/eg
    copying eg/__init__.py -> build/lib/eg
    copying eg/eg_colorizer.py -> build/lib/eg
    copying eg/eg_config.py -> build/lib/eg
    copying eg/eg_exec.py -> build/lib/eg
    copying eg/eg_util.py -> build/lib/eg
    creating build/lib/eg/examples
    copying eg/examples/awk.md -> build/lib/eg/examples
    copying eg/examples/cat.md -> build/lib/eg/examples
    copying eg/examples/cd.md -> build/lib/eg/examples
    copying eg/examples/chmod.md -> build/lib/eg/examples
    copying eg/examples/chown.md -> build/lib/eg/examples
    copying eg/examples/cp.md -> build/lib/eg/examples
    copying eg/examples/curl.md -> build/lib/eg/examples
    copying eg/examples/cut.md -> build/lib/eg/examples
    copying eg/examples/du.md -> build/lib/eg/examples
    copying eg/examples/find.md -> build/lib/eg/examples
    copying eg/examples/gcc.md -> build/lib/eg/examples
    copying eg/examples/grep.md -> build/lib/eg/examples
    copying eg/examples/hexdump.md -> build/lib/eg/examples
    copying eg/examples/ifconfig.md -> build/lib/eg/examples
    copying eg/examples/kill.md -> build/lib/eg/examples
    copying eg/examples/less.md -> build/lib/eg/examples
    copying eg/examples/ln.md -> build/lib/eg/examples
    copying eg/examples/locate.md -> build/lib/eg/examples
    copying eg/examples/ls.md -> build/lib/eg/examples
    copying eg/examples/mkdir.md -> build/lib/eg/examples
    copying eg/examples/more.md -> build/lib/eg/examples
    copying eg/examples/mv.md -> build/lib/eg/examples
    copying eg/examples/od.md -> build/lib/eg/examples
    copying eg/examples/ps.md -> build/lib/eg/examples
    copying eg/examples/pwd.md -> build/lib/eg/examples
    copying eg/examples/rm.md -> build/lib/eg/examples
    copying eg/examples/scp.md -> build/lib/eg/examples
    copying eg/examples/sort.md -> build/lib/eg/examples
    copying eg/examples/su.md -> build/lib/eg/examples
    copying eg/examples/sudo.md -> build/lib/eg/examples
    copying eg/examples/tar.md -> build/lib/eg/examples
    copying eg/examples/top.md -> build/lib/eg/examples
    copying eg/examples/touch.md -> build/lib/eg/examples
    copying eg/examples/tr.md -> build/lib/eg/examples
    copying eg/examples/wc.md -> build/lib/eg/examples
    copying eg/examples/whatis.md -> build/lib/eg/examples
    copying eg/examples/whereis.md -> build/lib/eg/examples
    copying eg/examples/which.md -> build/lib/eg/examples
    copying eg/examples/xargs.md -> build/lib/eg/examples
    running build_scripts
    creating build/scripts-2.7
    copying and adjusting bin/eg -> build/scripts-2.7
    changing mode of build/scripts-2.7/eg from 644 to 755
    running install_lib
    creating /usr/local/lib/python2.7/site-packages/eg
    copying build/lib/eg/__init__.py -> /usr/local/lib/python2.7/site-packages/eg
    copying build/lib/eg/eg_colorizer.py -> /usr/local/lib/python2.7/site-packages/eg
    copying build/lib/eg/eg_config.py -> /usr/local/lib/python2.7/site-packages/eg
    copying build/lib/eg/eg_exec.py -> /usr/local/lib/python2.7/site-packages/eg
    copying build/lib/eg/eg_util.py -> /usr/local/lib/python2.7/site-packages/eg
    creating /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/awk.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/cat.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/cd.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/chmod.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/chown.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/cp.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/curl.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/cut.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/du.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/find.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/gcc.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/grep.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/hexdump.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/ifconfig.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/kill.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/less.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/ln.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/locate.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/ls.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/mkdir.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/more.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/mv.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/od.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/ps.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/pwd.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/rm.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/scp.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/sort.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/su.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/sudo.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/tar.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/top.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/touch.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/tr.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/wc.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/whatis.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/whereis.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/which.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    copying build/lib/eg/examples/xargs.md -> /usr/local/lib/python2.7/site-packages/eg/examples
    byte-compiling /usr/local/lib/python2.7/site-packages/eg/__init__.py to __init__.pyc
    byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_colorizer.py to eg_colorizer.pyc
    byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_config.py to eg_config.pyc
    byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_exec.py to eg_exec.pyc
    byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_util.py to eg_util.pyc
    running install_egg_info
    running egg_info
    writing eg.egg-info/PKG-INFO
    writing top-level names to eg.egg-info/top_level.txt
    writing dependency_links to eg.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'eg.egg-info/SOURCES.txt'
    writing manifest file 'eg.egg-info/SOURCES.txt'
    Copying eg.egg-info to /usr/local/lib/python2.7/site-packages/eg-0.0.3-py2.7.egg-info
    running install_scripts
    copying build/scripts-2.7/eg -> /usr/local/bin
    error: [Errno 62] Too many levels of symbolic links: '/usr/local/bin/eg'

    ----------------------------------------
    Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-build-SquNOd/eg/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-0SWL60-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-build-SquNOd/eg

Thanks

srsudar commented 9 years ago

Hmm I'm not sure. Did you run with sudo? At least for me, if I don't, the errors can be inscrutable:

sudo pip install eg

If that doesn't fix it, try upgrading pip versions as it suggests and see if that fixes it.

Let me know if not.

On Sun, Apr 26, 2015, 7:10 PM mastermind1981 notifications@github.com wrote:

Hi,

First of all, i want to thank you for your great job.

I have a problem installing eg on mac os yosemite. I use python-2.7.9. When installing eg i got this error :

You are using pip version 6.1.0, however version 6.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting eg Downloading eg-0.0.3.tar.gz Installing collected packages: eg Running setup.py install for eg Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;file='/private/var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-build-SquNOd/eg/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-0SWL60-record/install-record.txt --single-version-externally-managed --compile: /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires' warnings.warn(msg) running install running build running build_py creating build creating build/lib creating build/lib/eg copying eg/init.py -> build/lib/eg copying eg/eg_colorizer.py -> build/lib/eg copying eg/eg_config.py -> build/lib/eg copying eg/eg_exec.py -> build/lib/eg copying eg/eg_util.py -> build/lib/eg creating build/lib/eg/examples copying eg/examples/awk.md -> build/lib/eg/examples copying eg/examples/cat.md -> build/lib/eg/examples copying eg/examples/cd.md -> build/lib/eg/examples copying eg/examples/chmod.md -> build/lib/eg/examples copying eg/examples/chown.md -> build/lib/eg/examples copying eg/examples/cp.md -> build/lib/eg/examples copying eg/examples/curl.md -> build/lib/eg/examples copying eg/examples/cut.md -> build/lib/eg/examples copying eg/examples/du.md -> build/lib/eg/examples copying eg/examples/find.md -> build/lib/eg/examples copying eg/examples/gcc.md -> build/lib/eg/examples copying eg/examples/grep.md -> build/lib/eg/examples copying eg/examples/hexdump.md -> build/lib/eg/examples copying eg/examples/ifconfig.md -> build/lib/eg/examples copying eg/examples/kill.md -> build/lib/eg/examples copying eg/examples/less.md -> build/lib/eg/examples copying eg/examples/ln.md -> build/lib/eg/examples copying eg/examples/locate.md -> build/lib/eg/examples copying eg/examples/ls.md -> build/lib/eg/examples copying eg/examples/mkdir.md -> build/lib/eg/examples copying eg/examples/more.md -> build/lib/eg/examples copying eg/examples/mv.md -> build/lib/eg/examples copying eg/examples/od.md -> build/lib/eg/examples copying eg/examples/ps.md -> build/lib/eg/examples copying eg/examples/pwd.md -> build/lib/eg/examples copying eg/examples/rm.md -> build/lib/eg/examples copying eg/examples/scp.md -> build/lib/eg/examples copying eg/examples/sort.md -> build/lib/eg/examples copying eg/examples/su.md -> build/lib/eg/examples copying eg/examples/sudo.md -> build/lib/eg/examples copying eg/examples/tar.md -> build/lib/eg/examples copying eg/examples/top.md -> build/lib/eg/examples copying eg/examples/touch.md -> build/lib/eg/examples copying eg/examples/tr.md -> build/lib/eg/examples copying eg/examples/wc.md -> build/lib/eg/examples copying eg/examples/whatis.md -> build/lib/eg/examples copying eg/examples/whereis.md -> build/lib/eg/examples copying eg/examples/which.md -> build/lib/eg/examples copying eg/examples/xargs.md -> build/lib/eg/examples running build_scripts creating build/scripts-2.7 copying and adjusting bin/eg -> build/scripts-2.7 changing mode of build/scripts-2.7/eg from 644 to 755 running install_lib creating /usr/local/lib/python2.7/site-packages/eg copying build/lib/eg/init.py -> /usr/local/lib/python2.7/site-packages/eg copying build/lib/eg/eg_colorizer.py -> /usr/local/lib/python2.7/site-packages/eg copying build/lib/eg/eg_config.py -> /usr/local/lib/python2.7/site-packages/eg copying build/lib/eg/eg_exec.py -> /usr/local/lib/python2.7/site-packages/eg copying build/lib/eg/eg_util.py -> /usr/local/lib/python2.7/site-packages/eg creating /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/awk.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/cat.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/cd.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/chmod.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/chown.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/cp.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/curl.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/cut.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/du.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/find.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/gcc.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/grep.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/hexdump.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/ifconfig.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/kill.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/less.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/ln.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/locate.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/ls.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/mkdir.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/more.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/mv.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/od.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/ps.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/pwd.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/rm.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/scp.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/sort.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/su.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/sudo.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/tar.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/top.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/touch.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/tr.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/wc.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/whatis.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/whereis.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/which.md -> /usr/local/lib/python2.7/site-packages/eg/examples copying build/lib/eg/examples/xargs.md -> /usr/local/lib/python2.7/site-packages/eg/examples byte-compiling /usr/local/lib/python2.7/site-packages/eg/init.py to init.pyc byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_colorizer.py to eg_colorizer.pyc byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_config.py to eg_config.pyc byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_exec.py to eg_exec.pyc byte-compiling /usr/local/lib/python2.7/site-packages/eg/eg_util.py to eg_util.pyc running install_egg_info running egg_info writing eg.egg-info/PKG-INFO writing top-level names to eg.egg-info/top_level.txt writing dependency_links to eg.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found

reading manifest file 'eg.egg-info/SOURCES.txt'
writing manifest file 'eg.egg-info/SOURCES.txt'
Copying eg.egg-info to /usr/local/lib/python2.7/site-packages/eg-0.0.3-py2.7.egg-info
running install_scripts
copying build/scripts-2.7/eg -> /usr/local/bin
error: [Errno 62] Too many levels of symbolic links: '/usr/local/bin/eg'

----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-build-SquNOd/eg/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-0SWL60-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/6r/1yy2rml521q84_4mbl7qlgkw0000gq/T/pip-build-SquNOd/eg

Thanks

— Reply to this email directly or view it on GitHub https://github.com/srsudar/eg/issues/10.

srsudar commented 9 years ago

Any progress?

mastermind1981 commented 9 years ago

Not working yet, i have the same error, actually it may be related to this.

srsudar commented 9 years ago

Did you try running with sudo, like sudo pip install eg?

mastermind1981 commented 9 years ago

yep the error is still there

srsudar commented 9 years ago

Can you install other things with pip?

Are you trying to install with a virtualenv active or anything? It looks like not from those paths, but just checking.

mastermind1981 commented 9 years ago

I installed another packages with pip and they work fine.

I didn't installed with virtualenv.

srsudar commented 9 years ago

Can you run the following commands and give me the output? /usr/local/bin/eg

ls -l /
ls -l /usr
ls -l /usr/local
ls -l /usr/local/bin
ls -l /usr/local/bin/eg
mastermind1981 commented 9 years ago

Hi, Here is the output. ls -l /

total 53
drwxrwxr-x+ 102 root  admin  3468 Apr 19 00:28 Applications
lrwxr-xr-x    1 root  wheel    60 Jan  2  2012 Guides de l’utilisateur et informations -> /Library/Documentation/User Guides and Information.localized
drwxrwxr-x    4 root  admin   136 Feb 27 22:03 Incompatible Software
drwxr-xr-x+  72 root  wheel  2448 Mar  6 16:21 Library
drwxr-xr-x@   2 root  wheel    68 Sep  9  2014 Network
drwxr-xr-x+   4 root  wheel   136 Feb 27 20:08 System
drwxr-xr-x    7 root  admin   238 Feb 27 20:12 Users
drwxrwxrwt@   3 root  admin   102 Apr 30 00:31 Volumes
drwxr-xr-x@  39 root  wheel  1326 Feb 27 20:09 bin
drwxrwxr-t@   2 root  admin    68 Sep  9  2014 cores
dr-xr-xr-x    3 root  wheel  4273 Apr 30 00:30 dev
lrwxr-xr-x@   1 root  wheel    11 Feb 27 19:59 etc -> private/etc
dr-xr-xr-x    2 root  wheel     1 Apr 30 00:31 home
-rw-r--r--@   1 root  wheel   313 Oct  1  2014 installer.failurerequests
dr-xr-xr-x    2 root  wheel     1 Apr 30 00:31 net
drwxr-xr-x@   3 root  admin   102 Jul 21  2011 opt
drwxr-xr-x@   6 root  wheel   204 Feb 27 20:12 private
drwxr-xr-x@  59 root  wheel  2006 Feb 27 20:10 sbin
lrwxr-xr-x@   1 root  wheel    11 Feb 27 20:02 tmp -> private/tmp
drwxr-xr-x@  12 root  wheel   408 Feb 27 22:37 usr
lrwxr-xr-x@   1 root  wheel    11 Feb 27 20:02 var -> private/var

ls -l /usr

total 8
drwxr-xr-x     5 root  wheel    170 Sep  9  2014 X11
lrwxr-xr-x     1 root  wheel      3 Feb 27 20:11 X11R6 -> X11
drwxr-xr-x  1072 root  wheel  36448 Apr 20 21:25 bin
drwxr-xr-x   257 root  wheel   8738 Feb 27 22:36 include
drwxr-xr-x   274 root  wheel   9316 Mar  3 04:41 lib
drwxr-xr-x   171 root  wheel   5814 Mar  3 04:41 libexec
drwxrwxrwx    36 dev   wheel   1224 Apr 27 04:02 local
drwxr-xr-x   243 root  wheel   8262 Feb 27 20:10 sbin
drwxr-xr-x    44 root  wheel   1496 Feb 27 22:37 share
drwxr-xr-x     4 root  wheel    136 Feb 27 20:02 standalone

ls -l /usr/local

total 568
-rw-r--r--    1 dev   wheel    3160 Feb 27 17:49 CODEOFCONDUCT.md
-rw-r--r--    1 dev   wheel    1103 Feb 27 17:49 CONTRIBUTING.md
drwxr-xr-x   15 dev   wheel     510 Apr 27 04:02 Cellar
drwxr-xr-x    3 dev   wheel     102 Apr 27 04:02 Frameworks
-rw-r--r--    1 dev   wheel    1241 Feb 27 17:49 LICENSE.txt
drwxr-xr-x   11 dev   wheel     374 Apr 20 21:05 Library
drwxrwxrwx@  35 dev   group    1190 Feb 27 20:30 OpenGTS_2.5.1
-rw-rw-rw-    1 dev   wheel  228092 Feb 25  2014 PortDetect.log
-rw-r--r--    1 dev   wheel    2064 Feb 27 17:49 README.md
-rw-r--r--    1 dev   wheel   23781 Feb 27 17:49 SUPPORTERS.md
drwxr-xr-x@   9 dev   wheel     306 Mar  4 00:46 apache-maven-3.2.5
drwxrwxrwx@  12 dev   staff     408 Feb 27 20:30 apache-tomcat-7.0.42
drwxrwxr-x  103 dev   admin    3502 Apr 29 21:20 bin
drwxr-xr-x    4 dev   wheel     136 Apr 20 21:03 etc
drwxrwxrwx    6 dev   staff     204 Feb 27 20:27 foreman
drwxrwxrwx    8 dev   wheel     272 Feb 27 20:28 git
lrwxr-xr-x    1 dev   wheel      25 Oct  4  2013 gts -> /usr/local/OpenGTS_2.5.1/
drwxrwxrwx    6 dev   staff     204 Feb 27 20:26 heroku
drwxrwxrwx    4 dev   wheel     136 Feb 27 20:22 hw_mobile_userdata
drwxrwxrwx    3 dev   wheel     102 Feb 27 20:21 hw_mp_userdata
drwxr-xr-x    4 dev   wheel     136 Apr 27 04:02 include
lrwxr-xr-x    1 dev   wheel       5 Oct  4  2013 java -> /user
drwxrwxr-x    8 dev   admin     272 Apr 27 04:02 lib
lrwxr-xr-x    1 dev   wheel      18 Mar  4 00:47 maven -> apache-maven-3.2.5
lrwxr-xr-x    1 root  wheel      27 Mar  6 16:55 mysql -> mysql-5.6.23-osx10.8-x86_64
drwxrwxrwx    4 dev   wheel     136 Mar  6 16:56 mysql-5.6.14-osx10.7-x86_64
drwxr-xr-x   17 root  wheel     578 Mar  6 16:56 mysql-5.6.23-osx10.8-x86_64
drwxr-xr-x   14 dev   wheel     476 Apr 27 04:02 opt
drwxrwxr-x   11 dev   admin     374 Apr 27 04:02 share
lrwxr-xr-x    1 dev   wheel      15 Oct  4  2013 tomcat -> /Library/Tomcat

ls -l /usr/local/bin

lrwxr-xr-x  1 dev   admin        31 Apr 27 04:02 2to3 -> ../Cellar/python/2.7.9/bin/2to3
lrwxr-xr-x  1 dev   admin        33 Apr 27 04:02 2to3-2 -> ../Cellar/python/2.7.9/bin/2to3-2
lrwxr-xr-x  1 dev   admin        35 Apr 27 04:02 2to3-2.7 -> ../Cellar/python/2.7.9/bin/2to3-2.7
lrwxr-xr-x  1 dev   admin        36 Apr 20 21:03 autoconf -> ../Cellar/autoconf/2.69/bin/autoconf
lrwxr-xr-x  1 dev   admin        38 Apr 20 21:03 autoheader -> ../Cellar/autoconf/2.69/bin/autoheader
lrwxr-xr-x  1 dev   admin        36 Apr 20 21:03 autom4te -> ../Cellar/autoconf/2.69/bin/autom4te
lrwxr-xr-x  1 dev   admin        38 Apr 20 21:03 autoreconf -> ../Cellar/autoconf/2.69/bin/autoreconf
lrwxr-xr-x  1 dev   admin        36 Apr 20 21:03 autoscan -> ../Cellar/autoconf/2.69/bin/autoscan
lrwxr-xr-x  1 dev   admin        38 Apr 20 21:03 autoupdate -> ../Cellar/autoconf/2.69/bin/autoupdate
lrwxr-xr-x  1 root  admin        35 Apr  2 01:13 bower -> ../lib/node_modules/bower/bin/bower
-rwxr-xr-x  1 dev   admin       791 Feb 27 17:49 brew
-rwxr-xr-x  1 107   117    22076572 Feb 12 00:32 cf
lrwxr-xr-x  1 dev   admin        39 Apr 27 04:03 easy_install -> ../Cellar/python/2.7.9/bin/easy_install
lrwxr-xr-x  1 dev   admin        43 Apr 27 04:03 easy_install-2.7 -> ../Cellar/python/2.7.9/bin/easy_install-2.7
lrwxr-xr-x  1 dev   admin        15 Apr 27 03:59 eg -> ./eg/eg_exec.py
lrwxr-xr-x  1 dev   admin        33 Apr 27 04:02 gdbm_dump -> ../Cellar/gdbm/1.11/bin/gdbm_dump
lrwxr-xr-x  1 dev   admin        33 Apr 27 04:02 gdbm_load -> ../Cellar/gdbm/1.11/bin/gdbm_load
lrwxr-xr-x  1 dev   admin        32 Apr 27 04:02 gdbmtool -> ../Cellar/gdbm/1.11/bin/gdbmtool
lrwxr-xr-x  1 dev   admin        31 Mar  6 21:00 gradle -> ../Cellar/gradle/2.3/bin/gradle
lrwxrwxr-x+ 1 dev   admin        39 Feb 16 21:59 grunt -> ../lib/node_modules/grunt-cli/bin/grunt
lrwxr-xr-x  1 root  admin        36 Mar  1 04:45 gulp -> ../lib/node_modules/gulp/bin/gulp.js
lrwxr-xr-x  1 dev   admin        31 Apr 27 04:02 idle -> ../Cellar/python/2.7.9/bin/idle
lrwxr-xr-x  1 dev   admin        32 Apr 27 04:02 idle2 -> ../Cellar/python/2.7.9/bin/idle2
lrwxr-xr-x  1 dev   admin        34 Apr 27 04:02 idle2.7 -> ../Cellar/python/2.7.9/bin/idle2.7
lrwxr-xr-x  1 dev   admin        35 Apr 20 21:03 ifnames -> ../Cellar/autoconf/2.69/bin/ifnames
lrwxr-xr-x  1 root  admin        78 Apr 11 12:46 lb-ng -> ../lib/node_modules/strongloop/node_modules/loopback-sdk-angular-cli/bin/lb-ng
lrwxr-xr-x  1 root  admin        82 Apr 11 12:46 lb-ng-doc -> ../lib/node_modules/strongloop/node_modules/loopback-sdk-angular-cli/bin/lb-ng-doc
lrwxr-xr-x  1 dev   admin        39 Mar  7 05:08 liquibase -> ../Cellar/liquibase/3.3.1/bin/liquibase
lrwxr-xr-x  1 root  admin        50 Apr  1 13:33 machinepack -> ../lib/node_modules/machinepack/bin/machinepack.js
lrwxr-xr-x  1 root  admin        56 Apr  1 13:33 machinepack-about -> ../lib/node_modules/machinepack/bin/machinepack-about.js
lrwxr-xr-x  1 root  admin        54 Apr  1 13:33 machinepack-add -> ../lib/node_modules/machinepack/bin/machinepack-add.js
lrwxr-xr-x  1 root  admin        57 Apr  1 13:33 machinepack-browse -> ../lib/node_modules/machinepack/bin/machinepack-browse.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 machinepack-cp -> ../lib/node_modules/machinepack/bin/machinepack-cp.js
lrwxr-xr-x  1 root  admin        55 Apr  1 13:33 machinepack-exec -> ../lib/node_modules/machinepack/bin/machinepack-exec.js
lrwxr-xr-x  1 root  admin        55 Apr  1 13:33 machinepack-info -> ../lib/node_modules/machinepack/bin/machinepack-info.js
lrwxr-xr-x  1 root  admin        55 Apr  1 13:33 machinepack-init -> ../lib/node_modules/machinepack/bin/machinepack-init.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 machinepack-ls -> ../lib/node_modules/machinepack/bin/machinepack-ls.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 machinepack-mv -> ../lib/node_modules/machinepack/bin/machinepack-mv.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 machinepack-rm -> ../lib/node_modules/machinepack/bin/machinepack-rm.js
lrwxr-xr-x  1 root  admin        56 Apr  1 13:33 machinepack-scrub -> ../lib/node_modules/machinepack/bin/machinepack-scrub.js
lrwxr-xr-x  1 root  admin        50 Apr  1 13:33 mp -> ../lib/node_modules/machinepack/bin/machinepack.js
lrwxr-xr-x  1 root  admin        56 Apr  1 13:33 mp-about -> ../lib/node_modules/machinepack/bin/machinepack-about.js
lrwxr-xr-x  1 root  admin        54 Apr  1 13:33 mp-add -> ../lib/node_modules/machinepack/bin/machinepack-add.js
lrwxr-xr-x  1 root  admin        57 Apr  1 13:33 mp-browse -> ../lib/node_modules/machinepack/bin/machinepack-browse.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 mp-cp -> ../lib/node_modules/machinepack/bin/machinepack-cp.js
lrwxr-xr-x  1 root  admin        55 Apr  1 13:33 mp-exec -> ../lib/node_modules/machinepack/bin/machinepack-exec.js
lrwxr-xr-x  1 root  admin        55 Apr  1 13:33 mp-info -> ../lib/node_modules/machinepack/bin/machinepack-info.js
lrwxr-xr-x  1 root  admin        55 Apr  1 13:33 mp-init -> ../lib/node_modules/machinepack/bin/machinepack-init.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 mp-ls -> ../lib/node_modules/machinepack/bin/machinepack-ls.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 mp-mv -> ../lib/node_modules/machinepack/bin/machinepack-mv.js
lrwxr-xr-x  1 root  admin        53 Apr  1 13:33 mp-rm -> ../lib/node_modules/machinepack/bin/machinepack-rm.js
lrwxr-xr-x  1 root  admin        56 Apr  1 13:33 mp-scrub -> ../lib/node_modules/machinepack/bin/machinepack-scrub.js
lrwxr-xr-x  1 dev   admin        30 Feb 28 00:20 node -> ../Cellar/node/0.12.0/bin/node
lrwxr-xr-x  1 root  admin        52 Mar  1 20:59 node-debug -> ../lib/node_modules/node-inspector/bin/node-debug.js
lrwxr-xr-x  1 root  admin        51 Mar  1 20:59 node-inspector -> ../lib/node_modules/node-inspector/bin/inspector.js
lrwxr-xr-x  1 root  admin        45 Mar 16 00:33 nodewebkit -> ../lib/node_modules/nodewebkit/bin/nodewebkit
-rwxr-xr-x  1 dev   admin      1838 Apr 29 21:20 nopassword
lrwxr-xr-x  1 root  admin        46 Feb 28 00:28 npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x  1 dev   admin        30 Apr 27 04:03 pip -> ../Cellar/python/2.7.9/bin/pip
lrwxr-xr-x  1 dev   admin        31 Apr 27 04:03 pip2 -> ../Cellar/python/2.7.9/bin/pip2
lrwxr-xr-x  1 dev   admin        33 Apr 27 04:03 pip2.7 -> ../Cellar/python/2.7.9/bin/pip2.7
lrwxr-xr-x  1 dev   admin        40 Feb 27 17:51 pkg-config -> ../Cellar/pkg-config/0.28/bin/pkg-config
lrwxr-xr-x  1 dev   admin        32 Apr 27 04:02 pydoc -> ../Cellar/python/2.7.9/bin/pydoc
lrwxr-xr-x  1 dev   admin        33 Apr 27 04:02 pydoc2 -> ../Cellar/python/2.7.9/bin/pydoc2
lrwxr-xr-x  1 dev   admin        35 Apr 27 04:02 pydoc2.7 -> ../Cellar/python/2.7.9/bin/pydoc2.7
lrwxr-xr-x  1 dev   admin        33 Apr 27 04:02 python -> ../Cellar/python/2.7.9/bin/python
lrwxr-xr-x  1 dev   admin        40 Apr 27 04:02 python-config -> ../Cellar/python/2.7.9/bin/python-config
lrwxr-xr-x  1 dev   admin        34 Apr 27 04:02 python2 -> ../Cellar/python/2.7.9/bin/python2
lrwxr-xr-x  1 dev   admin        41 Apr 27 04:02 python2-config -> ../Cellar/python/2.7.9/bin/python2-config
lrwxr-xr-x  1 dev   admin        36 Apr 27 04:02 python2.7 -> ../Cellar/python/2.7.9/bin/python2.7
lrwxr-xr-x  1 dev   admin        43 Apr 27 04:02 python2.7-config -> ../Cellar/python/2.7.9/bin/python2.7-config
lrwxr-xr-x  1 dev   admin        34 Apr 27 04:02 pythonw -> ../Cellar/python/2.7.9/bin/pythonw
lrwxr-xr-x  1 dev   admin        35 Apr 27 04:02 pythonw2 -> ../Cellar/python/2.7.9/bin/pythonw2
lrwxr-xr-x  1 dev   admin        37 Apr 27 04:02 pythonw2.7 -> ../Cellar/python/2.7.9/bin/pythonw2.7
lrwxr-xr-x  1 dev   admin        31 Apr 20 21:03 rbenv -> ../Cellar/rbenv/0.4.0/bin/rbenv
lrwxr-xr-x  1 dev   admin        47 Apr 20 21:06 rbenv-install -> ../Cellar/ruby-build/20150413/bin/rbenv-install
lrwxr-xr-x  1 dev   admin        49 Apr 20 21:06 rbenv-uninstall -> ../Cellar/ruby-build/20150413/bin/rbenv-uninstall
lrwxr-xr-x  1 dev   admin        44 Apr 20 21:06 ruby-build -> ../Cellar/ruby-build/20150413/bin/ruby-build
lrwxr-xr-x  1 dev   admin        41 Apr 20 21:03 ruby-local-exec -> ../Cellar/rbenv/0.4.0/bin/ruby-local-exec
lrwxr-xr-x  1 root  admin        38 Apr  2 03:07 sails -> ../lib/node_modules/sails/bin/sails.js
lrwxr-xr-x  1 root  admin        38 Apr 11 12:46 slc -> ../lib/node_modules/strongloop/bin/slc
lrwxr-xr-x  1 dev   admin        35 Apr 27 04:02 smtpd.py -> ../Cellar/python/2.7.9/bin/smtpd.py
lrwxr-xr-x  1 dev   admin        38 Apr 27 04:02 smtpd2.7.py -> ../Cellar/python/2.7.9/bin/smtpd2.7.py
lrwxr-xr-x  1 dev   admin        36 Apr 27 04:02 smtpd2.py -> ../Cellar/python/2.7.9/bin/smtpd2.py
lrwxr-xr-x  1 root  admin        44 Apr 12 01:34 strong-studio -> ../lib/node_modules/strong-studio/bin/cli.js
lrwxr-xr-x  1 root  admin        44 Apr 10 16:18 tl -> ../lib/node_modules/treeline/bin/treeline.js
lrwxr-xr-x  1 root  admin        44 Apr 10 16:18 treeline -> ../lib/node_modules/treeline/bin/treeline.js
lrwxr-xr-x  1 root  admin        50 Apr 10 16:18 treeline-about -> ../lib/node_modules/treeline/bin/treeline-about.js
lrwxr-xr-x  1 root  admin        51 Apr 10 16:18 treeline-browse -> ../lib/node_modules/treeline/bin/treeline-browse.js
lrwxr-xr-x  1 root  admin        51 Apr 10 16:18 treeline-deploy -> ../lib/node_modules/treeline/bin/treeline-deploy.js
lrwxr-xr-x  1 root  admin        49 Apr 10 16:18 treeline-link -> ../lib/node_modules/treeline/bin/treeline-link.js
lrwxr-xr-x  1 root  admin        50 Apr 10 16:18 treeline-login -> ../lib/node_modules/treeline/bin/treeline-login.js
lrwxr-xr-x  1 root  admin        51 Apr 10 16:18 treeline-logout -> ../lib/node_modules/treeline/bin/treeline-logout.js
lrwxr-xr-x  1 root  admin        48 Apr 10 16:18 treeline-new -> ../lib/node_modules/treeline/bin/treeline-new.js
lrwxr-xr-x  1 root  admin        52 Apr 10 16:18 treeline-preview -> ../lib/node_modules/treeline/bin/treeline-preview.js
lrwxr-xr-x  1 root  admin        51 Apr 10 16:18 treeline-status -> ../lib/node_modules/treeline/bin/treeline-status.js
lrwxr-xr-x  1 root  admin        51 Apr 10 16:18 treeline-unlink -> ../lib/node_modules/treeline/bin/treeline-unlink.js
lrwxr-xr-x  1 root  admin        51 Apr 10 16:18 treeline-whoami -> ../lib/node_modules/treeline/bin/treeline-whoami.js
-rwxr--r--  1 dev   staff      2757 Feb 25 22:32 wstorm
lrwxr-xr-x  1 dev   admin        33 Feb 17 01:04 yo -> ../lib/node_modules/yo/lib/cli.js

ls -l /usr/local/bin/eg

lrwxr-xr-x  1 dev  admin  15 Apr 27 03:59 /usr/local/bin/eg -> ./eg/eg_exec.py
srsudar commented 9 years ago

Ah excellent, it looks like you previously followed the instructions to install via a symlink, and that is probably causing the problem as the file pip is trying to create at /usr/local/bin/eg already exists. Try removing that file with rm /usr/local/bin/eg and then installing with pip.

mastermind1981 commented 9 years ago

It works. I removed /usr/local/bin/eg and pip uninstall eg and finally re-install it.

Thank you very much Sam.

srsudar commented 9 years ago

Glad to hear it! No problem at all.