- Install the prerequisites (Linux, macOS)
- Clone the machine learning repo
git clone --recursive https://github.com/dotnet/machinelearning.git
- Navigate to the
machinelearning
directory - Run
git submodule update --init
if you have not previously done so - Run the build script
./build.sh
Calling the script ./build.sh
builds both the native and managed code.
For more information about the different options when building, run ./build.sh -?
and look at examples in the developer-guide.
- 2GB RAM
- x64
The following components are needed:
- git
- clang-3.9
- cmake 2.8.12
- libunwind8
- libomp-dev
- curl
- All the requirements necessary to run .NET Core 3.0 applications: libssl1.0.0 (1.0.2 for Debian 9) and libicu5x (libicu52 for ubuntu 14.x, libicu55 for ubuntu 16.x, and libicu57 for ubuntu 17.x). For more information on prerequisites in different linux distributions click here.
For example, for Ubuntu 16.x:
sudo apt-get update
sudo apt-get install git clang-3.9 cmake libunwind8 curl
sudo apt-get install libssl1.0.0 libicu55
sudo apt-get install libomp-dev
macOS 10.13 (High Sierra) or higher is needed to build dotnet/machinelearning. We are using a .NET Core 3.0 SDK to build, which supports 10.13 or higher.
On macOS a few components are needed which are not provided by a default developer setup:
- cmake 3.10.3
- libomp 7
- libgdiplus
- gettext
- All the requirements necessary to run .NET Core 3.0 applications. To view macOS prerequisites click here.
One way of obtaining CMake and other required libraries is via Homebrew:
$ brew install cmake https://raw.githubusercontent.com/Homebrew/homebrew-core/f5b1ac99a7fba27c19cee0bc4f036775c889b359/Formula/libomp.rb mono-libgdiplus gettext && brew link gettext --force