How to build Reduct Storage on MacOs

Hey all, we’re going to add support of macOS in the next release (0.9) of the storage engine. However, you should be able to build it from sources:

# install build tools
brew install gcc@11 python cmake
pip install conan

# build
mkdir build &&a…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Alexey Timin

Hey all, we're going to add support of macOS in the next release (0.9) of the storage engine. However, you should be able to build it from sources:

# install build tools
brew install gcc@11 python cmake
pip install conan

# build
mkdir build && cd build
CC=gcc-11 CXX=g++-11 cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . -- -j

# run
RS_DATA_PATH=./data bin/reduct-storage

We use the latest C++20 features like coroutines, which clang doesn't support yet. What is why you should install GCC-11 and use the CC=gcc-11 and CXX=g++-11 variables for cmake.

Moreover, you should be patient, official conan repository doesn't have binaries for macOS with GCC and conan builds them locally on your machine.

I hope it was helpful, thanks!


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Alexey Timin


Print Share Comment Cite Upload Translate Updates
APA

Alexey Timin | Sciencx (2022-09-11T20:21:51+00:00) How to build Reduct Storage on MacOs. Retrieved from https://www.scien.cx/2022/09/11/how-to-build-reduct-storage-on-macos/

MLA
" » How to build Reduct Storage on MacOs." Alexey Timin | Sciencx - Sunday September 11, 2022, https://www.scien.cx/2022/09/11/how-to-build-reduct-storage-on-macos/
HARVARD
Alexey Timin | Sciencx Sunday September 11, 2022 » How to build Reduct Storage on MacOs., viewed ,<https://www.scien.cx/2022/09/11/how-to-build-reduct-storage-on-macos/>
VANCOUVER
Alexey Timin | Sciencx - » How to build Reduct Storage on MacOs. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/09/11/how-to-build-reduct-storage-on-macos/
CHICAGO
" » How to build Reduct Storage on MacOs." Alexey Timin | Sciencx - Accessed . https://www.scien.cx/2022/09/11/how-to-build-reduct-storage-on-macos/
IEEE
" » How to build Reduct Storage on MacOs." Alexey Timin | Sciencx [Online]. Available: https://www.scien.cx/2022/09/11/how-to-build-reduct-storage-on-macos/. [Accessed: ]
rf:citation
» How to build Reduct Storage on MacOs | Alexey Timin | Sciencx | https://www.scien.cx/2022/09/11/how-to-build-reduct-storage-on-macos/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.