ray: Can't install Ray from source on OS X
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): OS X 10.13.3
- Ray installed from (source or binary): master version from git
- Ray version: master
- Python version: Python 3.6.4
- Exact command to reproduce:
Describe the problem
I am trying to install ray locally, to run some tests, but the installation process fails.
Source code / logs
output of pip install -e python --verbose
CMake Error at cmake_modules/BuildUtils.cmake:88 (message):
No static or shared library provided for boost_system
Call Stack (most recent call first):
cmake_modules/ThirdpartyToolchain.cmake:249 (ADD_THIRDPARTY_LIB)
CMakeLists.txt:292 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/cbarra/Projects/oss/ray/thirdparty/build/arrow/cpp/build/CMakeFiles/CMakeOutput.log".
See also "/Users/cbarra/Projects/oss/ray/thirdparty/build/arrow/cpp/build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/cbarra/Projects/oss/ray/python/setup.py", line 133, in <module>
license="Apache 2.0")
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/setuptools/command/develop.py", line 36, in run
self.install_for_development()
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/setuptools/command/develop.py", line 136, in install_for_development
self.run_command('build_ext')
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/cbarra/Projects/oss/ray/python/setup.py", line 62, in run
subprocess.check_call(["../build.sh", sys.executable])
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../build.sh', '/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/bin/python3']' returned non-zero exit status 1.
Cleaning up...
Command "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/bin/python3 -c "import setuptools, tokenize;__file__='/Users/cbarra/Projects/oss/ray/python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /Users/cbarra/Projects/oss/ray/python/
Exception information:
Traceback (most recent call last):
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/pip/req/req_install.py", line 845, in install
install_options, global_options, prefix=prefix)
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/pip/req/req_install.py", line 1007, in install_editable
show_stdout=False)
File "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/lib/python3.6/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/Users/cbarra/.local/share/virtualenvs/ray-sA7mnjJX/bin/python3 -c "import setuptools, tokenize;__file__='/Users/cbarra/Projects/oss/ray/python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /Users/cbarra/Projects/oss/ray/python/
# cat /Users/cbarra/Projects/oss/ray/thirdparty/build/arrow/cpp/build/CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test CXX_SUPPORTS_ALTIVEC failed with the following output:
Change Dir: /Users/cbarra/Projects/oss/ray/thirdparty/build/arrow/cpp/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_3ee4a/fast"
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_3ee4a.dir/build.make CMakeFiles/cmTC_3ee4a.dir/build
Building CXX object CMakeFiles/cmTC_3ee4a.dir/src.cxx.o
/Library/Developer/CommandLineTools/usr/bin/c++ -g -O3 -DCXX_SUPPORTS_ALTIVEC -maltivec -o CMakeFiles/cmTC_3ee4a.dir/src.cxx.o -c /Users/cbarra/Projects/oss/ray/thirdparty/build/arrow/cpp/build/CMakeFiles/CMakeTmp/src.cxx
clang: error: invalid argument '-faltivec' only allowed with 'ppc/ppc64/ppc64le'
make[1]: *** [CMakeFiles/cmTC_3ee4a.dir/src.cxx.o] Error 1
make: *** [cmTC_3ee4a/fast] Error 2
Source file was:
int main() { return 0; }
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (15 by maintainers)
brew install thrift
if not work. Thrift is not found when building parquet-cpp. so make it be found.
in thirdparty/scripts/build_parquet.sh
add THRIFT_HOME to the cmake command.
for example:
reference: https://github.com/apache/parquet-cpp/blob/master/cmake_modules/FindThrift.cmake
I deleted my
rayfolder and cloned it again, but no luck.