A problem with Gurobi 6.0.4, Python 2.7, and Anaconda 2.1.0, MacOSX

176 views
Skip to first unread message

E Ponce

unread,
May 28, 2015, 1:26:22 PM5/28/15
to gur...@googlegroups.com
Hi, 

I had Anaconda 2.1.0 and Python 2.7 in my Mac OSX (v.10.7.5) and it works OK. I installed Gurobi 6.0.4, and the license. I tried to ran a gurobipy program through the launcher (spider app, v.2.3.4) but it didn´t work. When I ran "python setup.py install" I got this error:

sh-3.2# python setup.py install
running install
running build
running build_py
running install_lib
running install_egg_info
Removing /Users/eponce/anaconda/lib/python2.7/site-packages/gurobipy-6.0.4-py2.7.egg-info
Writing /Users/eponce/anaconda/lib/python2.7/site-packages/gurobipy-6.0.4-py2.7.egg-info
Traceback (most recent call last):
  File "setup.py", line 66, in <module>
    subprocess.call(('install_name_tool', '-change', default, modified, sitelib))
  File "/Users/eponce/anaconda/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/Users/eponce/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/Users/eponce/anaconda/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Thanks for your help!

Renan Garcia

unread,
Jun 24, 2015, 9:09:01 AM6/24/15
to gur...@googlegroups.com
It looks as though your Mac is missing the 'install_name_tool'. You either need to install Xcode or its Command Line Tools. If you want to install the Command Line Tools, follow these instructions:

OS X 10.9 and newer:
http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/

OS X 10.8 and older:
http://osxdaily.com/2012/07/06/install-gcc-without-xcode-in-mac-os-x/

--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages