ray: Macbook installation error

Hi, I’m following the instructions to install Ray on a macbook - http://ray.readthedocs.io/en/latest/install-on-macosx.html#installation-on-mac-os-x.

So far I installed the dependencies successfully. But when I try to install Ray using ‘python setup.py install --user’, I’m getting build failures.

/Users/gmedasani/software/anaconda_2_7/anaconda/include/python2.7/pyport.h:723:9: note: macro 'islower' defined here
#define islower(c) iswlower(btowc(c))
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/arrow/python/CMakeFiles/arrow_python_objlib.dir/common.cc.o] Error 1
make[1]: *** [src/arrow/python/CMakeFiles/arrow_python_objlib.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 46, in <module>
    license="Apache 2.0")
  File "/Users/gmedasani/software/anaconda_2_7/anaconda/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/Users/gmedasani/software/anaconda_2_7/anaconda/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/Users/gmedasani/software/anaconda_2_7/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 13, in run
    subprocess.check_call(["../build.sh"])
  File "/Users/gmedasani/software/anaconda_2_7/anaconda/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../build.sh']' returned non-zero exit status 2
gurudharmatejas-MacBook-Pro:python gmedasani$

My Operating System version and Python version.

gurudharmatejas-MacBook-Pro:python gmedasani$ python --version
Python 2.7.12 :: Anaconda custom (x86_64)

gurudharmatejas-MacBook-Pro:python gmedasani$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.12.4 (16E195)
      Kernel Version: Darwin 16.5.0
      Boot Volume: Macintosh HD
gurudharmatejas-MacBook-Pro:python gmedasani$

Libgcc version

gurudharmatejas-MacBook-Pro:python gmedasani$ conda install libgcc
Fetching package metadata .........
Solving package specifications: .

# All requested packages already installed.
# packages in environment at /Users/gmedasani/software/anaconda_2_7/anaconda:
#
libgcc                    4.8.5                         1
gurudharmatejas-MacBook-Pro:python gmedasani$

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 38 (29 by maintainers)

Commits related to this issue

Most upvoted comments

This looks like you also need to add libboost_regex.a to the dependencies of libnumbuf.so.

For future reference, it might be useful to run the build in this case with make VERBOSE=1 so that the full, failed linker command is in the log.