]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | build on MacOS |
2 | ============== | |
3 | ||
4 | Since we've switched to C++ 17, and the default clang shipped with Xcode 9 does not support all the C++ 17 language features, it's suggested to install clang using brew:: | |
5 | ||
6 | brew install --with-toolchain llvm | |
7 | ||
8 | and install all the necessary bits:: | |
9 | ||
9f95a23c | 10 | brew install snappy ccache cmake pkg-config |
11fdf7f2 TL |
11 | pip install cython |
12 | ||
13 | install FUSE if you want to build the FUSE support:: | |
14 | ||
15 | brew cask install osxfuse | |
16 | ||
11fdf7f2 TL |
17 | then, under the source directory of Ceph:: |
18 | ||
19 | mkdir build | |
20 | cd build | |
9f95a23c TL |
21 | cmake .. -DBOOST_J=4 \ |
22 | -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang \ | |
23 | -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ \ | |
24 | -DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/opt/llvm/lib" \ | |
11fdf7f2 TL |
25 | -DENABLE_GIT_VERSION=OFF \ |
26 | -DWITH_MANPAGE=OFF \ | |
27 | -DWITH_LIBCEPHFS=OFF \ | |
28 | -DWITH_XFS=OFF \ | |
29 | -DWITH_KRBD=OFF \ | |
30 | -DWITH_LTTNG=OFF \ | |
31 | -DWITH_BABELTRACE=OFF \ | |
32 | -DWITH_BLUESTORE=OFF \ | |
33 | -DWITH_RADOSGW=OFF \ | |
34 | -DWITH_SPDK=OFF \ | |
9f95a23c | 35 | -DSNAPPY_ROOT_DIR=/usr/local/Cellar/snappy/1.1.7_1 |
11fdf7f2 TL |
36 | |
37 | The paths to ``nss`` and ``snappy`` might vary if newer versions of the packages are installed. | |
38 | ||
9f95a23c TL |
39 | Also, please consider using boost v1.69 to address the bug of https://github.com/boostorg/atomic/issues/15. |
40 | ||
11fdf7f2 | 41 | Currently, the most practical uses for Ceph on MacOS might be FUSE and some other librados based applications. |