ray/doc/install-on-ubuntu.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

2016-07-28 20:47:37 -07:00
# Installation on Ubuntu
Ray must currently be built from source. We have tested Ray on Ubuntu 14.04.
2016-07-28 20:47:37 -07:00
## Clone the Ray repository
```
git clone https://github.com/amplab/ray.git
```
2016-07-28 20:47:37 -07:00
## Dependencies
2016-07-10 15:06:44 -07:00
First install the dependencies. We currently do not support Python 3.
```
sudo apt-get update
sudo apt-get install -y git cmake build-essential autoconf curl libtool python-dev python-numpy python-pip libboost-all-dev unzip graphviz
2016-08-29 22:16:14 -07:00
sudo pip install ipython funcsigs subprocess32 protobuf colorama graphviz cloudpickle
```
2016-07-28 20:47:37 -07:00
## Build
Then run the setup scripts.
```
cd ray
./setup.sh # Build all necessary third party libraries (e.g., gRPC and Apache Arrow). This may take about 10 minutes.
2016-07-10 15:06:44 -07:00
./build.sh # Build Ray.
source setup-env.sh # Add Ray to your Python path.
```
For convenience, you may also want to add the line `source
"$RAY_ROOT/setup-env.sh"` to the bottom of your `~/.bashrc` file manually, where
`$RAY_ROOT` is the Ray directory (e.g., `/home/ubuntu/ray`).
2016-07-28 20:47:37 -07:00
## Test if the installation succeeded
To test if the installation was successful, try running some tests.
```
python test/runtest.py # This tests basic functionality.
python test/array_test.py # This tests some array libraries.
```